cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2228
Views
0
Helpful
2
Replies

EEM and SNMP and SIP

Hi, 

I work in a large company, we have a lot of network equipment and use SNMP monitoring very widely (PRTG).

There are a lot of SIP ITSP in my organization and it is important to monitor SIP Trunk Status.

As I understad, the only way to track SIP Trunk Status - is via CLI or EEM.

I have found there is a command in EEM "snmp-object-value",

and that it's a way To set the object ID and value to be returned by the Simple Network Management Protocol (SNMP) get request when an Embedded Event Manager (EEM) applet.

How to use this command?  Is there any examples?

It will be perfect if I could change some OID value depending SIP Trunk status and collect that values by SNMP (PRTG)

 

Thanks

Vladimir Samovarov

 

2 Replies 2

Chris McGarrah
Level 1
Level 1

you might have better luck searching or asking in the EEM scripting forum:
 

https://supportforums.cisco.com/community/5941/eem-scripting

igor_ye
Level 1
Level 1

Hi Vladimir,
We had the same problem.
And I solved this without SNMP via this applets:

event manager applet siptrunk_down
 event syslog pattern "%SIP-5-DIALPEER_STATUS: VoIP dial-Peer <901> is Busied out"
 action 001 cli command "enable"
 action 002 cli command "show call active total-calls"
 action 003 regexp "Total Number of Active Calls : 0" "$_cli_result" ignore match
 action 004 if $_regexp_result eq "1"
 action 005  mail server "<mailserver>" to "<to>" from "<from>" subject "<subject>" body "<body>"
 action 006 syslog priority warnings msg "<syslog message>"


event manager applet siptrunk_up
 event syslog pattern "%SIP-5-DIALPEER_STATUS: VoIP dial-Peer <901> is Up"
 action 001 mail server "<mailserver>" to "<to>" from "<from>" subject "<subject>" body "<body>"
 action 002 syslog priority warnings msg "<syslog message>"

If you have the best idea how to do, can you share it?