最近部署zabbix监控系统,用到mib库。
网上搜索各种版本都有,最后发现一个笨方法,但是很有效。
1,首先使用snmpwalk导出一份全部的mib项。
-
[root@centos7goldimage200G ~]# snmpwalk -v 2c -c ****** 192.0.3.1
-
SNMPv2-MIB::sysDescr.0 = STRING: Juniper Networks, Inc. srx240h2 internet router, kernel JUNOS 12.1X44-D35.5 #0: 2014-05-19 21:36:43 UTC builder@dagmath.juniper.net:/volume/build/junos/12.1/service/12.1X44-D35.5/obj-octeon/junos/bsd/kernels/JSRXNLE/kernel Build date: 2014-05-19 23:0
-
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.2636.1.1.1.2.39
-
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (147078907) 17 days, 0:33:09.07
-
SNMPv2-MIB::sysContact.0 = STRING:
-
SNMPv2-MIB::sysName.0 = STRING: srx240
-
SNMPv2-MIB::sysLocation.0 = STRING:
-
SNMPv2-MIB::sysServices.0 = INTEGER: 4
2,然后按照数字化OID,再导出一份。
-
[root@centos7goldimage200G ~]# snmpwalk -O n -v 2c -c ****** 192.0.3.1
-
.1.3.6.1.2.1.1.1.0 = STRING: Juniper Networks, Inc. srx240h2 internet router, kernel JUNOS 12.1X44-D35.5 #0: 2014-05-19 21:36:43 UTC builder@dagmath.juniper.net:/volume/build/junos/12.1/service/12.1X44-D35.5/obj-octeon/junos/bsd/kernels/JSRXNLE/kernel Build date: 2014-05-19 23:0
-
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.2636.1.1.1.2.39
-
.1.3.6.1.2.1.1.3.0 = Timeticks: (147098260) 17 days, 0:36:22.60
-
.1.3.6.1.2.1.1.4.0 = STRING:
-
.1.3.6.1.2.1.1.5.0 = STRING: srx240
-
.1.3.6.1.2.1.1.6.0 = STRING:
-
.1.3.6.1.2.1.1.7.0 = INTEGER: 4
-
.1.3.6.1.2.1.2.1.0 = INTEGER: 60
-
.1.3.6.1.2.1.2.2.1.1.3 = INTEGER: 3
3,很明显,对比就是了。
4,补充:找了一个Juniper厂商的官网地址:
阅读(10726) | 评论(0) | 转发(0) |