snmp getif
interfacesグループの管理情報を検索して,インタフェース情報を表示します。
[入力形式]
snmp getif
[入力モード]
一般ユーザモードおよび装置管理者モード
[パラメータ]
なし
[実行例]
> snmp getif Index:1 Type :ethernetCsmacd PhysAddr :0012.e286.8801 Adm :up Opr :up InOctets: 28755 OutOctets: 6498 InPkts : 375 OutPkts : 80 Index:1000 Type :softwareLoopback PhysAddr :- Adm :up Opr :up InOctets: 1928 OutOctets: 1928 InPkts : 19 OutPkts : 19 |
[表示説明]
表示項目 |
表示内容 |
表示詳細情報 |
---|---|---|
Index |
ifIndex番号を示します。 |
− |
Type |
ifType(インタフェースのタイプ)を示します。 |
ethernetCsmacd |
ppp |
||
softwareLoopback(ループバックインタフェース) |
||
l2vlan |
||
ieee8023adLag |
||
PhysAddr |
ifPhysAddress(インタフェースの物理アドレス)を示します。 |
値がない場合は"-"を表示します。 |
Adm |
ifAdminStatus(コンフィグレーションのインタフェースの状態)を示します。 |
up(運用中) |
down(非運用中) |
||
Opr |
ifOperStatus(インタフェースの現在の状態)を示します。 |
up(運用中) |
down(非運用中) |
||
lowerLayerDown(下位レイヤのインタフェースダウン) |
||
InOctets |
ifInOctets(インタフェースで受信したオクテット数)を示します。 |
− |
OutOctets |
ifOutOctets(インタフェースで送信したオクテット数)を示します。 |
− |
InPkts |
ifInUcastPkts+ifInNUcastPkts(インタフェースで受信したパケット数)を示します。 |
− |
OutPkts |
ifOutUcastPkts+ifOutNUcastPkts(インタフェースで送信したパケット数)を示します。 |
− |
[通信への影響]
なし
[応答メッセージ]
メッセージ |
内容 |
---|---|
A MIB object name is invalid. (object = <object name or object id>) |
MIBオブジェクト名称が不正です。 <object name or object id>:オブジェクト名称またはオブジェクトID |
A receive error occurred. |
受信エラーが発生しました。 |
A received SNMP packet includes an invalid status code. (code = <code>) |
不正なステータスコードを含むSNMPパケットを受信しました。 <code>:ステータスコード |
An error code in a packet from the SNMP agent indicates that a MIB value exceeds the maximum. |
該当SNMPエージェントから,MIB値が許容サイズを超えているというエラーを受信しました。 |
An error code in a packet from the SNMP agent indicates that a MIB value for a specified object ID is not obtained. (ID of non-acquired object = <number>) |
該当SNMPエージェントから,指定したオブジェクトIDのMIB値が正しく取得できないというエラーを受信しました。なお,取得できないオブジェクトIDは<number>番目に指定したものです。 <number>:指定した順番 |
Sending of an SNMP packet failed. |
SNMPパケットの送信に失敗しました。 |
SNMP packet request IDs do not match. (received = <id1>, expected = <id2>) |
識別番号<id2>のSNMPパケットを要求しましたが,識別番号<id1>のSNMPパケットを受信しました。 <id1>:識別番号 <id2>:識別番号 |
The command cannot be executed in the standby system. |
このコマンドは待機系では実行できません。 |
The command is not authorized by the RADIUS/TACACS+ server or the configuration. |
このコマンドはRADIUSサーバ,TACACS+サーバ,またはコンフィグレーションで承認されていません。 |
The format of a received SNMP packet is invalid. |
不正なフォーマットのSNMPパケットを受信しました。 |
The format of a received SNMP PDU is invalid. |
不正なフォーマットのSNMP PDUを受信しました。 |
The SNMP agent is not responding. The operation will be retried. |
該当SNMPエージェントからの応答がないためリトライ中です。 |
The SNMP agent is not responding. Try again. |
該当SNMPエージェントからの応答がありません。再実行してください。 |
The specified SNMP agent address is invalid. (address = <snmp agent ip address>) |
指定したSNMPエージェントアドレスが不正です。 <snmp agent ip address>:SNMPエージェントアドレス |
[注意事項]
-
コンフィグレーションコマンドsnmp-server communityの設定をしていない場合,SNMPエージェントからの応答がない旨の応答メッセージを出力します。