PowerFlex 3.0: get_info.sh skips scli commands when netstat is not installed
Summary: get_info.sh skips scli login and all scli commands on primary MDM when netstat is not installed.
Instructions
get_info.sh skips scli login and all scli commands on Master MDM.
The get_info_run.log shows the following:
04/08 17:03:00.020698: main:2215: get_info started with parameters: -u admin -p "****" -s -x getInfoDump
04/08 17:03:00.023629: main:2244: Security Warning: Cannot identify user listening on MDM port
04/08 17:03:00.024597: main:2247: Skipping login
Scenario
Collecting getInfoDump on Master MDMscli login works without issue.
MDM port is open.
Impact
Missing scli output in the Master MDM's getInfoDump.
Root Cause
get_info.sh uses netstat command to check Master MDM's tcp port is being listened on, before running scli login and commands. If netstat command (available in net-tools rpm) is not installed, the get_info.sh skips any scli commands.
Workaround
Install net-tools package and run get_info.sh again.
Impacted Versions
2.x
3.0.x
Fixed in Version
This issue is fixed in 3.5, which uses netstat or ss command to check the listening port. If neither is installed, get_info.sh reports the following, and skips scli login and commands:
'netstat' and 'ss' commands not found on the server - can't find mdm_pid...