2008年11月27日 星期四
2008年11月26日 星期三
snmp
3 things to do for SNMP:
(1)query a value and get a reply
(2)set a value and get a return code
(3)An SNMP-enabled device can send you a notification, or "trap"
OID(object identifier)
how you identify SNMP objects in a structured, unique manner.
root of OID tree:
.1.3.6.1 (iso(1).org(3).dod(6).internet(1) )
within .1.3.6.1, there are four branches:
directory(1)
mgmt(2)
experimental(3)
private(4)
mgnt(2) is for standard objects
private(4) is for company-specific objects
MIB(management information base):
help user to understand the meaning of OID,
ex:
.iso.org.dod.internet.private.enterprises.4526.4.3.1.1.0 = STRING: "00146C689987"
is translated to
.iso.org.dod.internet.private.enterprises.netgear.wireless.wg102.sysSettings.sysMacAddress.0 = STRING: 00146C689987
snmpget:
snmpget -c public 192.123.1.1 1.3.1.2.1
snmpwalk:
找出某個節點後所有的value
snmpwalk -c public 192.168.5.18 .1.3.6.1.4.1.1714.1.1.2.1.2
mib file in mac os:
/usr/share/snmp/mibs/
訂閱:
文章 (Atom)