運用コマンドレファレンス Vol.2

[目次][索引][前へ][次へ]


show netstat(netstat)(IPv4)

[機能]

RM内のネットワークの状態・統計を表示します。

[入力モード]

一般ユーザモードおよび装置管理者モード

[入力形式]

[show] netstat [ numeric ][ addressfamily <address family> ]
[show] netstat all-protocol-address [numeric][ addressfamily <address family> ]
[show] netstat multicast [{ numeric | statistics }]
[ addressfamily <address family> ]
[show] netstat routing-table[{ [numeric ] [vpn <VPN ID>]| statistics }]
[ addressfamily <address family> ]
[show] netstat interface [ -c ]
[show] netstat interface <Name> [{ statistics | -c | wait <time> }]
[show] netstat [{ memory | protocol <protocol>| rm }]
[show] netstat statistics [addressfamily <address family>]

[パラメータ]

省略
すべてのソケットの状態を表示します。サーバ・プロセスが使用しているソケットは通常表示されません。

all-protocol-address
ソケットに関係するすべてのプロトコル制御ブロックのアドレスを表示します。デバッグに使用します。

-c
interface指定時に表示される情報をk(キロ)やM(メガ)などで省略せずに表示します。

addressfamily <address family>
指定したアドレスファミリーだけについて,統計またはアドレス制御ブロックをレポートします。
アドレスファミリーには,inet,ns,iso,local,inet6,unixがありますが,他パラメータとの組み合わせによって,指定できるアドレスファミリーは異なります。

multicast
マルチキャストの仮想インタフェースと経路情報を表示します。
デフォルトでは,IPv4,IPv6両方の情報を表示します。
(address familyを同時に指定することで,IPv4またはIPv6だけの情報を表示することが可能です。その際に指定する項目は,inet,inet6です。)
(statisticsも同時に指定された場合,マルチキャストの統計情報を表示します。)

interface <Name>
インタフェースの状態を表示します。<Name>省略時はすべてのインタフェースの状態を表示します(statisticsも同時に指定することにより詳細な情報を表示します)。

memory
メモリを管理する統計情報を表示します。

numeric
ネットワークアドレスをホスト名ではなくアドレス番号として表示します。このオプションは,任意の表示フォーマットで使用できます。

protocol <protocol>
指定したプロトコルについての統計情報を表示します。指定できるプロトコルはtcp,ip,udp,icmp,igmp,isis【OP-ISIS】,pim【OP-MLT】です。

routing-table
ルーティング・テーブルを表示します(statisticsも同時に指定された場合,代わりにルーティングの統計情報を表示します)。

rm
RMの情報を表示します。

statistics
各プロトコルごとの統計情報を表示します。routing-tableオプションも同時に指定された場合,ルーティングの統計情報を表示します。

vpn <VPN ID>【OP-MPLS】
routing-tableと同時に指定することで,自装置が収容するVPNサイトの指定VPN IDに関するルーティング情報を表示します。この場合,ネットワークアドレスはアドレス番号として表示します。設定可能な値は1〜1000000またはVPN ID名称です。

wait <time>
ネットワークインタフェースの統計情報について,<time>で指定した秒ごとに定期的に表示します。指定できる値は1〜4294967295です。

[実行例]

show netstatコマンド実行後の表示例を「図1-26 ソケットインタフェースの利用状況」〜「図1-33 インタフェース指定時の統計情報」に示します。

図1-26 ソケットインタフェースの利用状況

>show netstat
Active Internet connections
Proto Recv-Q Send-Q  Local Address         Foreign Address   (state)
tcp        0      0  localhost.adminweb    *.*               LISTEN
                  :
udp        0      0  *.sunrpc              *.*
Active Internet6 connections
Proto Recv-Q Send-Q  Local Address         Foreign Address   (state)
tcp6       0      0  localhost.adminweb    *.*               LISTEN
                  :
udp6       0      0  *.sunrpc              *.*
Active Local domain sockets
Address  Type  Recv-Q Send-Q    Inode     Conn Refs  Nextref Addr
f0a29800 dgram      0      0        0 f083f594    0 f0916314
f0a29780 stream     0      0        0        0    0        0
f083fb00 stream     0      0 f083fa80        0    0        0 /var/run/dialer
 

表1-21 ソケットインタフェース利用状況の表示内容

表示項目 内容
Proto ソケットのプロトコル種別
Recv-Q 受信キューに溜まっているデータバイト数
Send-Q 送信キューに溜まっているデータバイト数
Local Address ソケットの自アドレスとポート番号
Foreign Address ソケットの相手アドレスとポート番号
(state) TCPのステータス遷移状態
Address UNIXドメインコントロールブロックの内部メモリ番地
Type UNIXソケットのデータ通信型
Inode i-node情報管理テーブルの内部メモリ番地
Conn UNIX Stream型ソケットの相手コントロールブロックの内部メモリ番地
Refs UNIX Datagram型ソケットの最後に受信した相手コントロールブロックの内部メモリ番地
Nextref Addr UNIX Datagramソケットの最後に送信した相手コントロールブロックの内部メモリ番地

図1-27 各インタフェースの状態

>show netstat interface Ether1
Name     Mtu   Network    Address       Ipkts   Ierrs   Opkts   Oerrs   Coll
Ether1   1500  192.168.0  192.168.0.1    105K       0    120K       0      0
VPN:1 ---------------------------------------------------------------(注)
Ether1   1497    ---         ---           3K       0      3K       0      0
>show netstat interface Ether1 -c
Name     Mtu   Network    Address       Ipkts   Ierrs   Opkts   Oerrs   Coll
Ether1   1500  192.168.0  192.168.0.1  105418       0  120955       0      0
VPN:1 ---------------------------------------------------------------(注)
Ether1   1497    ---         ---         3033       0    3032       0      0
>
 
(注):非VPNの場合,この行は表示しません。

表1-22 各インタフェースの状態の表示内容

表示項目 内容
Name インタフェース名称
Mtu MTU長
Network IPネットワークアドレス
IPインタフェース以外のインタフェース時には,「−−−」
Address ホスト名称(定義していない場合には,IPアドレス)
IPインタフェース以外のインタフェース時には,「−−−」
Ipkts 受信パケット数(IPインタフェース時には,IPv4パケットとIPv6パケットの総数)
Ierrs 受信エラー数(IPインタフェース時には,IPv4パケットとIPv6パケットの総数)
Opkts 送信パケット数(IPインタフェース時には,IPv4パケットとIPv6パケットの総数)
Oerrs 送信エラー数(IPインタフェース時には,Pv4パケットとIPv6パケットの総数)
Coll 衝突発生回数(IPインタフェース時には,IPv4パケットとIPv6パケットの総数)
VPN VPN ID

図1-28 インタフェースEther1の累計統計情報

>show netstat interface Ether1 wait 5
 Name : Ether1
 Ipackets Ierrs  Opackets Oerrs colls
    40763   659         1     0     0
        3     0         0     0     0
        6     0         0     0     0
 ^C
>

表1-23 インタフェースの累計統計情報の表示内容

表示項目 内容
Name インタフェース名称
Ipackets 指定間隔での受信パケット数(IPv4パケットとIPv6パケットの総数)
最初の表示は,累計受信パケット数
Ierrs 指定間隔での受信エラー数(IPv4パケットとIPv6パケットの総数)
最初の表示は,累計受信エラー数
Opackets 指定間隔での送信パケット数(IPv4パケットとIPv6パケットの総数)
最初の表示は,累計送信パケット数
Oerrs 指定間隔での送信エラー数(IPv4パケットとIPv6パケットの総数)
最初の表示は,累計送信エラー数
Colls 指定間隔での衝突発生回数(IPv4パケットとIPv6パケットの総数)
最初の表示は,累計衝突発生回数

図1-29 ルーティング・テーブルの状態

>show netstat routing-table
Routing tables
Destination         Gateway            Flags    Refs      Use  Interface
Site1               192.168.0.1        UHLc        0    60428  Ether2
>
 
注 vpn <VPN ID>を指定した場合,指定VPNのルーティング・テーブル状態を表示します。

表1-24 ルーティング・テーブルの状態の表示内容

表示項目 内容
Destination 宛先ホスト名称(定義していない場合には,IPアドレス)
Gateway ゲートウェイのアドレス
Flags 経路状態フラグ
Refs 現在,該当経路を参照しているソケットの個数
Use 今までに該当経路を参照したソケットの個数の総和
Interface 送信インタフェース

図1-30 プロトコルicmpについての統計情報

>show netstat protocol icmp
icmp:
        284 calls to icmp_error
        0 errors not generated because old message was icmp
           Output histogram:
                   destination unreachable: 284
           3 messages with bad code fields
           0 messages < minimum length
           0 bad checksums
           0 messages with bad length
           Input histogram:
                   destination unreachable: 293 
           0 message responses generated
>
 

表1-25 プロトコルicmpについての統計情報の表示内容

表示項目 内容
calls to icmp_error ICMPエラーメッセージを発行しようとした回数
errors not generated because old message was icmp ICMPメッセージ発行要因となったパケットがICMPメッセージだったため,ICMPエラーメッセージを発行しなかった回数
Output histogram: 各ICMPメッセージ種別ごとの送信回数
messages with bad code fields 以下のICMPパケット受信数合計
  1. 未定義コードのICMPメッセージ
  2. 宛先がマルチキャストのICMPメッセージ
messages < minimum length 以下のICMPパケット受信数合計
  1. ICMPメッセージのサイズが8より小さい
  2. カーネル受信バッファのサイズがIPヘッダを除くパケット長(36バイト未満の場合)より小さいとき,またはカーネル受信バッファのサイズが36バイト未満のとき
bad checksums ICMPメッセージのチェックサムフィールドの値が不正なパケット受信数
messages with bad length 以下のICMPパケット受信数合計
  1. ICMPメッセージサイズが36バイトより小さい
  2. ICMPメッセージサイズがIPオプションのサイズ+36バイトより小さい
  3. ICMPメッセージの要因となったIPパケットのヘッダ長フィールドが不正
  4. ICMPタイムスタンプ要求のサイズが20バイトより小さい
Input histogram: 各ICMPメッセージ種別ごとの受信回数
message responses generated 応答を返すICMPメッセージ(Echo,Timestamp,Address Mask)受信数

図1-31 プロトコルpimについての統計情報

>show netstat protocol pim
pim:
        12 messages received
        0 messages received with too few bytes
        8 registers received
        0 registers received with bad checksum
        0 registers received with bad encap ip checksum
        0 registers received with other errors
>
 

表1-26 プロトコルpimについての統計情報の表示内容

表示項目 内容
messages received PIMパケットの総受信数
messages received with too few bytes 受信したPIMパケットのうちPIMヘッダ長より短いため廃棄したパケット数
registers received Registerパケットの受信数
registers received with bad checksum 受信したRegisterパケットのうちPIMヘッダのチェックサムエラーパケット数
registers received with bad encap ip checksum 受信したRegisterパケットのうちカプセル化されたIPパケットのチェックサムエラーパケット数
registers received with other errors 受信したRegisterパケットのうちその他のエラーパケット数

図1-32 アドレスファミリーisoについての統計情報

>show netstat addressfamily iso statistics
isis:
        0 total pdus sent
                0 with bad header length
                0 with an incorrect protocol identifier
                0 pdus discarded due to interface disabled
                0 pdus discarded due to interface down
                0 pdus delivered
        0 total pdus received
                0 with bad header length
                0 with an incorrect protocol identifier
                0 pdus discarded due to interface disabled
                0 pdus discarded due to interface down
                0 pdus dropped due to no bufs
                0 pdus dropped due to full socket buffers
                0 pdus dropped to no socket
                0 pdus delivered
RM:
        1039 packets received
                0 ip
                0 ip6
                0 isis
                0 arp
                1039 control
        0 input packets discarded
                0 no memory
                0 bad length
        0 times ip queue full
        0 times ip6 queue full
        0 times isis queue full
        0 times arp queue full
        0 times control queue full
        1 times receiver disabled
        1 times receiver restarted
        1016 packets sent
                0 ip
                0 ip6
                0 isis
                0 arp
                1016 control
        0 output packets discarded
        0 times sender disabled
        0 times sender restarted
        0 packets send to priority queue(total)
                0 : priority 1 discard 1
                0 : priority 1 discard 2
                           :
                0 : priority 5 discard 4
        0 packets discard in priority queue(total)
                0 : priority 1 discard 1
                0 : priority 1 discard 2
                           :
                0 : priority 5 discard 4
>

注1 show netstat protocol isis statisticsでは,isisだけの表示になります。

注2 show netstat rmでは,RMだけの表示になります。

表1-27 アドレスファミリーisoについての統計情報の表示内容

表示項目 内容
total pdus sent 経路情報制御処理部からカーネルに送信要求を行ったIS-ISパケット総数
with bad header length 経路情報制御処理部からカーネルに送信要求を行ったIS-ISパケットのうちヘッダ長不正のため廃棄したパケット数
with an incorrect protocol identifier 経路情報制御処理部からカーネルに送信要求を行ったIS-ISパケットのうちプロトコル識別子が不正のため廃棄したパケット数
pdus discarded due to interface disabled 経路情報制御処理部からカーネルに送信要求を行ったIS-ISパケットのうちインタフェースにIS-ISが未設定のため廃棄したパケット数
pdus discarded due to interface down 経路情報制御処理部からカーネルに送信要求を行ったIS-ISパケットインタフェースダウンで廃棄したパケット数
pdus delivered 経路情報制御処理部からカーネルに送信要求を行ったIS-ISパケットのうちCPに送信したパケット数
total pdus received IS-IS受信パケット総数
with bad header length IS-IS受信パケットのうちヘッダのレングス長が不正のため廃棄したパケット数
with an incorrect protocol identifier IS-IS受信パケットのうちプロトコル識別子が不正のため廃棄したパケット数
pdus discarded due to interface disabled IS-IS受信パケットのうちインタフェースにIS-ISが未設定のため廃棄したパケット数
pdus discarded due to interface down IS-IS受信パケットのうちインタフェースダウンのため廃棄したパケット数
pdus dropped due to no bufs IS-IS受信パケットのうちカーネル内バッファ不足により廃棄したパケット数
pdus dropped due to full socket buffers IS-IS受信パケットのうちソケットバッファ不足により廃棄したパケット数
pdus dropped to no socket IS-IS受信パケットのうちどのアプリケーションもソケットを開いていないため廃棄したパケット数
pdus delivered IS-IS受信パケットのうちアプリケーションへ正常に渡したパケット数
packets received RMがCPから受信した総パケット数
ip RMがCPから受信したIPV4パケット数
ip6 RMがCPから受信したIPV6パケット数
isis RMがCPから受信したOSI(ISIS)パケット数
arp RMがCPから受信したARPパケット数
control RMがCPから受信した制御パケット数(L2制御含む)
input packets discarded RMがCPから受信時で廃棄した総パケット数
no memory RMがCPから受信時バッファ不足で廃棄したパケット数
bad length RMがCPから受信時パケット長不正で廃棄したパケット数
times ip queue full RMがCPから受信時検出したIPV4キューフル検出回数
times ip6 queue full RMがCPから受信時検出したIPV6キューフル検出回数
times isis queue full RMがCPから受信時検出したOSIキューフル検出回数
times arp queue full RMがCPから受信時検出したARPキューフル検出回数
times control queue full RMがCPから受信時検出した制御キューフル検出回数
times receiver disabled RMがCPからのパケット受信を停止した回数(過負荷制御)
times receiver restarted RMがCPからのパケット受信を回復した回数(過負荷制御)
packets sent RMがCPに送信した総パケット数
ip RMがCPに送信したIPV4パケット数
ip6 RMがCPに送信したIPV6パケット数
isis RMがCPに送信したOSI(ISIS)パケット数
arp RMがCPに送信したARPパケット数
control RMがCPに送信した制御パケット数(L2制御含む)
output packets discarded RMがCPに送信しようとして,アプリケーションにエラー応答した回数(CPキューフル廃棄および不正な送信)
times sender disabled 0固定(未サポート)
times sender restarted 0固定(未サポート)
packets send to priority queue(total) RMの出力優先度キューに積んだパケット総数
priority <No.> discard <No.> 各出力優先度およびキューイング優先度ごとのキューに積んだパケット数
  • priority <No.>:出力優先度(1〜5)
  • discard <No.>:キューイング優先度(1〜4)
packets discard in priority queue(total) RMの出力優先度キューで廃棄したパケット総数
priority <No.> discard <No.> 各出力優先度およびキューイング優先度ごとのキューで廃棄したパケット数
  • priority <No.>:出力優先度(1〜5)
  • discard <No.>:キューイング優先度(1〜4)

図1-33 インタフェース指定時の統計情報

>show netstat interface eth00 statistics
eth00:
[IP]   1500 maximum transmission unit [MTU]
        0 routing metric (external only)
        0 packets received on interface
        0 input errors on interface
        0 packets sent on interface
        0 output errors on interface
        0 collisions on csma interfaces
        0 total number of octets received
        0 total number of octets sent
        0 packets received via multicast
        0 packets sent via multicast
        0 packets dropped on input, this interface
        0 packets destined for unsupported protocol
 
[IS-IS] 5 packets received on interface
        0 input errors on interface
        10 packets sent on interface
        0 output errors on interface
        7735 total number of octets received
        15470 total number of octets sent
        0 packets destined for unsupported NLPID
 
注 [IS-IS]統計情報は,IS-IS指定インタフェースの場合に表示します。
 

表1-28 各インタフェース指定時の統計情報の表示内容

表示項目 内容
maximum transmission unit [MTU] MTU長
routing metric (external only) 0固定(未サポート)
packets received on interface IPv4パケットとIPv6パケットの総受信パケット数
input errors on interface IPv4パケットとIPv6パケットの総受信エラー数
packets sent on interface IPv4パケットとIPv6パケットの総送信パケット数
output errors on interface IPv4パケットとIPv6パケットの総送信エラー数
collisions on csma interfaces IPv4パケットとIPv6パケットの総衝突発生回数
total number of octets received IPv4受信パケットとIPv6受信パケットの総バイト数
total number of octets sent IPv4送信パケットとIPv6送信パケットの総バイト数
packets received via multicast IPv4マルチキャストパケット経由とIPv6マルチキャスト経由総受信パケット数
packets sent via multicast IPv4マルチキャスト経由パケットとIPv6マルチキャスト経由総送信パケット数
packets dropped on input, this interface IPv4受信パケットとIPv6パケットの総受信喪失パケット数
packets destined for unsupported protocol 未サポートプロトコルの総パケット数
packets received on interface IS-IS受信パケット数
input errors on interface IS-IS受信エラー数
packets sent on interface IS-IS送信パケット数
output errors on interface IS-IS送信エラー数
total number of octets received IS-IS受信パケット総バイト数
total number of octets sent IS-IS送信パケット総バイト数
packets destined for unsupported NLPID IS-IS未サポートプロトコルのパケット数

[表示説明]

なし

[ユーザ通信への影響]

なし

[応答メッセージ]

表1-29 show netstat (netstat)(IPv4)コマンドのメッセージ一覧

メッセージ 内容
Socket open error. ソケット生成に失敗しました。
Since cache changed, please try again. コマンド実行中に,情報が変更されました。コマンドを再投入してください。
No configuration VPN -- <VPN ID>. 指定したVPN IDは未定義です。
<VPN ID>VPN ID名称
Configuration access busy, please try again. コンフィグレーションの取得ができませんでした。再度コマンドを実行してください。

[注意事項]

[目次][前へ][次へ]


[他社商品名称に関する表示]

Copyright (c) 2005, 2011, ALAXALA Networks Corporation. All rights reserved.