OID description vs user readable trap description
I'm executing the snmp traps as follows. /usr/sbin/snmptrapd -LOw -Lf /var/log/snmp-traps.log -f -p /run/snmptrapd.pid -F '%02.2h:%02.2j TRAP%w.%q from %A %a %W \n' However, I'm getting the following logged to /var/log/snmp 19:19 TRAP6..262402 from i-silver.localdomain 10.20.13.20 Enterprise Specific 19:19 TRAP6..262404 from i-silver.localdomain 10.20.13.20 Enterprise Specific 19:19 TRAP6..262532 from i-silver.localdomain 10.20.13.20 Enterprise Specific 19:19 TRAP6..262530 from i-silver.localdomain 10.20.13.20 Enterprise Specific My issue here is that I'm getting back "Enterprise Specific" for the description of the trap, no matter how I load the MIB files or which MIB files I include. When I'm running this on other EVIL paid for trap receivers. I get a much better and detailed description like, "Fan Lower Non-Recoverable - going low: FAN 1 - Deasserted". Now, the description, "Enterprise Specific" does seem to be the very generic description of the OID, but it pales in comparison to the description that I get in other trap receivers. Is there a way to get and print out to the file the much better and comprehensive trap description? ___ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
RE: Trap description
FWIW, a few months ago I ran into the same issue you just wrote about. I didn't post it here, assuming "I must be doing something wrong, since this feature seems broken so badly they couldn't have released the software this way." Maybe I was wrong. I just learned to live with it. But I'd love to hear if there's something I'm missing. Cheers, Todd. From: Nicholas Satterly [mailto:[email protected]] Sent: Sunday, May 19, 2013 2:18 PM To: [email protected] Subject: Trap description Hi I'm using snmptrapd to call a trap handler and assumed that defining an execute format with "%W" in it would give me the trap description because that is how the man page describes it [1]. However, it seems this only gives me "Enterprise Specific" which is not very useful. Can snmptrapd be configured to supply the description for a trap that is contained in the MIB to a trap handler? If not, can anyone suggest other ways that this description could be obtained when a trap is received? One possibility would be to execute "snmptranslate -Td" for every trap received but this might not scale for systems receiving 100's or 1000's of traps a second. Any help would be appreciated. Thanks, Nick [1] /etc/snmp/snmptrapd.conf authCommunity log,execute,net public format execute $a %a\n$A %A\n$b %b\n$B %B\n$x %#y-%#02m-%#02l\n$X %#02.2h:%#02.2j:%#02.2k\n$N %N\n$q %q\n$P %P\n$t %t\n$T %T\n$w %w\n$W %W\n%V~\%~%v\n traphandle default /tmp/traphandler.sh -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d___ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Trap description
Hi I'm using snmptrapd to call a trap handler and assumed that defining an execute format with "%W" in it would give me the trap description because that is how the man page describes it [1]. However, it seems this only gives me "Enterprise Specific" which is not very useful. Can snmptrapd be configured to supply the description for a trap that is contained in the MIB to a trap handler? If not, can anyone suggest other ways that this description could be obtained when a trap is received? One possibility would be to execute "snmptranslate -Td" for every trap received but this might not scale for systems receiving 100's or 1000's of traps a second. Any help would be appreciated. Thanks, Nick [1] /etc/snmp/snmptrapd.conf authCommunity log,execute,net public format execute $a %a\n$A %A\n$b %b\n$B %B\n$x %#y-%#02m-%#02l\n$X %#02.2h:%#02.2j:%#02.2k\n$N %N\n$q %q\n$P %P\n$t %t\n$T %T\n$w %w\n$W %W\n%V~\%~%v\n traphandle default /tmp/traphandler.sh -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d___ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Re: sendtrap: Howto send SNMPv1 trap with trap description from SMIv2 MIB?
2008/5/9 Andreas Mauderer <[EMAIL PROTECTED]>:
> I want to send this trap, decribed in a SMIv2 MIB, as SNMPv1 trap:
>
> upsTrapAlarmEntryAdded NOTIFICATION-TYPE
>OBJECTS { upsAlarmId, upsAlarmDescr }
>STATUS current
>DESCRIPTION
>"This trap is sent each time an alarm is inserted into
>to the alarm table. It is sent on the insertion of
>all alarms except for upsAlarmOnBattery and
>upsAlarmTestInProgress."
> ::= { upsTraps 3 }
>
> As SNMPv2 trap it works fine with this line:
> snmptrap -v 2c -c public 192.168.3.37 "" .1.3.6.1.2.1.33.2.3
>
> But I don't know, how to send a SNMPv1 trap. Which Enterprise OID should
> I choose?
.1.3.6.1.2.1.33.2 (i.e. upsTraps)
The generic trap value should be 6,
and the specific trap value should be 3
It would actually have been better if the UPS-MIB had defined these
traps to have the OID .1.3.6.1.2.1.33.2.0.{1,2,3,4}
But it's too late now - that's their mistake, and you can't fix it.
Dave
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
sendtrap: Howto send SNMPv1 trap with trap description from SMIv2 MIB?
Hi,
I want to send this trap, decribed in a SMIv2 MIB, as SNMPv1 trap:
upsTrapAlarmEntryAdded NOTIFICATION-TYPE
OBJECTS { upsAlarmId, upsAlarmDescr }
STATUS current
DESCRIPTION
"This trap is sent each time an alarm is inserted into
to the alarm table. It is sent on the insertion of
all alarms except for upsAlarmOnBattery and
upsAlarmTestInProgress."
::= { upsTraps 3 }
As SNMPv2 trap it works fine with this line:
snmptrap -v 2c -c public 192.168.3.37 "" .1.3.6.1.2.1.33.2.3
But I don't know, how to send a SNMPv1 trap. Which Enterprise OID should
I choose? I know it should look something like
snmptrap -v 1 -c public 192.168.3.37 ENTERPRISE-OID "" GENERIC-TRAP
SPECIFIC-TRAP ""
Thanks
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
