IBM monitoring
mount DSCLI-7.9.41.59.iso /mnt -o loop,ro umask 022 /mnt/IMAGES/HMC/Disk1/InstData/Linux/NoVM/dsclisetup.bin -i console Preparing to install... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... Congratulations. IBM System Storage DS Command Line Interface has been ....... successfully installed to: /opt/ibm/dscli
export JAVA_TOOL_OPTIONS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true"
$ /opt/ibm/dscli/dscli -hmc1 192.168.1.1 -user admin CMUN00018E Unable to connect to the management console server
$ /opt/ibm/dscli/dscli -hmc1 192.168.1.1 -user admin dscli> mkuser -pw PASSWORD -group monitor xormon
$ /opt/ibm/dscli/dscli managepwfile -action add -mc1 192.168.1.1 -name xormon -pw PASSWORD
$ /opt/ibm/dscli/dscli -hmc1 <HMC1 ip addr> -user xormon ver -l Date/Time: December 10, 2013 3:01:43 PM CET IBM DSCLI Version: 7.7.10.317 DS: - DSCLI 7.7.10.317 StorageManager 7.7.5.0.20121203.1 ================Version================= Storage Image LMC =========================== IBM.2107-75CXXXX 7.7.10.294
$ /opt/ibm/dscli/dscli -hmc1 192.168.1.1 -user xormon Date/Time: April 18, 2013 2:55:36 PM CEST IBM DSCLI Version: 7.6.31.165 DS: - dscli> lssi -s ID ================ IBM.2107-75VG681When you get this error:
dscli> lssi -s Date/Time: April 18, 2013 3:04:25 PM CEST IBM DSCLI Version: 7.6.31.165 DS: - CMUC00201E lssi:: You are logged in with an expired password and limited authorization. Use the chuser command to changer password and restore normal authorization.Then change the password for xormon user
dscli>chuser -pw PASSWORD1 xormonand refresh stored password as well
$ /opt/ibm/dscli/dscli managepwfile -action remove -mc1 192.168.1.1 -name xormon $ /opt/ibm/dscli/dscli managepwfile -action add -mc1 192.168.1.1 -name xormon -pw PASSWORD1
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name xormon -usergrp "Monitor"
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name xormon -usergrp RestrictedAdmin"
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name xormon -usergrp Administrator"
# su - xormon $ ls -l ~/.ssh/id_rsa.pub $ ssh-keygen -t rsa -N "" Generating public/private rsa key pair. Enter file in which to save the key (/home/xormon/.ssh/id_rsa): ... $ ls -l ~/.ssh/id_rsa.pub -rw-r--r-- 1 xormon xormon 382 Jun 1 12:47 /home/xormon/.ssh/id_rsa.pubYou might need to add this into your SSH cfg in case of rsa using on OpenSSH 8.8+
vi ~/.ssh/config Host * HostKeyAlgorithms=+ssh-rsa
$ scp ~/.ssh/id_rsa.pub superuser@<storage control enclosure IP address>:/tmp/123tmp
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name xormon -usergrp Monitor -keyfile /tmp/123tmp"
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name xormon -usergrp RestrictedAdmin -keyfile /tmp/123tmp"
$ ssh superuser@<storage control enclosure IP address> "svctask mkuser -name xormon -usergrp Administrator -keyfile /tmp/123tmp"
$ ssh superuser@<storage control enclosure IP address> "svctask chuser -keyfile /tmp/123tmp xormon"
$ ssh -i ~/.ssh/id_rsa xormon@<storage control enclosure IP address> "svcinfo lssystem" id 00000100C0906BAA name SVC location local partnership bandwidth ...
cim_show cim_enable
export XIV_XCLIUSER=admin export XIV_XCLIPASSWORD=<admin password> /opt/ibm/XIVUI/xcli -m <xiv ip> user_define user=xormon password=<password> password_verify=<password> category=readonly