pppstat コマンドは、Solstice PPP の起動後に送受信した IP パケットと PPP フレームの数と種類に関する情報を表示します。この情報はリンク使用状況の記録となり、ネットワーク問題の検出に利用することができます。
各種 PPP フレームとその意味については、付録 A 「PPP リンクの動作」 を参照してください。
pppstat コマンドの形式は、次のとおりです。
prompt# pppstat [-i] [-e] [-l] [-n] [ppp_link_name] |
-i オプションを付けて pppstat コマンドを実行すると、Solstice PPP の起動後に送受信した IP パケットに関する情報が表示されます。1 個の IP データグラムが各 PPP フレームにカプセル化されます。
prompt# pppstat -i IP status for PPP MIB link number 1 33 IP packets in (1500 octets total) 38 IP packets out (366 octets total) 2 packets in TYPE IP 3 packets in TYPE VJ UNCOMPRESSED 28 packets in TYPE VJ COMPRESSED 2 packets out TYPE IP 3 packets out TYPE VJ UNCOMPRESSED 33 packets out TYPE VJ COMPRESSED |
-e オプションを付けて pppstat コマンドを実行すると、Solstice PPP の起動後に送受信した PPP エラーフレームに関する情報が表示されます。
prompt# pppstat -e Errors status for PPP MIB link number 1 0 bad HDLC address fields, last was 0x00 0 bad HDLC control fields, last was 0x00 0 frames received with invalid protocol id, last was 0x0000 0 packets exceeded local maximum receive unit 0 packets were too short to be valid 0 packets had headers which were too short 0 packets received with bad CRC 1 Configure Request packets retransmitted due to timeout 0 Terminate Request packets retransmitted due to timeout |
-l オプションを付けて pppstat コマンドを実行すると、Solstice PPP の起動後に送受信した PPP LCP (リンク制御プロトコル) フレームに関する情報が表示されます。
prompt# pppstat -l LCP status for PPP MIB link number 1 4 LCP packets in (72 octets) 4 LCP packets out (72 octets) 0 LCP protocol rejects 2 LCP Configure Requests sent 3 LCP Configure Requests received 2 LCP Configure Acks sent 1 LCP Configure Acks received 0 LCP Configure Naks sent 0 LCP Configure Naks received 0 LCP Configure Rejs sent 0 LCP Configure Rejs received 0 LCP Terminate Requests sent 0 LCP Terminate Requests received 0 LCP Terminate Acks sent 0 LCP Terminate Acks received 0 LCP Code Rejects sent 0 LCP Code Rejects received 0 LCP Echo Requests sent 0 LCP Echo Requests received 0 LCP Echo Responses sent 0 LCP Echo Responses received 0 LCP Disconnect Reqs sent 0 LCP Disconnect Reqs received |
-n オプションを付けて pppstat コマンドを実行すると、Solstice PPP の起動後に送受信した IP NCP (ネットワーク制御プロトコル) フレームに関する情報が表示されます。
prompt# pppstat -n IPNCP status for PPP MIB link number 1 3 IPNCP packets in (42 octets) 3 IPNCP packets out (48 octets) 0 IPNCP protocol rejects 2 IPNCP Configure Requests sent 1 IPNCP Configure Reqs received 1 IPNCP Configure Acks sent 1 IPNCP Configure Acks received 0 IPNCP Configure Naks sent 1 IPNCP Configure Naks received 0 IPNCP Configure Rejs sent 0 IPNCP Configure Rejs received 0 IPNCP Terminate Requests sent 0 IPNCP Terminate Reqs received 0 IPNCP Terminate Acks sent 0 IPNCP Terminate Acks received 0 IPNCP Code Rejects sent 0 IPNCP Code Rejects received 0 IPNCP Echo Requests sent 0 IPNCP Echo Requests received 0 IPNCP Echo Responses sent 0 IPNCP Echo Responses received 0 IPNCP Disconnect Reqs sent 0 IPNCP Disconnect Reqs received |