NetView invocation of the EZACMD command

To use the EZACMD command in the NetView® environment, you must meet the following requirements:
  • Concatenate the hlq.SEZAEXEC library to the DSICLD statement in your NetView logon procedure.
  • Review the NetView security setup to understand which z/OS® UNIX credentials are used. See the information about defining and verifying operator authority in IBM® Tivoli® NetView for z/OS Administration Reference for details.

Format:

Read syntax diagramSkip visual syntax diagram
                                                       .-MAX=100---.   
>>-NETVASIS EZACMD--command name--+-----------------+--+-----------+-><
                                  '-command options-'  '-MAX=lines-'   

Parameters

Command name and options
Command name is one of the supported z/OS Communications Server UNIX shell commands.

Command options are any option that the UNIX shell command supports. The command options must be entered in the exact format and case that is required by the z/OS UNIX command.

MAX= lines
MAX is an optional keyword that limits the number of output lines that are produced by the z/OS UNIX command and that are displayed for NetView. The default value is 100. The value can be any numeric value that is in the range 1 - 64 000.

Example 1

Display currently active IPSec filters, limiting number of output lines to 9.

netvasis EZACMD ipsec -f display max=9                                        
* CNM01    ezacmd ipsec -f display max=9                                      
C CNM01    NetView REXX EZACMD: ipsec command - start - userID=USER1           
C CNM01    NetView REXX EZACMD: ipsec -f display                               
C CNM01                                                                        
C CNM01    CS V2R1 ipsec  Stack Name: TCPCS  Fri Oct  7 14:33:59 2011         
C CNM01    Primary:  Filter          Function: Display            Format: Detail
C CNM01    Source:   Stack Policy    Scope:    Current            TotAvail: 730
C CNM01    Logging:  On              Predecap: Off                DVIPSec:  No 
C CNM01    NatKeepAlive:  0                                                    
C CNM01    Defensive Mode: Inactive                                            
C CNM01                                                                        
C CNM01    FilterName:                   DVIPA1~2                              
C CNM01    FilterNameExtension:          1                                     
C CNM01    NetView REXX EZACMD: Maximum number of output lines (9) has been reached.
C CNM01    NetView REXX EZACMD: ipsec command - end - RC=4                     

Example 2

Ping host w3.ibm.com.

netvasis ezacmd ping -v w3.ibm.com                                           
* CNM01    ezacmd ping -v w3.ibm.com                                           
C CNM01    NetView REXX EZACMD: ping command - start - userID=USER1            
C CNM01    NetView REXX EZACMD: ping -v w3.ibm.com                             
C CNM01    CS V2R1: Pinging host w3.ibm.com (9.17.137.11)                     
C CNM01    with 256 bytes of ICMP data                                         
C CNM01    Ping #1 from 9.17.137.11: bytes=264 seq=1 ttl=242 time=69.24 ms     
C CNM01    Ping #2 from 9.17.137.11: bytes=264 seq=2 ttl=242 time=65.91 ms     
C CNM01    Ping #3 from 9.17.137.11: bytes=264 seq=3 ttl=242 time=67.90 ms     
C CNM01    Ping statistics for w3.ibm.com (9.17.137.11)                        
C CNM01      Packets: Sent=3, Received=3, Lost=0 (0% loss)                     
C CNM01      Approximate round trip times in milliseconds:                     
C CNM01      Minimum=65.91 ms, Maximum=69.24 ms, Average=67.68 ms, StdDev=1.68 ms
C CNM01    NetView REXX EZACMD: ping command - end - RC=0