Installation
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 6389 Connection to "192.168.1.1" on port "6389" is ok $ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok
# smitty installp ➡ select actuall directory ➡ find package F4 ➡ install
# rpm -i NaviCLI-Linux-64-x86-en_US-7.33.9.1.84-1.x86_64.rpm
# alien NaviCLI-Linux-64-x86-en_US-7.33.9.1.84-1.x86_64.rpm NaviCLI-Linux-64-x86-en_US-7.33.9.1.84-1.x86_64.deb generated
# su - stor2rrd # (lpar2rrd user on the Virtual Appliance) $ /opt/Navisphere/bin/naviseccli -addusersecurity -scope 1 -password XXXXXXXXXXX -user stor2rrd $ /opt/Navisphere/bin/naviseccli -h <storage controller IP/hostname> getcontrol -all System Fault LED: OFF Statistics Logging: ON ...Statistics logging must be ON
$ /opt/Navisphere/bin/naviseccli -h <storage controller IP/hostname> getcontrol -all Error returned from the Management Server on 192.168.1.1 Authentication failed. Possible reasons for failure are invalid security file, invalid username, password and/or scope.Remove user and define it again with different scope (like below) or user credentials:
$ /opt/Navisphere/bin/naviseccli -RemoveUserSecurity $ /opt/Navisphere/bin/naviseccli -addusersecurity -scope 0 -password XXXXXXXXXXX -user stor2rrdIf you have selected medium security level then accept and store certificate
$ /opt/Navisphere/bin/naviseccli -h <storage controller IP/hostname> getsptime Unable to validate the identity of the server. There are issues with the certificate presented. Only import this certificate if you have reason to believe it was sent by a trusted source. Certificate details: Subject: CN=192.168.1.1,CN=VNX46EM_SPA,OU=CLARiiON Issuer: CN=192.168.1.1,CN=VNX46EM_SPA,OU=CLARiiON Serial#: 2c3c9999 Valid From: 20140724193051Z Valid To: 20190723193051Z Would you like to [1]Accept the certificate for this session, [2] Accept and store ,[3] Reject the certificate? Please input your selection(The default selection is [1]): --> select "2" Time on SP A: 04/04/17 09:53:54 Time on SP B: 04/04/17 09:49:00If you get below error then you probably use older NaviCLI 7.30.
$ /opt/Navisphere/bin/naviseccli -h <storage controller IP/hostname> getcontrol -all Exception: End of data stream
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh =============================== STORAGE: VNX-block_alias01: VNX =============================== first IP address : 192.168.1.2 /opt/Navisphere/bin/naviseccli -h 192.168.1.2 getsptime Time on SP A: 11/03/16 12:56:45 Time on SP B: 11/03/16 12:56:57 connection ok second IP address : 192.168.1.3 /opt/Navisphere/bin/naviseccli -h 192.168.1.3 getsptime Time on SP A: 11/03/16 12:56:47 Time on SP B: 11/03/16 12:56:58 connection ok
$ crontab -l | grep load_vnxperf.sh $
$ crontab -e # EMC VNX storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_vnxperf.sh > /home/stor2rrd/stor2rrd/load_vnxperf.out 2>&1Make sure there is already an entry with the UI creation running once an hour in crontab
$ 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 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
$ scp ~/.ssh/id_rsa.pub stor2rrd@<storage controller>:/tmp/id_rsa.pub $ ssh stor2rrd@<storage controller> cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys rm /tmp/id_rsa.pub exit
$ ssh -q stor2rrd@<storage controller> "export NAS_DB=/nas; nas_server -i server_2" EMC VNX Control Station Linux release 3.0 (NAS 7.1.79) id type acl slot groupID state name 1 1 0 2 0 server_2 2 4 0 3 0 server_3
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ================================== STORAGE: VNX-file_alias01e01: VNXF ================================== connection ok
$ crontab -l | grep load_vnxfperf.sh $
$ crontab -e # EMC VNX for file storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_vnxfperf.sh > /home/stor2rrd/stor2rrd/load_vnxfperf.out 2>&1Make sure there is already an entry with the UI creation running once an hour in crontab
$ 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
# umask 022 # rpm -i UnisphereCLI-Linux-64-x86-en_US-4.0.1.1.3166-1.x86_64.rpm
# apt-get install alienConvert Red Hat rpm package via "alien" cmd
# alien UnisphereCLI-Linux-64-x86-en_US-4.0.1.1.3166-1.x86_64.rpm UnisphereCLI-Linux-64-x86-en_US-4.0.1.1.3166-1.i386.deb generatedInstall it
# umask 022 # dpkg -i UnisphereCLI-Linux-64-x86-en_US-4.0.1.1.3166-1.i386.deb
# ln -s /opt/dellemc/uemcli/bin/uemcli.sh /usr/bin/uemcli
# /opt/emc/uemcli/bin/setlevel.sh low Setting low verifying level.....You can even use "medium" level, then you have to accept and store certificate at the first connection.
# /opt/emc/uemcli/bin/setlevel.sh medium Setting medium verifying level.....
# su - stor2rrd # (lpar2rrd user on the Virtual Appliance) $ uemcli -d 192.168.1.1 -u Local/admin -p "XXXXXX" /user/account show Remote certificate: Issuer: CN=EMC-Unity Subject: CN=EMC-Unity Valid from: 2016-07-15 09:54:57 Z Valid to: 2019-07-15 09:54:57 Z Serial: 0094aea927526b466e Id: 2595584890 Would you like to: [1] Accept the certificate for this session [2] Reject the certificate [3] Accept and store Please input your selection (The default selection is [1]): 3 Storage system address: 192.168.1.1 Storage system port: 443 HTTPS connection 1: ID = user_admin Name = admin Role = administrator Type = local
$ uemcli -d 192.168.1.1 -u Local/admin -p "XXXXXX" /user/account show Remote certificate: Issuer: CN=EMC-Unity Subject: CN=EMC-Unity Valid from: 2016-07-15 09:54:57 Z Valid to: 2019-07-15 09:54:57 Z Serial: 0094aea927526b466e Id: 2595584890 Would you like to: [1] Accept the certificate for this session [2] Reject the certificate Please input your selection (The default selection is [1]):It's necessary to set SecurityLevel to low
SecurityLevel = mediumChanging to low level should resolve it.
SecurityLevel = lowThen option "[3] Accept and store" should appear in the selection.
ln -s /opt/dellemc/uemcli/bin/uemcli.sh /usr/bin/uemcli
$ uemcli -d 192.168.1.1 -u Local/admin -p "XXXXXX" /user/account show Storage system address: 192.168.1.1 Storage system port: 443 HTTPS connection 1: ID = user_admin Name = admin Role = administrator Type = local ... $ uemcli -d 192.168.1.1 -u Local/admin -p "XXXXXX" /user/account create -name stor2rrd -role operator -type local -passwd "Test2test_" Storage system address: 192.168.1.1 Storage system port: 443 HTTPS connection ID = user_stor2rrd Operation completed successfully.
$ /usr/bin/uemcli -d 192.168.1.1 -u Local/stor2rrd -p "XXXXXX" /sys/general show -detail Storage system address: 192.168.1.1 Storage system port: 443 HTTPS connection 1: System name = EMC-Unity Model = UnityVSA Platform type = EMC Storage System System UUID = 420FFE1D-0234-FD02-976E-9217DC6135ED License activation key = ELMEUV0716HN0K Product serial number = VIRT162859DQXZ Health state = OK (5) Health details = "The system is operating normally."
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ===================================== STORAGE: EMC-Unity_alias01: UNITY ===================================== connection ok
$ crontab -l | grep load_unityperf.sh $
$ crontab -e # EMC Unity storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_unityperf.sh > /home/stor2rrd/stor2rrd/load_unityperf.out 2>&1Make sure there is already an entry with the UI creation running once an hour in crontab
$ 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 8443 Connection to "192.168.1.1" on port "8443" is ok
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh VMAX_alias01 =============================== STORAGE: VMAX_alias01: VMAX =============================== connection okPossible errors and solutions:
$ crontab -l | grep load_vmaxperf.sh $
$ crontab -e # VMAX storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_vmaxperf.sh > /home/stor2rrd/stor2rrd/load_vmaxperf.out 2>&1Make sure there is already an entry with the UI creation running once an hour in crontab
$ 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 22 Connection to "192.168.1.1" on port "22" is ok $ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok
$ ssh-keygen -t rsa -N "" Generating public/private rsa key pair. Enter file in which to save the key (/home/stor2rrd/.ssh/id_rsa): ...
# ssh service@VPLEX01 service@VPLEX01:~> vplexcli Trying ::1... Connected to localhost. Escape character is '^]'. Enter User Name: admin Password:
VPlexcli:/> user add -u stor2rrd admin password: New password: Confirm password:
VPlexcli:/> user add -r vplexuser -u stor2rrd Enter admin password: Enter password for stor2rrd: Confirm password for stor2rrd:Allow shell access
VPlexcli:/> cd /management-server/users/local/stor2rrd/ VPlexcli:/management-server/users/local/stor2rrd> set shell-access true Enter admin password:user rights
VPlexcli:/> ll /management-server/users/local/stor2rrd/ Name Value ------------ -------- role-name vplexuser shell-access true user-name stor2rrd
user add -r vplexuser -u stor2rrd >> user add: Evaluation of <<user add ********>> failed. >> cause: Command execution failed. >> cause: com.emc.vplex.cli.CommandException: Unauthorized: Permission denied >> cause: Unauthorized: Permission deniedUnder "admin" the creation was OK, but the next stop was here:
set shell-access true >> Enter admin password: >> set: Evaluation of <<set shell-access true>> failed. >> cause: Failed to update value of 'shell-access'. >> cause: Error committing shell-access.Exit the "vplexcli" shell and entered the following commands:
grep stor2rrd /etc/passwd >> stor2rrd:x:1002:100::/home/stor2rrd:/bin/bash su - stor2rrd >> You are required to change your password immediately (administrator enforced)It forces me to change my password NOW...
mkdir .ssh chmod 700 .ssh cd .ssh vi authorized_keys
$ ssh-copy-id stor2rrd@vplex01
$ ssh vplex01 -l stor2rrd stor2rrd@VPLEX01:~> exitYou have to end up in shell! If you end up in VPLEX CLI then it is wrong, use above "set shell-access true" cmd.
VPlexcli:/> ll /monitoring/directors/*/monitors/ /monitoring/directors/director-1-1-A/monitors: Name Ownership Collecting Period Average Idle Bucket Bucket Bucket Bucket -------------------------------------------------------------- --------- Data ------ Period For Min Max Width Count -------------------------------------------------------------- --------- ---------- ------ ------- ----- ------ ------ ------ ------ director-1-1-A_PERPETUAL_vplex_sys_perf_mon_v19 true true 5s 4.97s 2s - - - 64 director-1-1-A_VIRTUAL_VOLUMES_PERPETUAL_MONITOR true true 1min 1min 33s - - - 64 /monitoring/directors/director-1-1-B/monitors: Name Ownership Collecting Period Average Idle Bucket Bucket Bucket Bucket ------------------------------------------------ --------- Data ------ Period For Min Max Width Count ------------------------------------------------ --------- ---------- ------ ------- ---- ------ ------ ------ ------ director-1-1-B_PERPETUAL_vplex_sys_perf_mon_v19 true true 5s 5.05s 4s - - - 64 director-1-1-B_VIRTUAL_VOLUMES_PERPETUAL_MONITOR true true 1min 60s 33s - - - 64 ...If some do not running then use this procedure to enable it.
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh EMC-VPLEX-01 =============================== STORAGE: EMC-VPLEX-01: VPLEX =============================== connection okIf you get an error about missing LWP::Protocol::https then install as per this manual
$ crontab -l | grep load_vplexperf.sh $
$ crontab -e # VPLEX storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_vplexperf.sh > /home/stor2rrd/stor2rrd/load_vplexperf.out 2>&1Make sure there is already an entry with the UI creation running once an hour in crontab
$ 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
# alien UnisphereCLI-Linux-64-x86-en_US-4.0.1.1.3166-1.i386.rpm UnisphereCLI-Linux-64-x86-en_US-4.0.1.1.3166-1.i386.deb generated
# umask 022 # rpm -i UnisphereCLI-Linux-64-x86-en_US-4.0.1.1.3166-1.x86_64.rpm
# /opt/emc/uemcli/bin/setlevel.sh low Setting low verifying level.....You can even use "medium" level, then you have to accept and store certificate at the first connection.
# /opt/emc/uemcli/bin/setlevel.sh medium Setting medium verifying level.....
$ uemcli -d 192.168.1.1 -u Local/admin -p "XXXXXX" /user/account show Remote certificate: Issuer: CN=EMC-Unity Subject: CN=EMC-Unity Valid from: 2016-07-15 09:54:57 Z Valid to: 2019-07-15 09:54:57 Z Serial: 0094aea927526b466e Id: 2595584890 Would you like to: [1] Accept the certificate for this session [2] Reject the certificate [3] Accept and store Please input your selection (The default selection is [1]): 3 Storage system address: 192.168.1.1 Storage system port: 443 HTTPS connection 1: ID = user_admin Name = admin Role = administrator Type = local
$ uemcli -d 192.168.1.1 -u Local/admin -p "XXXXXX" /user/account show Storage system address: 192.168.1.1 Storage system port: 443 HTTPS connection 1: ID = user_admin Name = admin Role = administrator Type = local ... $ uemcli -d 192.168.1.1 -u Local/admin -p "XXXXXX" /user/account create -name stor2rrd -role operator -type local -passwd "Test2test_" Storage system address: 192.168.1.1 Storage system port: 443 HTTPS connection ID = user_stor2rrd Operation completed successfully.
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh ===================================== STORAGE: EMC-VNXe_alias01: VNXE ===================================== connection ok
$ crontab -l | grep load_vnxeperf.sh $
$ crontab -e # EMC VNXe storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_vnxeperf.sh > /home/stor2rrd/stor2rrd/load_vnxeperf.out 2>&1Make sure there is already an entry with the UI creation running once an hour in crontab
$ 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 22 Connection to "192.168.1.1" on port "22" is ok
$ cat .ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPpQlm0Z/x1X4txd2GgZgvg1Fm7QHeusQ6LqBp/Sb1doAoiDmXErk+lNY27aJAqb4YiGnqejioqCJ9N93NiKpffxH+L3Log on to the storage and add above key:
$ ssh <data domain host> -l stor2rrd stor2rrd@data_domain_host> adminaccess add ssh-keys Enter the key and then press Control-D, or press Control-C to cancel. ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPpQlm0Z/x1X4txd2GgZgvg1Fm7QHeusQ6LqBp/Sb1doAoiDmXErk+lNY27aJAqb4YiGnqejioqCJ9N93NiKpffxH+L3Test connection:
$ ssh <data domain host> -l stor2rrd EMC Data Domain Virtual Edition Welcome to Data Domain OS 6.1.0.11-571028
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh EMC-DataDomain01_alias01 ===================================== STORAGE: EMC-DataDomain01_alias01: DATADOMAIN ===================================== connection ok
$ crontab -l | grep load_datadomainperf.sh $
$ crontab -e # EMC DataDomain storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_datadomainperf.sh > /home/stor2rrd/stor2rrd/load_datadomainperf.out 2>&1Make sure there is already an entry with the UI creation running once an hour in crontab
$ 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
$ tail logs/error.log-<DD alias> Tue Mar 21 19:57:07 2023 command: filesys show compression '/data/xxxx/xxxx' timed out after: 600 seconds /home/stor2rrd/stor2rrd/bin/datadomainconf.pl:1669 : Interrupted system callIt is a known issue when on some DD firmwares hang this cmd:
mtree show compressionworkaround: disable that cmd via this setting, you will not have mtree stats, but rest will work
su - stor2rrd cd /home/stor2rrd/stor2rrd umask 022 echo "export MTREE_COMPRESSION_STATISTICS_EXCLUDE=\"storage1 storage2 storage3\"" >> etc/.magic
Error: Unable to connect to remote machine (dd01) : No such file or directory Error: Error command: ssh login failed unable to load Perl module IO::Pty: Can't locate IO/Pty.pm ...Increase DataDomain parameter login-max-active, stor2rrd ssh sessions are in conjuction with normal backup sessions.
sysadmin@dd(active:0)# adminaccess option show login-max-active. Adminaccess option "login-max-active" set to "150". sysadmin@dd(active:0)# adminaccess option set login-max-active 500 Adminaccess option "login-max-active" set to "500".
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 8080 Connection to "192.168.1.1" on port "8080" is ok
$ ssh -l admin 192.168.1.1 isilon01-1% isi auth users create stor2rrd --enabled yes --password-expires no --password XXXXXXX isilon01-1% isi auth roles create --name stor2rrd --description "Read-only role for STOR2RRD" isi auth roles modify stor2rrd --add-user=stor2rrd --add-priv-ro=ISI_PRIV_EVENT --add-priv-ro=ISI_PRIV_LOGIN_PAPI --add-priv-ro=ISI_PRIV_STATISTICS --add-priv-ro=ISI_PRIV_SMARTPOOLS --add-priv-ro=ISI_PRIV_DEVICES --add-priv-ro=ISI_PRIV_QUOTA
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh isilon-alias01 ===================== STORAGE: isilon-alias01 : ISILON ===================== connection ok
$ crontab -l | grep load_isilonperf.sh $
$ crontab -e # Dell EMC Isilon 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_isilonperf.sh > /home/stor2rrd/stor2rrd/load_isilonperf.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 xtremio-XIO-01-alias01 ===================== STORAGE: xtremio-XIO-01-alias01 : XTREMIO ===================== connection ok
$ crontab -l | grep load_xtremioperf.sh $
$ crontab -e # Dell EMC XtremIO 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_xtremioperf.sh > /home/stor2rrd/stor2rrd/load_xtremioperf.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/dsh: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/dsh: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/dsh: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: EMC-ME4 : DOTHILL ===================== connection ok
$ crontab -l | grep load_dothillperf.sh $
$ crontab -e # DotHill Make suredSAN and its rebrands like Lenovo S2200 or HPE MSA2000/P2000, Dell EMC PowerVault ME4 Series, Quantum StorNex 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/dsh: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 4443 Connection to "192.168.1.1" on port "4443" is ok
$ df -g /home # AIX $ df -h /home # Linux
$ crontab -l | grep load_ecsperf.sh $
$ crontab -e # Dell EMC ECS 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_ecsperf.sh > /home/stor2rrd/stor2rrd/load_ecsperf.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 PowerStore01 ===================== STORAGE: PowerStore01 ===================== connection ok
$ crontab -l | grep load_powerstoreperf.sh $
$ crontab -e # Dell EMC PowerStore 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_powerstoreperf.sh > /home/stor2rrd/stor2rrd/load_powerstoreperf.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 TCP connection to "192.168.1.1" on port "443" is ok
scli --login --username admin
scli --add_user --username stor2rrd --user_role Monitor
scli --login --username stor2rrd scli --set_password
$ crontab -l | grep load_powerflexperf.sh $
$ crontab -e # PowerFlex 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_powerflexperf.sh > /home/stor2rrd/stor2rrd/load_powerflexperf.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: DotHill ===================== connection ok
$ crontab -l | grep load_dothillperf.sh $
$ crontab -e # DotHill Make suredSAN and its rebrands like Lenovo S series or HPE MSA2000/P2000, Dell EMC PowerVault ME4 Series, Quantum StorNex 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
$ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 22 Connection to "192.168.1.1" on port "22" is ok $ perl /home/stor2rrd/stor2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok
sudo /usr/sbin/service-maintenance-window -fCreate the sto2rrd account with the useradd command:
useradd -m -d /home/stor2rrd -g users -G shadow,groupSvc,groupAllUsr,groupShellAccess -c 'stor2rrd' stor2rrdMake sure the created account will not expire.
$ ssh-keygen -t rsa -N "" Generating public/private rsa key pair. Enter file in which to save the key (/home/stor2rrd/.ssh/id_rsa): ...
admin@MN01:~> su - stor2rrd Password: Password change requested. Choose a new password. Old Password: New Password: Reenter New Password:
$ ssh-copy-id stor2rrd@mn01
$ ssh mn01 -l stor2rrd stor2rrd@MN01:~> exitYou have to end up in shell!
VPlexcli:/> ll /monitoring/directors/*/monitors/ /monitoring/directors/director-1-1-A/monitors: Name Ownership Collecting Period Average Idle Bucket Bucket Bucket Bucket -------------------------------------------------------------- --------- Data ------ Period For Min Max Width Count -------------------------------------------------------------- --------- ---------- ------ ------- ----- ------ ------ ------ ------ director-1-1-A_PERPETUAL_vplex_sys_perf_mon_v19 true true 5s 4.97s 2s - - - 64 director-1-1-A_VIRTUAL_VOLUMES_PERPETUAL_MONITOR true true 1min 1min 33s - - - 64 /monitoring/directors/director-1-1-B/monitors: Name Ownership Collecting Period Average Idle Bucket Bucket Bucket Bucket ------------------------------------------------ --------- Data ------ Period For Min Max Width Count ------------------------------------------------ --------- ---------- ------ ------- ---- ------ ------ ------ ------ director-1-1-B_PERPETUAL_vplex_sys_perf_mon_v19 true true 5s 5.05s 4s - - - 64 director-1-1-B_VIRTUAL_VOLUMES_PERPETUAL_MONITOR true true 1min 60s 33s - - - 64 ...If some do not running then use this procedure to enable it.
$ df -g /home # AIX $ df -h /home # Linux
$ cd /home/stor2rrd/stor2rrd $ ./bin/config_check.sh EMC-Metro-node =============================== STORAGE: EMC-Metro-node: Metro-node =============================== connection okIf you get an error about missing LWP::Protocol::https then install as per this manual
$ crontab -l | grep load_metronodeperf.sh $
$ crontab -e # Dell EMC Metro node storage agent 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/stor2rrd/stor2rrd/load_metronodeperf.sh > /home/stor2rrd/stor2rrd/load_metronodeperf.out 2>&1Make sure there is already an entry with the UI creation running once an hour in crontab
$ 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