Re: [c-nsp] Event Manager Script

2014-03-05 Thread amir agha
Hi
Try with 120 seconds delay. Also use environment variable to depicting to get 
email whensoever event triggers.
Ami



On Wednesday, March 5, 2014 10:01 AM, Oliver Boehmer (oboehmer) 
oboeh...@cisco.com wrote:
  
can you just remove the action 2.0 reload from the script for the test so the 
router just spits out the syslog and then send the logs?
I noticed that the maximum delay down value accepted by the parser is 180 (3 
minutes), maybe it didn't accept the command when you pasted it? I just tested 
this (with 60 sec delay), and it seems to work fine (debug track enabled):


router(config)#

Mar  5 09:53:14.230: Track: 99 Down change delayed for 60 secs

Mar  5 09:54:14.231: Track: 99 Down change delay expired

Mar  5 09:54:14.231: Track: 99 Change #3 ip sla 99, reachability Up-Down

Mar  5 09:54:14.231: %TRACKING-5-STATE: 99 ip sla 99 reachability Up-Down

Mar  5 09:54:14.239: %HA_EM-6-LOG: reload-if-down: Reloading the router due to 
unreachability

and as EEM only triggers on up-down transition, it only takes action when the 
probe was up at least once. so this is good..

oli

From: M K gunner_...@live.commailto:gunner_...@live.com
Date: Wednesday, 5 March 2014 09:26
To: Oliver Boehmer oboeh...@cisco.commailto:oboeh...@cisco.com, 
cisco-nsp@puck.nether.netmailto:cisco-nsp@puck.nether.net 
cisco-nsp@puck.nether.netmailto:cisco-nsp@puck.nether.net
Subject: RE: [c-nsp] Event Manager Script

Hi , thanks and sorry for the late reply
I am facing some issues with the script , when the IP SLA is down , the router 
did not wait for the 5 minutes , it reloaded directly

 From: oboeh...@cisco.commailto:oboeh...@cisco.com
 To: gunner_...@live.commailto:gunner_...@live.com; 
 cisco-nsp@puck.nether.netmailto:cisco-nsp@puck.nether.net

 Subject: Re: [c-nsp] Event Manager Script
 Date: Sun, 2 Mar 2014 12:33:34 +



 Hi allI am trying to do a event manager script that will do the below and
 need some assistanceI want to ping to a specific destination and if the
 ping request timed out for a period of for example 5 minutes , the router
 should be reloaded

 not sure whether this is a good idea or not (the router could reload
 forever), here is a way to achieve the goal:

 ip sla 1
 icmp-echo destination-addr
 frequency 20
 ip sla schedule 1 life forever start-time now
 !

 track 1 ip sla 1 reachability
 delay down 300
 !
 event manager applet reload-if-down
 event track 1 state down
 action 1.0 syslog msg Reloading the router due to unreachability
 action 2.0 reload

 hope this helps..

 oli

___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


[c-nsp] EEM for BGP

2013-08-05 Thread amir agha
Hi list,
Is that possible to write an Embedded Event Management System to achive the 
following in following scenario of BGP environment?
 
There are very many BGP peerings in the network, and many events. The reason 
may be that customers turn off the power at the CPE, etc.
We believe that it would be too extensive to examine all these events.
Is it possible to achieve the following:
The script performs the show command as shown below. If there is anything on 
the active or idle sent an email to support office.

Router# sh ip bgp summary | include Active|Idle
81.175.31.784  65500 3215550 3079173000 1w1d Active
81.175.31.174   4  65500   0   0000 neverActive
213.160.232.170 4  64519   0   0000 neverIdle
 
Is this possible to achieve?
 
Amir
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


[c-nsp] QinQ

2013-07-08 Thread amir agha
Hi list
I am new to QinQ.
Any idea about QinQ basic configuration for testing CDP, Spanning, MTU etc 
which r connected to different switches.
 
Ami
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


[c-nsp] copy config

2013-05-08 Thread amir agha
Hi list
Is there any command/ command syntax to copy running configuration of one 
interface e.g interface serial1/0 onto another Interface e.g interface 
serial1/3. In switching we have an option of HSRP VRRP etc. 
Any help ??
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


[c-nsp] SPLUNK

2013-05-06 Thread amir agha
Hi list
Anyone having idea about SPLUNK? I am new to it.
Regards,
Ami
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


[c-nsp] Switchport trunk allowed issues

2013-04-17 Thread amir agha
Hi
I am writing a EEM using Cisco ios cli, can anyone have valuable suggestion 
about how to materialize it. Following is the topic
Using following command on switch i.e
 
 switchport trunk allowed vlan add/remove/all/except/none range

However, if one forgets to include the add/remove/all/except/none keyword, 
the command defaults to replace:

switchport trunk allowed vlan range
 
the VLAN that has already been placed on vlan deleted and result in downtime

I would like to disable the use of: switchport trunk allowed vlan range, 
 
and replace it with a custom EEM command like: 
 
1. switchport trunk allowed vlan none.
2. switchport trunk allowed vlan add add range
3. switchport trunk allowed vlan add remove range
This would correct a dangerous IOS syntax.
 
Looking forward
Ami
Norway 
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


[c-nsp] EEM applet for Vlan for switches

2013-04-17 Thread amir agha
Hi 
In routers for writing EEM applet through Cisco IOS Cli we normally use 
following command
event manager applet (name) trap
 
Does anyone has idea or suggestion that which command is used on Switches to 
write EEM applet through Cisco IOS Cli as the above mentioned command is not 
working on switches. What is the syntax??
 
Any solid and concrete suggestion.?
Ami 
Norway
___
cisco-nsp mailing list  cisco-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/