We monitored Cisco Catalyst 4510+E switch ports status via SNMP Traps. We want to edit the status information.
Instead of this information, I want to show "GigabitEhternet2/2/7:UP".
Can we change it?
Thanks.
Code: Select all
...
EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Warning
FORMAT A linkDown trap signifies that the SNMP entity, acting in $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "Interface $2" "linkDown"
SDESC
A linkDown trap signifies that the SNMP entity, acting in
an agent role, has detected that the ifOperStatus object for
one of its communication links is about to enter the down
state from some other state (but not from the notPresent
state). This other state is indicated by the included value
of ifOperStatus.
Variables:
1: ifIndex
2: ifAdminStatus
3: ifOperStatus
EDESC
#
#
#
EVENT linkUp .1.3.6.1.6.3.1.1.5.4 "Status Events" Normal
FORMAT A linkUp trap signifies that the SNMP entity, acting in an $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "Interface $2" "linkUp"
SDESC
A linkUp trap signifies that the SNMP entity, acting in an
agent role, has detected that the ifOperStatus object for
one of its communication links left the down state and
transitioned into some other state (but not into the
notPresent state). This other state is indicated by the
included value of ifOperStatus.
Variables:
1: ifIndex
2: ifAdminStatus
3: ifOperStatus
EDESC
...
Have a nice day!SNMP Traps Ok 2m 44s 1/1 2014-03-20 16:33:40 LinkUp / Interface GigabitEthernet2/2/6