Installation
$ ssh 3paradm@3par_storage 3paradm's password: ****** cli% createuser -c testpw stor2rrd all browse cli% exit $ ssh stor2rrd@3par_storage cli% showuser Username Domain Role Default stor2rrd all browse N
cli% setwsapi -https enable cli% showwsapi -Service- -State- -HTTP_State- HTTP_Port -HTTPS_State- HTTPS_Port -Version- ------------API_URL------------ Enabled Active Enabled 8008 Enabled 8080 1.6.3 https://192.168.1.1:8080/api/v1
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 8080 Connection to "192.168.1.1" on port "8080" is ok
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 5783 Connection to "192.168.1.1" on port "5783" is ok
# mount -o loop,ro ./3PAR_INFORMOS_3.2.2_MU4_CLI_SNMP_QR482-11192.iso /mnt # cd /mnt/cli/linux/ # ./setup.bin Default Install Folder: /opt/hp_3par_cli Congratulations. HP 3PAR CLI 3.2.2 has been successfully installed to: /opt/hp_3par_cli
# mount -o loop,ro ./TOOLS-3.3.1.269-MU1.iso /mnt # cd /mnt/cli/linux/ # ./setup.bin Default Install Folder: /opt/hp_3par_cli Congratulations. HP 3PAR CLI 3.2.2 has been successfully installed to: /opt/hp_3par_cli
# su - stor2rrd # (use lpar2rrd user on the Appliance) $ cd /home/stor2rrd/stor2rrd $ export STORAGE_IP_HOSTNAME=192.168.1.1 $ /opt/hp_3par_cli/bin/cli setpassword -saveonly -file etc/.3par-${STORAGE_IP_HOSTNAME}.pwf -sys $STORAGE_IP_HOSTNAME user: stor2rrd password: The authenticity of the storage system cannot be established. CLI Server Certificate Issuer: CN=HP 3PAR HP_3PAR 7400 1644035 Subject: CN=HP 3PAR HP_3PAR 7400 1644035 SHA1 fingerprint: 1E381D334E07EAFC4A7CC43B3ACDCCD82C6B6BB1 Validity: Not before: Apr 21 12:02:53 2017 GMT Not after: Apr 20 12:02:53 2020 GMT Warning: self signed certificate Warning: subject CN ("HP 3PAR HP_3PAR 7400 1644035") does not match the system name ("192.168.1.1") Continue connecting (yes/no)? yes Permanently add this certificate as an exception (yes/no)? yes
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 22 Connection to "192.168.1.1" on port "22" is ok
# su - stor2rrd # (use lpar2rrd user on the Appliance) $ ssh-keygen -t rsa -N "" Generating public/private rsa key pair. Enter file in which to save the key (/home/stor2rrd/.ssh/id_rsa): ... $ cat ~/.ssh/id_rsa.pub
$ ssh stor2rrd@3par_storage stor2rrd@3par_storage password: testpw cli% setsshkey
sshrsa AF5afPdciUTJ0PYzB6msRxFrCuDSqDwPshqWS5tGCFSoSZdE= stor2rrd pubic key SSH public key successfully set!
$ ssh stor2rrd@3par_storage
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ===================== STORAGE: 3par01: 3PAR ===================== ssh -o ConnectTimeout=15 -i /home/stor2rrd/.ssh/id_rsa stor2rrd@192.168.1.1 "showuser" connection ok
$ crontab -l | grep load_3parperf.sh $
$ crontab -e # HPE 3PAR / Primera storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_3parperf.sh > /home/stor2rrd/stor2rrd/load_3parperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 1099 Connection to "192.168.1.3" on port "1099" is ok $ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.3" on port "443" is ok
# mkdir /opt/hds # mkdir /opt/hds/83-01-28 # cd /opt/hds/83-01-28 # tar xvf export-tool.tar # chmod 755 runUnix.sh runUnix.bat # note one of these files exists only # chown -R stor2rrd /opt/hds # chown -R lpar2rrd /opt/hds # do this on the Virtual Appliance where is all under "lpar2rrd" user
# cd /opt/hds/ # ls 83-01-28 # ln -s 83-01-28 73-03-57Test Export Tool 2
$ cd /opt/hds/<firmware level> # example /opt/hds/88-03-23 $ sh ./runUnix.bat show interval -ip <ip controller> -login <user> <password> Interval : 5 min show interval command success
VSP_CLIDIR=/opt/hds
$ df -g /home # AIX $ df -h /home # Linux
$ crontab -l | grep load_vspgperf.sh $
$ crontab -e # Hitachi VSP-G 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_vspgperf.sh > /home/stor2rrd/stor2rrd/load_vspgperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 1099 Connection to "192.168.1.3" on port "1099" is ok $ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 51100 Connection to "192.168.1.3" on port "51100" is ok
# loopmount -i /HS042_77.iso -o "-V cdrfs -o ro" -m /mnt
# mount -o loop,ro HS042_77.iso /mnt
# yum -y install glibc.i686
# mkdir /etc/HORCM # cd /mnt # ./RMinstsh
# mkdir /opt # cpio -idmu < /dev/XXXX # where XXXX = I/O device with install media # ln -s /opt/HORCM /HORCM
# /HORCM/horcminstall.sh
# raidqry -h Model: RAID-Manager/HP-UX Ver&Rev: 01-29-03/05 Usage: raidqry [options]
# touch /HORCM/etc/USE_OLD_IOCT # chown stor2rrd /HORCM # chown -R stor2rrd /HORCM/* /HORCM/.uds # chown -R lpar2rrd /HORCM/* /HORCM/.uds # do this on the Virtual Appliance where is all under "lpar2rrd" user # chmod 755 /HORCM /HORCM/usr/bin /HORCM/usr/bin/* /HORCM/log* /HORCM/etc/horcmgr /HORCM/etc/*conf /HORCM/.uds/
# netstat -an|grep -i listen| egrep "11001|11002"
# vi /etc/horcm1.conf HORCM_MON # ip_address service poll(10ms) timeout(10ms) localhost 11001 1000 3000 HORCM_CMD # dev_name dev_name dev_name \\.\IPCMD-192.168.1.1-31001
# vi /etc/horcm2.conf HORCM_MON # ip_address service poll(10ms) timeout(10ms) localhost 11002 1000 3000 HORCM_CMD # dev_name dev_name dev_name \\.\IPCMD-192.168.1.10-31001
# su - stor2rrd # (use lpar2rrd user on the Appliance) $ /HORCM/usr/bin/horcmstart.sh 1
# su - stor2rrd # (use lpar2rrd user on the Appliance) $ /HORCM/usr/bin/horcmstart.sh 1 2
$ ps -ef | grep horcm stor2rrd 19660912 1 0 Feb 26 - 0:03 horcmd_02 stor2rrd 27590770 1 0 Feb 26 - 0:09 horcmd_01
# su - stor2rrd -c "/HORCM/usr/bin/horcmstart.sh 1 2" # su - stor2rrd -c "/HORCM/usr/bin/horcmshutdown.sh 1 2"
# su - stor2rrd # (use lpar2rrd user on the Appliance) $ raidcom -login stor2rrd <password> -I1 $ raidqry -l -I1 No Group Hostname HORCM_ver Uid Serial# Micro_ver Cache(MB) 1 --- localhost 01-35-03-08 0 471234 83-01-28/00 320000 $ raidcom -logout -I1
# mkdir /opt/hds # mkdir /opt/hds/83-01-28 # cd /opt/hds/83-01-28 # tar xvf export-tool.tar # chmod 755 runUnix.sh runUnix.bat # note one of these files exists only # chown -R stor2rrd /opt/hds # chown -R lpar2rrd /opt/hds # do this on the Virtual Appliance where is all under "lpar2rrd" user
# cd /opt/hds/ # ls 83-01-28 # ln -s 83-01-28 73-03-57
$ cd /opt/hds/<firmware level> # example /opt/hds/88-03-23 $ sh ./runUnix.bat show interval -ip <ip controller> -login <user> <password> Interval : 5 min show interval command successDirectory /opt/hds is optional, it is configurable in /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg : VSP_CLIDIR=/opt/hds
# umask 0022 # rpm -Uvh net-snmp-5.6.2.1-1 net-snmp-utils-5.6.2.1-1 net-snmp-perl-5.6.2.1-1
# umask 0022 # yum install net-snmp # yum install net-snmp-utils # yum install net-snmp-perl
# subscription-manager repos --list ... # subscription-manager repos --enable rhel-7-server-optional-rpms
% umask 0022 % apt-get install snmp libsnmp-perl snmp-mibs-downloader
#mibs :If apt-get does not find snmp-mibs-downloader package then enable contrib and non-free repositories.
perl /home/stor2rrd/stor2rrd/bin/conntest_udp.pl vspg_CNTL_host.example.com 161 UDP connection to "vspg_CNTL_host.example.com" on port "161" is ok
VSP_CLIDIR=/opt/hds
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ====================== STORAGE: XP7-01 : VSPG ======================= connection ok
$ crontab -l | grep load_vspgperf.sh $
$ crontab -e # HPE XP7 (use Hitachi VSPG scipt load_vspgperf.sh) 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_vspgperf.sh > /home/stor2rrd/stor2rrd/load_vspgperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok $ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 5989 Connection to "192.168.1.1" on port "5989" is ok
$ ssh -l manage <storage_hostname> # show protocols Service and Security Protocols ------------------------------ Web Browser Interface (HTTP): Enabled Secure Web Browser Interface (HTTPS): Enabled Command Line Interface (Telnet): Disabled Secure Command Line Interface (SSH): Enabled Storage Management Initiative Specification (SMI-S): Enabled Unsecure Storage Management Initiative Specification (SMI-S 5988): Disabled ...
# set protocols smis enabled # set protocols https enabled
$ ssh -l manage <storage_hostname> # create user interfaces smis,wbi locale English password Test1234 roles monitor,standard stor2rrd
# yum list |grep sblim-wbemcli sblim-wbemcli.x86_64 1.6.2-9.el7 base # yum install sblim-wbemcli # RedHat # apt-get install sblim-wbemcli # Debian based (Ubuntu etc) # /usr/bin/wbemcli -noverify -nl ei https://<storage_hostname>:5988/root/hpq:cim_computersystem * * ./wbemcli: Http Exception: Username/password required. *
# rpm -q sblim-wbemcli sblim-wbemcli-1.6.3-31.1.x86_64 # /usr/bin/wbemcli -v * wbemcli Version 1.6.3 # /usr/bin/wbemcli -noverify -nl ei http://<storage_hostname>:5988/root/hpq:cim_computersystem * * ./wbemcli: Http Exception: Username/password required. *
# rpm -Uvh libffi-3.1-1.aix5.1.ppc.rpm --nodeps # rpm -Uvh libiconv-1.14-2.aix5.1.ppc.rpm --nodeps # rpm -Uvh libidn-1.29-1.aix5.1.ppc.rpm --nodeps # rpm -Uvh libssh2-1.4.3-2.aix5.1.ppc.rpm --nodeps # rpm -Uvh openssl-1.0.1j-1.aix5.1.ppc.rpm # rpm -Uvh openldap-2.4.23-0.3.aix5.1.ppc.rpm # rpm -Uvh curl-7.27.0-1.aix5.1.ppc.rpm # rpm -Uvh wbemcli-1.6.3-1.aix5.1.ppc.rpm # LIBPATH=/opt/freeware/lib; export LIBPATH # /opt/freeware/bin/wbemcli -noverify -nl ei http://<storage_hostname>:5988/root/hpq:cim_computersystem * * ./wbemcli: Http Exception: Username/password required. *
$ ssh -l manage <storage_hostname> # show protocols ... Secure Web Browser Interface (HTTPS): Enabled Storage Management Initiative Specification (SMI-S): Enabled ...If you use http then this:
Web Browser Interface (HTTP): Enabled Unsecure Storage Management Initiative Specification (SMI-S 5988): Enabled
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ===================== STORAGE: HPE-MSA ===================== connection ok
$ /usr/bin/wbemcli -noverify -nl ei https://stor2rrd@<IP/hostname>:5989/root/hpq:cim_computersystem $ /usr/bin/wbemcli -noverify -nl ei http://stor2rrd@<IP/hostname>:5988/root/hpq:cim_computersystem * * /usr/bin/wbemcli: Http Exception: Invalid username/password. *
$ crontab -l | grep load_dothillperf.sh $
$ crontab -e # DotHill AssuredSAN and its rebrands like Lenovo S2200 or HPE MSA 2000/1000 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_dothillperf.sh > /home/stor2rrd/stor2rrd/load_dothillperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ /usr/bin/wbemcli -nl -t -noverify ein 'http://stor2rrd:<password>@<storage_hostnamew>:5988/root/hpq:SMI_Controller' 192.168.1.1:5988/root/smis:SMI_Controller.Name="208000c0ff261f53:A",CreationClassName="SMI_Controller" 192.168.1.2:5988/root/smis:SMI_Controller.Name="208000c0ff261f53:B",CreationClassName="SMI_Controller"When it does not work then check user rights of stor2rrd user (must have "smis"), network visibility (firewall), user/password combination.
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 22 Connection to "192.168.1.1" on port "22" is ok
# su - stor2rrd # (use lpar2rrd user on the Appliance) $ 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/stor2rrd/.ssh/id_rsa): ... $ ls -l ~/.ssh/id_rsa.pub -rw-r--r-- 1 stor2rrd stor2rrd 382 Jun 1 12:47 /home/stor2rrd/.ssh/id_rsa.pub
$ cat ~/.ssh/id_rsa.pub $ ssh -l admin 192.168.1.1 Nimble OS $ sshkey --add stor2rrdkey --user stor2rrd --type rsa --key "AAAAB3NzaC1...gOPqT stor2rrd@stor2rrd.com" Nimble OS $ sshkey --list --user stor2rrd --------------------+------------------------------+--------- User Name Type- --------------------+------------------------------+--------- stor2rrd stor2rrdkey rsa
$ ssh stor2rrd@192.168.1.1 "array --list" ---------------------+-----------------+-----------+----------------+----------- Name Serial Model Version Status ---------------------+-----------------+-----------+----------------+----------- nimble01 VM-004531 Virtual 3.3.0.0-363982-opt reachable
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh nimble_alias01 ===================== STORAGE: nimble_alias01 : NIMBLE ===================== connection ok
$ crontab -l | grep load_nimbleperf.sh $
$ crontab -e # Nimble storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_nimbleperf.sh > /home/stor2rrd/stor2rrd/load_nimbleperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh storeonce-alias01 ===================== STORAGE: storeonce-alias01 : STOREONCE ===================== connection ok
$ crontab -l | grep load_storeonceperf.sh $
$ crontab -e # HPE StoreOnce 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_storeonceperf.sh > /home/stor2rrd/stor2rrd/load_storeonceperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
# yum install perl-IO-TtyCPAN:
# umask 022 # cpan -f install IO::PtyDebian:
# apt-get install libio-pty-perl
# rpm -Uvh perl-IO-Tty-1.07-1.aix5.1.ppc.rpm
$ su - stor2rrd $ cd /home/stor2rrd/stor2rrd $ . etc/stor2rrd.cfg $ $PERL -MIO::Pty -e ';'When it prints error like "Can't locate IO/Pty.pm in @INC" then something is wrong with installation.
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 16022 Connection to "192.168.1.1" on port "16022" is ok
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh storevirtual-alias01 ===================== STORAGE: storevirtual-alias01 : STOREVIRTUAL ===================== connection ok
$ crontab -l | grep load_storevirtualperf.sh $
$ crontab -e # HPE StoreVirtual, LeftHand 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_storevirtualperf.sh > /home/stor2rrd/stor2rrd/load_storevirtualperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok
$ ssh -l manage <storage_hostname> # show protocols Service and Security Protocols ------------------------------ ... Secure Web Browser Interface (HTTPS): Enabled ...
# set protocols https enabled
$ ssh -l manage <storage_hostname> # create user interfaces wbi locale English password Test1234 roles monitor,standard stor2rrd
$ ssh -l manage <storage_hostname> # show protocols ... Secure Web Browser Interface (HTTPS): Enabled ...If you use http then this:
Web Browser Interface (HTTP): Enabled
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ===================== STORAGE: HPE MSA ===================== connection ok
$ crontab -l | grep load_dothillperf.sh $
$ crontab -e # DotHill AssuredSAN and its rebrands like Lenovo S2200 or HPE MSA 2000/1000 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_dothillperf.sh > /home/stor2rrd/stor2rrd/load_dothillperf.out 2>&1
$ crontab -e # STOR2RRD UI (just ONE entry of load.sh must be there) 5 * * * * /home/stor2rrd/stor2rrd/load.sh > /home/stor2rrd/stor2rrd/load.out 2>&1
$ cd /home/stor2rrd/stor2rrd $ ./load.sh