Troubleshooting Command Suite
The following is a series of commands that will validate the enablement of the SSH Collection Module for a given host. When a support case is opened, a support engineer will likely request the results of the follow series of commands. In this case, it is not expected that legitimate customer data that results from a successful command be sent to support, but any error messages produced will be expected to be provided. These error messages may be cleaned to the extent that usernames or other data deemed private may be removed, however extensive redaction of data may result in difficulty providing insight into the failure.
In these examples, each SSH command is followed by a shell command to print the exit status of the previously issued command. Replace the user and IP elements in angle brackets with the username being utilized and the IP address of the target host.
Linux Targets
For Linux targets, use the following to validate the enablement of the SSH Collection Module for a given host.
ssh -v <user>@<IP> 'true'
echo $?
ssh -v <user>@<IP> 'sudo true'
echo $?
ssh -v <user>@<IP> 'uname -s'
echo $?
ssh -v <user>@<IP> 'sudo ifconfig -a'
echo $?
ssh -v <user>@<IP> 'sudo df -P'
echo $?
ssh -v <user>@<IP> 'sudo netstat --inet --inet6 -n -p –a -t'
echo $?
AIX Targets
For AIX targets, use the following to validate the enablement of the SSH Collection Module for a given host.
ssh -v <user>@<IP> 'true'
echo $?
ssh -v <user>@<IP> 'sudo true'
echo $?
ssh -v <user>@<IP> 'uname -s'
echo $?
ssh -v <user>@<IP> 'lsdev'
echo $?
ssh -v <user>@<IP> 'lsattr -E -l sys0 -a realmem'
echo $?
ssh -v <user>@<IP> 'df -Pk'
echo $?
ssh -v <user>@<IP> 'df -Pk'
echo $?
ssh -v <user>@<IP> 'lsof -i -nP'
echo $?
ssh -v <user>@<IP> 'netstat -an -f inet'
echo $?