标签:ble entry none efault tee -- stc mit val
安装net-snmp-5.6.1.1-1.x86.exe,直接安装在c:/usr目录下,并将c:/usr/bin添加进环境变量
调用snmpget
snmpget -v 2c -c public localhost .1.3.6.1.2.1.55.1.1.0,读取ipv6Forwarding,需要在最后的1处加.0,同时最开始的1前面也要有点
下面可以看出,ipv6Forwarding为2即不转发,ipv6Interfaces为8,即有8个IPv6接口
1 C:\Users>snmpget -v 2c -c public localhost .1.3.6.1.2.1.55.1.1.0 2 SNMPv2-SMI::mib-2.55.1.1.0 = INTEGER: 2 3 4 C:\Users>snmpget -v 2c -c public localhost .1.3.6.1.2.1.55.1.3.0 5 SNMPv2-SMI::mib-2.55.1.3.0 = Gauge32: 8 6 7 C:\Users>snmpget -v 2c -c public localhost .1.3.6.1.2.1.55.1.9.0 8 SNMPv2-SMI::mib-2.55.1.9.0 = Gauge32: 14
接下来,需要研究,如何读取table。
+--ipv6MIB(55) | +--ipv6MIBObjects(1) | | | +-- -RW- EnumVal ipv6Forwarding(1) | | Values: forwarding(1), notForwarding(2) | +-- -RW- INTEGER ipv6DefaultHopLimit(2) | | Range: 0..255 | +-- -R-- Unsigned ipv6Interfaces(3) | +-- -R-- TimeTicks ipv6IfTableLastChange(4) | | Textual Convention: TimeStamp
| +--ipv6RouteTable(11) | | | | | +--ipv6RouteEntry(1) | | | Index: ipv6RouteDest, ipv6RoutePfxLength, ipv6RouteIndex | | | | | +-- ---- String ipv6RouteDest(1) | | | Textual Convention: Ipv6Address | | | Size: 16 | | +-- ---- INTEGER ipv6RoutePfxLength(2) | | | Range: 0..128 | | +-- ---- Unsigned ipv6RouteIndex(3) | | +-- -R-- Integer32 ipv6RouteIfIndex(4) | | | Textual Convention: Ipv6IfIndexOrZero | | | Range: 0..2147483647 | | +-- -R-- String ipv6RouteNextHop(5) | | | Textual Convention: Ipv6Address | | | Size: 16 | | +-- -R-- EnumVal ipv6RouteType(6) | | | Values: other(1), discard(2), local(3), remote(4) | | +-- -R-- EnumVal ipv6RouteProtocol(7) | | | Values: other(1), local(2), netmgmt(3), ndisc(4), rip(5), ospf(6), bgp(7), idrp(8), igrp(9) | | +-- -R-- Integer32 ipv6RoutePolicy(8) | | +-- -R-- Unsigned ipv6RouteAge(9) | | +-- -R-- Unsigned ipv6RouteNextHopRDI(10) | | +-- -R-- Unsigned ipv6RouteMetric(11) | | +-- -R-- Unsigned ipv6RouteWeight(12) | | +-- -R-- ObjID ipv6RouteInfo(13) | | | Textual Convention: RowPointer | | +-- -RW- EnumVal ipv6RouteValid(14) | | Textual Convention: TruthValue | | Values: true(1), false(2)
标签:ble entry none efault tee -- stc mit val
原文地址:https://www.cnblogs.com/yanhc/p/10257332.html