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:

Option

Description

-scriptddname from which to read a script file. The script file is sent to the remote system by UCMD Manager for execution.

-host

Directs the command to a computer with a host name of dallas.

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

Components

Universal Command Manager for Windows