[index] CentreCOM AR550S コマンドリファレンス 2.9

ADD SNMP VIEW

カテゴリー:運用・管理 / SNMP


ADD SNMP VIEW=view OID=node-oid [TYPE={INCLUDE|EXCLUDE}]

ADD SNMP VIEW=view MIB=node-name [TYPE={INCLUDE|EXCLUDE}]

view: SNMPビュー名(1〜32文字。大文字小文字を区別する)
node-oid: MIBノードOID(1.3.6.1のように整数とピリオドで構成された文字列。数字は32個まで使用できる)
node-name: MIBノード名(既定のノード名。別表を参照)


(SNMPv3)ビューにエントリーを追加する。

ビューは、複数のエントリーで構成されるリスト。各エントリーは、MIBノードのOIDと該当ノードをビューに含めるかどうかの指定(INCLUDE、EXCLUDE)からなる。

あるOIDがビューに含まれるかどうかは、そのOIDがマッチする最も長いエントリーの指定(INCLUDE、EXCLUDE)によって決まる(最長一致)。したがって、エントリーの追加順序は意味を持たない。

なお、最長一致検索を実現するため、リストはOIDの辞書順にソートされている(SHOW SNMP VIEWコマンドで確認できる)。そのため、リストを先頭から検索した場合に、最後にマッチしたエントリーが採用されると考えてもよい(ラストマッチ)。



パラメーター

VIEW: SNMPビュー名

OID: MIBノードのOID(Object Identifier)。MIBパラメーターとは同時に指定できない。

MIB: MIBノードの名前。指定できる名前と対応するOIDは別表を参照。OIDパラメーターとは同時に指定できない。なお、名前で指定した場合であっても、設定をファイルに保存するときはOIDに変換される。

TYPE: 指定したMIBノードをビューに含めるかどうか。INCLUDE(含める)、EXCLUDE(含めない)から選択する。省略時はINCLUDE。



表 1:既定のMIBノード名
ノード名
OID
internet 1.3.6.1
mib-2 1.3.6.1.2.1
system 1.3.6.1.2.1.1
interfaces 1.3.6.1.2.1.2
at 1.3.6.1.2.1.3
ip 1.3.6.1.2.1.4
icmp 1.3.6.1.2.1.5
tcp 1.3.6.1.2.1.6
udp 1.3.6.1.2.1.7
egp 1.3.6.1.2.1.8
transmission 1.3.6.1.2.1.10
snmp 1.3.6.1.2.1.11
bgp 1.3.6.1.2.1.15
rmon 1.3.6.1.2.1.16
bridge 1.3.6.1.2.1.17
host 1.3.6.1.2.1.25
mau 1.3.6.1.2.1.26
if 1.3.6.1.2.1.31
private 1.3.6.1.4
alliedTelesyn 1.3.6.1.4.1.207
snmpV2 1.3.6.1.6
snmpModules 1.3.6.1.6.3
snmpFramework 1.3.6.1.6.3.10
snmpMPD 1.3.6.1.6.3.11
snmpTarget 1.3.6.1.6.3.12
snmpUsm 1.3.6.1.6.3.15
snmpVacm 1.3.6.1.6.3.16



internetノード(1.3.6.1)以下の全オブジェクトを含むSNMPビュー「most」を定義する。
ADD SNMP VIEW=most MIB=internet TYPE=INCLUDE

mib-2ノード(1.3.6.1.2.1)以下の全オブジェクトを含むSNMPビュー「standard」を定義する。
ADD SNMP VIEW=standard MIB=mib-2 TYPE=INCLUDE

原則としてmib-2ノード(1.3.6.1.2.1)以下の全オブジェクトを含むが、tcpノード(1.3.6.1.2.1.6)とudpノード(1.3.6.1.2.1.7)以下は含まないSNMPビュー「mib2notcpudp」を定義する。マッチングはOIDの最長一致で行われるため、エントリーの追加順序は意味を持たない。したがって、以下の3コマンドは異なる順序で入力しても同じ動作となる。
ADD SNMP VIEW=mib2notcpudp MIB=mib-2 TYPE=INCLUDE
ADD SNMP VIEW=mib2notcpudp MIB=tcp TYPE=EXCLUDE
ADD SNMP VIEW=mib2notcpudp MIB=udp TYPE=EXCLUDE



関連コマンド

ADD SNMP GROUP
DELETE SNMP VIEW
SHOW SNMP GROUP
SHOW SNMP VIEW



参考

RFC1155, Structure and Identification of Management Information for TCP/IP-based Internets
RFC1157, A Simple Network Management Protocol (SNMP)
RFC1213, Management Information Base for Network Management of TCP/IP-based internets: MIB-II
RFC1239, Reassignment of Experimental MIBs to Standard MIBs
RFC1398, Definitions of Managed Objects for the Ethernet-like Interface Types
RFC1493, Definitions of Managed Objects for Bridges
RFC1514, Host Resources MIB
RFC1573, Evolution of the Interfaces Group of MIB-II
RFC1901, Introduction to Community-based SNMPv2
RFC1902, Structure of Management Information for Version 2 of the Simple Network Management Protocol (SNMPv2)
RFC1903, Textual Conventions for Version 2 of the Simple Network Management Protocol (SNMPv2)
RFC1904, Conformance Statements for Version 2 of the Simple Network Management Protocol (SNMPv2)
RFC1905, Protocol Operations for Version 2 of the Simple Network Management Protocol (SNMPv2)
RFC1906, Transport Mappings for Version 2 of the Simple Network Management Protocol (SNMPv2)
RFC1907, Management Information Base for Version 2 of the Simple Network Management Protocol (SNMPv2)
RFC2233, The Interfaces Group MIB using SMIv2
RFC2576, Coexistence between Version 1, Version 2, and Version 3 of the Internet-standard Network Management Framework
RFC2578, Structure of Management Information Version 2 (SMIv2)
RFC2579, Textual Conventions for SMIv2
RFC2580, Conformance Statements for SMIv2
RFC3410, Introduction and Applicability Statements for Internet Standard Management Framework
RFC3411, An Architecture for Describing Simple Network Management Protocol (SNMP) Management Frameworks
RFC3412, Message Processing and Dispatching for the Simple Network Management Protocol (SNMP)
RFC3413, Simple Network Management Protocol (SNMP) Applications
RFC3414, User-based Security Model (USM) for version 3 of the Simple Network Management Protocol (SNMPv3)
RFC3415, View-based Access Control Model (VACM) for the Simple Network Management Protocol (SNMP)
RFC3416, Version 2 of the Protocol Operations for the Simple Network Management Protocol (SNMP)
RFC3417, Transport Mappings for the Simple Network Management Protocol (SNMP)
RFC3418, Management Information Base (MIB) for the Simple Network Management Protocol (SNMP)


(C) 2005-2014 アライドテレシスホールディングス株式会社

PN: J613-M0710-03 Rev.K