Installation
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 2000 Connection to "192.168.1.1" on port "2000" is ok
$ rpm -qa|grep libstdc++ libstdc++-4.8.3-9.el7.x86_64
# yum install libstdc++ # (RedHat, prp. Debian/Ubuntu ) # apt-get install libstdc++ # (Debian/Ubuntu )
# mkdir /usr/stonavm/ # cd /usr/stonavm/ # tar xf /tmp/HSNM2-2810-A-CLI-P01.tar # chown stor2rrd /usr/stonavm # This must be owned by stor2rrd (lpar2rrd on the virtual appliance) !!!!
LIBPATH=/usr/stonavm/lib:$LIBPATH SHLIB_PATH=/usr/stonavm/lib:$SHLIB_PATH LD_LIBRARY_PATH=/usr/stonavm/lib:$LD_LIBRARY_PATH STONAVM_HOME=/usr/stonavm STONAVM_ACT=on STONAVM_RSP_PASS=on PATH=$PATH:/usr/stonavm export LIBPATH SHLIB_PATH LD_LIBRARY_PATH STONAVM_HOME STONAVM_ACT STONAVM_RSP_PASS PATH
# auunitaddauto -ip 192.168.1.1 192.168.1.2
# auunitadd -unit HUS110 -LAN -ctl0 192.168.1.1 -ctl1 192.168.1.2
# auunitadd -unit HUS110 -LAN -ctl0 192.168.1.1 -ctl1 192.168.1.2 -communicationtype secure
# auaccountenv -set -uid stor2rrd -authentication
# auunitref # auunitinfo -unit HUS110
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ========================= STORAGE: HUS110: HUS ========================= /usr/stonavm/auunitinfo -unit HUS110 connection ok
$ crontab -l | grep load_husperf.sh $
$ crontab -e # Hitachi HUS && AMS 2000 storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_husperf.sh > /home/stor2rrd/stor2rrd/load_husperf.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 \\.\IPCMD-192.168.1.2-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 \\.\IPCMD-192.168.1.11-31001
# su - stor2rrd $ /HORCM/usr/bin/horcmstart.sh 1
# su - stor2rrd $ /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 $ 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-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
# 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
$ 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
VSP_CLIDIR=/opt/hds
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ========================= STORAGE: VSPG-600 : VSPG ========================= connection ok
$ 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
# 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.
$ ssh supervisor@<EVS hostname/IP> HNAS1:$ snmp-protocol -v v3 HNAS1:$ snmp-protocol Protocol: SNMPv3Add users with the snmpv3-user-add command.
HNAS1:$ snmpv3-user-add stor2rrd Please enter the authentication password: ******** Please re-enter the authentication password: ******** Please enter the privacy password: ******** Please re-enter the privacy password: ********
$ ssh supervisor@<EVS hostname/IP> HNAS1:$ enhanced-perf-stats Enhanced stats gathering: disabled HNAS1:$ enhanced-perf-stats -enable
$ perl /home/stor2rrd/stor2rrd/bin/conntest_udp.pl 192.168.1.1 161 Connection to "192.168.1.1" on port "161" is ok
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ========================= STORAGE: HNAS-alias02: HNAS ========================= UDP connection to "192.168.177.7" on port "161" is ok san_verify.pl: snmpwalk -v 2c -c public 192.168.1.1 .1.3.6.1.4.1.11096.6.1.1 SNMP version : 2c (default) Port : 161 (default) Timeout : 5 seconds Community : public Storage name : hnas01.example.com STATE : CONNECTED! connection ok
$ crontab -l | grep load_hnasperf.sh $
$ crontab -e # Hitachi HNAS 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_hnasperf.sh > /home/stor2rrd/stor2rrd/load_hnasperf.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_udp.pl 192.168.1.1 161 Connection to "192.168.1.1" on port "161" is ok $ perl /home/stor2rrd/stor2rrd/bin/conntest_udp.pl 192.168.1.1 9090 Connection to "192.168.1.1" on port "9090" is ok
$ df -g /home # AIX $ df -h /home # Linux
$ crontab -l | grep load_hcpperf.sh $
$ crontab -e # Hitachi HCP 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_hcpperf.sh > /home/stor2rrd/stor2rrd/load_hcpperf.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