Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Provide Network Status of Remote UNIX from z/OS

This example demonstrates executing a simple UNIX command from z/OS using the SCRIPT option, as opposed to the COMMAND option.

The UNIX netstat command is executed in the example. The netstat command writes the network status report to its standard out, which is redirected to the UCMD Manager on z/OS. The UCMD Manager writes the standard out to ddname UNVOUT.


//jobname JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//* 
//        JCLLIB ORDER=SBI.UNV.SUNVSAMP 
//* 
//STEP1   EXEC UCMDPRC 
//SCRIPT  DD *
netstat
//SYSIN   DD *
-host     hostname
-userid   username
-pwd      password
-script   SCRIPT  
/* 

SYSIN Options

The SYSIN options used in this example are:

Option

Description

-host

Host name or IP address of the remote system on which to execute the script.

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

-script

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

Components

Universal Command Manager for z/OS

 
 

  • No labels