Sunday, December 10, 2006

Cisco mibs ที่ควรรู้

Hi ^^ ไอ้พวกเนี๋ยเราสามารถหาได้จาก ftp ของ cisco เค้าอ่ะเค้าแชร์ไว้อยู่แต่ต้องงมเอาอันใหนมันเยอะ
-------------------------------------------------------------------------------------------
readonly int freeMem
description "(null)"
characteristics "-N freeMem -O 1.3.6.1.4.1.9.2.1.8 -T INTEGER -A RO -X equal -F 0"

freeMem OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"Return the amount of free memory in bytes."
::= { lsystem 8 }
-------------------------------------------------------------------------------------------
readonly int busyPer
description "(null)"
characteristics "-N busyPer -O 1.3.6.1.4.1.9.2.1.56 -T INTEGER -A RO -X equal -F 0"

busyPer OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"CPU busy percentage in the last 5 second
period. Not the last 5 realtime seconds but
the last 5 second period in the scheduler."
::= { lsystem 56 }
-------------------------------------------------------------------------------------------
readonly int avgBusy1
description "(null)"
characteristics "-N avgBusy1 -O 1.3.6.1.4.1.9.2.1.57 -T INTEGER -A RO -X equal -F 0"
avgBusy1 OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"1 minute exponentially-decayed moving
average of the CPU busy percentage."
::= { lsystem 57 }
-------------------------------------------------------------------------------------------
readonly int avgBusy5
description "(null)"
characteristics "-N avgBusy5 -O 1.3.6.1.4.1.9.2.1.58 -T INTEGER -A RO -X equal -F 0"
avgBusy5 OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"5 minute exponentially-decayed moving
average of the CPU busy percentage."
::= { lsystem 58 }
-------------------------------------------------------------------------------------------

Example :

C:\>snmpwalk -c public -v 1 host "1.3.6.1.4.1.9.2.1.56"
SNMPv2-SMI::enterprises.9.2.1.56.0 = INTEGER: 17

C:\>

เราอาจจะใช้
enterprises.9.2.1.56.0 แทน 1.3.6.1.4.1.9.2.1.56 เช่น

Target[host-cpuload]:
enterprises.9.2.1.56.0&enterprises.9.2.1.56.0:public@host

No comments:

Post a Comment

Popular Posts