标签:
众所周知,SNMP作为通用的网络协议常用于系统监控之中,那么如何借助SNMP来识别不同厂商的设备呢?
事实上,在SNMP的OID树状图中专门有一个节点用于识别各不同的厂商,这个节点是:
在这个节点以下的子节点是可以由各厂商或组织申请的,之后如何组织节点交给各厂商或组织自己处理,为私有OID。
比如,对于思科的设备,其子节点是9,我们可以用snmpwalk查找.1.3.6.1.4.1.9这个OID:
[root@zabbix ~]# snmpwalk -v 2c -c public 192.168.1.1 .1.3.6.1.4.1.9 SNMPv2-SMI::enterprises.9.2.1.1.0 = STRING: " System Bootstrap, Version 12.4(13r)T11, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 2009 by cisco Systems, Inc. " SNMPv2-SMI::enterprises.9.2.1.2.0 = STRING: "power-on" SNMPv2-SMI::enterprises.9.2.1.3.0 = STRING: "2821" SNMPv2-SMI::enterprises.9.2.1.4.0 = STRING: "yourdomain.com" SNMPv2-SMI::enterprises.9.2.1.5.0 = IpAddress: 123.14.143.13 SNMPv2-SMI::enterprises.9.2.1.6.0 = IpAddress: 0.0.0.0 SNMPv2-SMI::enterprises.9.2.1.8.0 = INTEGER: 105670264 SNMPv2-SMI::enterprises.9.2.1.9.0 = INTEGER: 1117 SNMPv2-SMI::enterprises.9.2.1.10.0 = INTEGER: 500
......以下省略......
目的现在是达到了,但是我们不可能记住每一个OID前面这固定的一串数字,所以为了便于记忆,前面提到的.1.3.6.1.4.1这个前缀也可以写成enterprises,这样,我们只要知道不同厂商自己的子节点ID就可以了。
下面是常见厂商所用的ID列表(数据来源:http://oid-info.com):
| (enterprises.)ID | 厂商 |
| 2 | IBM |
| 4 | UNIX |
| 9 | Cisco Systems, Inc. |
| 11 | Hewlett Packard (HP) |
| 20 | MIT |
| 23 | Novell |
| 42 | Sun Microsystems |
| 43 | 3COM Enterprise MIBs |
| 63 | Apple Computer, Inc. |
| 94 | Nokia |
| 111 | Oracle |
| 116 | Hitachi, Ltd. |
| 122 | Sony |
| 161 | Motorola |
| 171 | D-Link Systems, Inc. |
| 172 | AMP, Inc. |
| 186 | Toshiba Corporation |
| 232 | Compaq |
| 236 | Samsung Group |
| 311 | Microsoft |
| 343 | Intel Corporation |
| 674 | Dell Computer Corporation |
| 1562 | Kingston Technology Company |
| 2011 | HUAWEI Technology Co.,Ltd |
| 2312 | Red Hat Software |
| 2623 | ASUSTek Computer Inc. |
| 2636 | Juniper Networks, Inc. |
| 3704 | AMD |
| 3797 | BENQ Corporation |
| 3902 | ZTE Corporation |
| 4526 | Netgear |
| 5703 | NVIDIA Corporation |
| 6871 | VMware Inc. |
| 11129 | Google, Inc. |
| 11863 | TP-Link Technology Co.,Ltd |
| 14331 | Beijing Topsec Network Security Technology Co., Ltd. |
| 14823 | Aruba Networks Inc |
| 18060 | The Apache Software Foundation |
| 19046 | Lenovo Group |
| 19621 | alibaba |
| 24993 | MySQL, Inc. |
| 25506 | H3C |
| 27645 | PostgreSQL Global Development Group |
| 32353 | Baidu |
| 35047 | Sangfor Technologies Co.,Ltd. |
| 41475 | Shenzhen Tencent computer system Co., Ltd. |
| 43472 | APC Integrated Services Group, Inc. |
标签:
原文地址:http://www.cnblogs.com/plutonji/p/howto-find-snmp-enterprise-oids.html