Показаны сообщения с ярлыком snmp. Показать все сообщения
Показаны сообщения с ярлыком snmp. Показать все сообщения

пятница, 17 августа 2012 г.

SNMP ifIndex


 Фиксация и определение номера интерфейса в IOS

При использовании систем управления удобно иметь возможность ссылаться на интерфейсы по номеру, который сохраняется даже после перезагрузки устройства. Начиная с Cisco IOS Release 12.1(5) эту возможность обеспечивает Interface Index Persistence feature.

Для включения данной функциональности нужно выполнить либо глобальную команду:

R(config)# snmp-server ifindex persist

Либо локальную на интерфейсе:

R(config)# interface type slot/port
R(config-if)# snmp ifindex persist

Определить номер интерфейса можно командой
R# show snmp mib ifmib ifindex type slot/port

R#show snmp stats oid

R#show snmp mib





среда, 30 ноября 2011 г.

SNMM WALK

Try to snmpwalk the device using snmp v3 as below :

snmpwalk -v3 -u [SNMPv3 user] -A [password] -l [set-security-level] deviceIP .

-u : is the snmp v3 user.
-A : is the password.
-l : is the authentication mode [noAuthNoPriv|authNoPriv|authPriv].
-a : is the authentication protocol (MD5|SHA).

+ example :

C:\>snmpwalk -v3 -u V3User -A MyPassword -l authNoPriv -a MD5 10.10.10.10. 1.3.6.1. 2.1.1.2 SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.928


Note: In case you are using priv mode following would be the syntax:

C:\>snmpwalk -v3 -u "UserName" -l AuthPriv -a MD5 -A "auth_password" -x DES -X "Priv_password" "Ip address of the device" "OID"

where

-x : is the privacy protocol (DES/AES 128/3DES)
-X : is the privacy protocol password.

Note: In case the snmpwalk fails after putting the correct credentials, please check the engineId configured on the device and the one configured for the user, if the engineId mismatches, reset the engineId to the one configured for the user.


http://docwiki.cisco.com/wiki/Snmp_v3_configurations

SNMP Monitoring BGP sessions status

1.3.6.1.2.1.15.3.1.2.ip.ip.ip.ip - Managed objects for BGP v4
Just replace IP with the ip of the bgp neighbor

Superior references

1.3.6.1.2.1.15 - BGPv4
1.3.6.1.2.1 - SNMP MIB-2
1.3.6.1.2 - IETF Management
1.3.6.1 - OID assignments from 1.3.6.1 - Internet
1.3.6 - US Department of Defense
1.3 - ISO Identified Organization
1 - ISO assigned OIDs

Possible SNMP Output

1 = IDLE
2 = CONNECT
3 = ACTIVE
4 = OPENSENT
5 = OPENCONFIRM
6 = ESTABLISHED

Trigger Example for zabbix:
{host2:1.3.6.1.2.1.15.3.1.2.ip.ip.ip.ip.last(0)}#6

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.15.3.1.2