如何通过SNMP的OID识别不同厂商的设备

 

众所周知,SNMP作为通用的网络协议常用于系统监控之中,那么如何借助SNMP来识别不同厂商的设备呢?

事实上,在SNMP的OID树状图中专门有一个节点用于识别各不同的厂商,这个节点是:

iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1)

在这个节点以下的子节点是可以由各厂商或组织申请的,之后如何组织节点交给各厂商或组织自己处理,为私有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厂商
2IBM
4UNIX
9Cisco Systems, Inc.
11Hewlett Packard (HP) 
20MIT
23Novell
42Sun Microsystems
433COM Enterprise MIBs
63Apple Computer, Inc.
94Nokia
111Oracle
116Hitachi, Ltd. 
122Sony
161Motorola
171D-Link Systems, Inc. 
172AMP, Inc.
186Toshiba Corporation
232Compaq
236Samsung Group
311Microsoft
343Intel Corporation
674Dell Computer Corporation
1562Kingston Technology Company
2011HUAWEI Technology Co.,Ltd 
2312Red Hat Software
2623ASUSTek Computer Inc.
2636Juniper Networks, Inc.
3704AMD
3797BENQ Corporation
3902ZTE Corporation
4526Netgear
5703NVIDIA Corporation
6871VMware Inc.
11129Google, Inc.
11863TP-Link Technology Co.,Ltd
14331Beijing Topsec Network Security Technology Co., Ltd.
14823Aruba Networks Inc
18060The Apache Software Foundation
19046Lenovo Group
19621alibaba
24993MySQL, Inc.
25506H3C
27645PostgreSQL Global Development Group
32353Baidu
35047Sangfor Technologies Co.,Ltd.
41475Shenzhen Tencent computer system Co., Ltd.
43472APC Integrated Services Group, Inc.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值