Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following figure illustrates the script file, myscript.

<pre>
echo System Status
echo ----------------------------------------------------------------------------------------
date /t
time /t
echo ----------------------------------------------------------------------------------------
netstat -se
echo ----------------------------------------------------------------------------------------
netstat -a
echo ----------------------------------------------------------------------------------------
</pre>
Panel
Html bobswift


The following figure illustrates the command to execute the script file.

<pre>
ucmd -script myscript -host dallas -userid joe -pwd password
</pre>
Panel
Html bobswift


Anchor
1136869
1136869
The report is written to the standard out of UCMD.

...

Anchor
1136871
1136871
The command line options used in this example are:

Anchor
1136905
1136905

...

cellspacing0
stylemargin-top: 0.0pt; text-align: left; width: 100%;
classTable_with_Header

...

stylebackground-color: #F0F0F0; border-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: middle; width: 108pt;

...

Option

...

...

Description

...

...

...

...

...

File name of a script file. The script file is sent to the remote system for execution.

...

...

...

...

styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

...

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

...

...

...

...

Remote user ID with which to execute the command.

...

...

...

styleborder-bottom-color: #E8E8E8; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #E8E8E8; border-left-style: solid; border-left-width: 1px; border-right-color: #E8E8E8; border-right-style: solid; border-right-width: 1px; border-top-color: #E8E8E8; border-top-style: solid; border-top-width: 1px; padding-bottom: 3pt; padding-left: 4pt; padding-right: 4pt; padding-top: 4pt; vertical-align: top;

...

...

Password for the user ID.

Components

Anchor
1136910
1136910
Universal Command Manager for UNIX