EZACMD コマンドの NetView 呼び出し

NetView® 環境で EZACMD コマンドを使用するには、以下の要件を満たしている必要があります。
  • NetView ログオン・プロシージャーで hlq.SEZAEXEC ライブラリーを DSICLD ステートメントに連結します。
  • どの z/OS® UNIX 資格情報が使用されているのかを理解するため、NetView セキュリティー・セットアップを確認します。オペレーター権限の定義および検証の詳細については、「IBM® Tivoli® NetView for z/OS アドミニストレーション・リファレンス」を参照してください。

形式:

構文図を読む構文図をスキップする
                                                       .-MAX=100---.   
>>-NETVASIS EZACMD--command name--+-----------------+--+-----------+-><
                                  '-command options-'  '-MAX=lines-'   

パラメーター

command name および options
command name は、z/OS Communications Server でサポートされる UNIX シェル・コマンドの 1 つです。

command options は、UNIX シェル・コマンドでサポートする任意のオプションです。z/OS UNIX コマンドで必要とされる正確な形式および大/小文字を区別してコマンド・オプションを入力する必要があります。

MAX=lines
MAX は、z/OS UNIX コマンドによって生成されて、NetView に表示される出力行の数を制限するオプションのキーワードです。デフォルト値は 100 です。値は、1 から 64 000 の範囲の任意の数値です。

例 1

現在アクティブな IPSec フィルターを表示し、出力行の数を 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 V2R2 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                     

例 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 V2R2: 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