cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
231
Views
0
Helpful
1
Replies

Traps

Good afternoon,

I have configured TRAPS to know the temperature states of a Cisco switch. However, I don't know how simulate a high temperature to check that works fine.

 

Thanks,

http://networkingcontrol.wordpress.com/ #CCNP CSCO11962956
1 Reply 1

Dan Frey
Cisco Employee
Cisco Employee

If your looking to test your snmpserver takes in the temperature trap and processes it correctly you can use net-snmp to send traps.   

$ snmptrap -v 2c -c public 192.168.0.125 '' CISCO-ENVMON-MIB::ciscoEnvMonTemperatureNotification \
> 1.3.6.1.4.1.9.9.13.1.3.1.2.1 s "Temperature Description" \
> 1.3.6.1.4.1.9.9.13.1.3.1.3.1 u 77 \
> 1.3.6.1.4.1.9.9.13.1.3.1.6.1 i 3

 

On the trap receiver it looks like this.

 

 
UDP: [192.168.0.124]:60278->[192.168.0.125] - h2o, TRAP2, SNMP v2c, community public
EXPRESSION-MIB::sysUpTimeInstance = Timeticks: (221166210) 25 days, 14:21:02.10
SNMPv2-MIB::snmpTrapOID.0 = OID: CISCO-ENVMON-MIB::ciscoEnvMonTemperatureNotification
CISCO-ENVMON-MIB::ciscoEnvMonTemperatureStatusDescr.1 = STRING: Temperature Description
CISCO-ENVMON-MIB::ciscoEnvMonTemperatureStatusValue.1 = Gauge32: 77 degrees Celsius
CISCO-ENVMON-MIB::ciscoEnvMonTemperatureState.1 = INTEGER: critical(3)
Review Cisco Networking products for a $25 gift card