Provide Network Status of Remote UNIX from Windows
Provide Network Status of Remote UNIX from Windows
This example produces a report of the system status of a remote UNIX system. Instead of executing a command on the remote host, a local script file is executed.
The following figure illustrates the script file myscript.
Note
The commands executed in the script file may or may not require modifications depending on the type of UNIX system on which it executes.
echo "System Status as of `date`"
echo "-------------------------------------------------------------------------------------------"
netstat
echo "-------------------------------------------------------------------------------------------"
df
echo "-------------------------------------------------------------------------------------------"
ps -ax
The following figure illustrates the command to execute the script file.
ucmd -script myscript -host dallas -userid joe -pwd password
The report is written to the standard out of UCMD.
Command Line Options
The command line options used in this example are:
Components
Universal Command Manager for Windows