Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

SNMP trap help (TCL scripting)

Hello guys

I need your help about something there is this snmp_trap function that i want to modify.

proc send_snmp_trap {display_string} {

    sys_reqinfo_snmp_trapvar var vbinds oid 1.3.6.1.4.1.9.10.91.1.2.3.1.2.3 int 131;

    sys_reqinfo_snmp_trapvar var vbinds oid 1.3.6.1.4.1.9.10.91.1.2.3.1.7.3 string "crypto_eem_pool_check.tcl";

    sys_reqinfo_snmp_trapvar var vbinds oid 1.3.6.1.4.1.9.10.91.1.2.3.1.11.3 string $display_string;

    sys_reqinfo_snmp_trap enterprise_oid 1.3.6.1.4.1.9.10.91 generic_trapnum 6 specific_trapnum 1 trap_oid 1.3.6.1.4.1.9.10.91.0.2 trap_var vbinds;

}

It gives me alert trap when i want it to give me an info. I really couldn’t figure out if it is the IDs that i have to change or the value int or trapnums or something else.

Thank you for your help in advance...

Everyone's tags (6)
8 REPLIES
New Member

SNMP trap help (TCL scripting)

I think I need to set severity level (set it to 6) for getting an informational alert. How do i do that?

Cisco Employee

SNMP trap help (TCL scripting)

I have no idea what you want to do since you are mixing terminology.  You're sending a trap, but you're talking about syslog message severities.  Perhaps if you describe your ultimate goal, that would help.

New Member

SNMP trap help (TCL scripting)

Okay here is the deal i have no idea either. It's because i had the whole code working properly but they ask me to modify it. They want the alert level to be informational. They gave me no other information.

So i immediately thought about severity and now i am completely lost.

Sorry if i couldnt explain myself properly.

Cisco Employee

SNMP trap help (TCL scripting)

Are you sure they're asking for "informational" or are they asking for the notification to be an SNMP inform?  There is no alert level for an SNMP trap.  That is a syslog concept.

New Member

SNMP trap help (TCL scripting)

No they clearly said that they want to get an info.

If there is no alert level for trap i dont see any way to do it. That was my only idea.

Cisco Employee

SNMP trap help (TCL scripting)

"Get an info" to me could very well mean get an SNMP inform.  Perhaps you should go back to them and get clarification on exactly what they want.

New Member

SNMP trap help (TCL scripting)

Yes I will tomorrow. Thank you so much for the help I appreciate it:)

New Member

Re: SNMP trap help (TCL scripting)

They said difference between alert and info may come from MWTM. It might be because MWTM sees the OID in the code as an alarm. In this case we have to use another OID to get what we want. It is not SNMP inform we are looking for. We need to send SNMP trap with another OID.

And they said I should try different suitable OIDs at EEM Manager MIB.

Which makes no sense to me.

531
Views
0
Helpful
8
Replies
CreatePlease to create content