01-21-2011 08:01 AM
Hi there,
Anybody has an EEM applet script for ISDN status? let's say if ISDN layer-1 Deactivated or Fail, sends email alert immediately? Thanks !
Global ISDN Switchtype = primary-5ess
ISDN Serial1/0:23 interface
dsl 0, interface ISDN Switchtype = primary-ni
Layer 1 Status:
ACTIVE
Layer 2 Status:
TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Layer 3 Status:
0 Active Layer 3 Call(s)
Active dsl 0 CCBs = 0
The Free Channel Mask: 0x807FFFFF
Number of L2 Discards = 0, L2 Session ID = 250
Total Allocated ISDN CCBs = 0
01-22-2011 11:08 AM
This applet should work:
event manager applet isdn-down
event snmp oid 1.3.6.1.2.1.10.20.1.3.4.1.2.X entry-op ne entry-val 2 get-type exact poll-interval 10 exit-op eq exit-val 2
action 1.0 mail from "user@company.com" to "user@company.com" server "smtp.company.com" subject "ISDN is down" body "The ISDN status is currently $_snmp_oid_val"
Besides the obvious email addresses and SMTP server, the value of X here is the ifIndex of the ISDN interface (as seen in the output of "show snmp mib ifmib ifindex"). SNMP will be the easier course of action here as it will work on more versions of IOS in applet form.
01-25-2011 09:26 AM
cool
i'll try this via snmp oid. Yeah this is probably the easiest way. Thanks !
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide