EEM script to monitor OSPF neighbor not working
I'm trying to monitor a OSPF neighbor syslog notification event to trigger actions to remove a network statement. I shut down the interface to the monitored neighbor and it removes the network statement which is good. I am also trying to monitor the neighbor to come back up and then re add the removed network statement which is not working. This may be a two part problem but I am receiving warnings that not enough vty lines are available. I am not seeing that the network addition is working at all. Here is my configuration.
event manager applet ospf-watch-down
event syslog pattern "OSPF-5-ADJCHG: Process 100, Nbr 1.1.1.2 on FastEthernet1/0 from FULL to DOWN"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "router ospf 100"
action 4.0 cli command "no network 2.2.2.0 0.0.0.255 area 0"
action 5.0 cli command "end"
action 6.0 cli command "exit"
event manager applet ospf-watch-up
event syslog pattern "OSPF-5-ADJCHG: Process 100, Nbr 1.1.1.1 on FastEthernet1/0 from LOADING to FULL"
action 1.0 cli command "enable"
action 2.0 cli command "config t"
action 3.0 cli command "router ospf 100"
action 4.0 cli command "network 2.2.2.0 0.0.0.255 area 0"
action 5.0 cli command "end"
action 6.0 cli command "exit"
Here is the EM syslog error message " %HA_EM-3-FMPD_ERROR: Error executing applet ospf-watch-down statement 3.0" I am having the EM end and exit so I'm not sure why it's running out of CLI sessions. I'm also getting this one too " %HA_EM-3-FMPD_CLI_CONNECT: Unable to establish CLI session: no tty lines available, minimum of 2 required by EEM"
I've tested the ospf-watch-up and ospf-watch-down on its own after clearing all of the sessions and they each work on their own. I think this is a bug where eem won't release the session.
R1#show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
130 vty 0 idle 00:02:13 EEM:ospf-watch-up
131 vty 1 idle 00:00:10 EEM:ospf-watch-up
132 vty 2 idle 00:00:28 EEM:ospf-watch-down
Interface User Mode Idle Peer Address
R1#
I know this is a old post. I was able to use the solution below, but I am having one problem.
Using the below config I am able to receive a email anytime my voice port is in any other state than ON HOOK. The problem I have is the script runs every 30 seconds and I receive an email every 30 seconds the line is in any other state than "ON-HOOK".
Is there a way to have only one email generated ONLY when the state changes from the previous state?
example : the line is on-hook, changes to off-hook or park or whatever- a email would be generated. ( only One email). not one every 30 seconds...
The line goes from Off-Hook back to IDLE. - A email would be generated to advise the line has been restored to a IDLE state.
scheduler allocate 20000 1000
event manager environment _email_from [email protected]
event manager environment _email_to email [email protected]
event manager environment _email_server smtp-server.isp.net
event manager applet check_1/0/0_if_NOT_ONHOOK
event timer watchdog time 30
action 001 cli command "enable"
action 002 cli command "show voice port summ | include 1/0/0"
action 003 foreach line "$_cli_result" "\n"
action 004 regexp "on-hook" "$line"
action 005 if $_regexp_result eq "1"
action 006 exit 0
action 007 end
action 008 end
action 009 syslog msg "PORT_1_is_in_any_other_state_then_on-HooK!"
action 1.0 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "$_event_pub_time:Test EEM port 1/0/0 is SHORTED ie IN ALARM" body "TEST Body"
end
Any ideas?
Similar Messages
-
IPS event monitor and reports not working
Dear after upgrading my IPS from E3 to E4 the event monitor and reports not working, can you please advice my to solve this issues
Hi All,
Filter settings below:
The filter works partially as I don't get alerts on the IPS itself.
Firewall LOG:
4 Feb 14 2014 15:33:22 39715 514 IPS requested to drop UDP packet from SOURCE_VLAN_NUMBER:/39715 to DESTINATION_VLAN_NUMBER:/514
IPS LOG (when enabled):
evIdsAlert: eventId=1352793300955167909 vendor=Cisco severity=low
originator:
hostId: SSM02
appName: sensorApp
appInstanceId: 1192
time: Feb 14, 2014 15:33:22 UTC offset=0 timeZone=GMT00:00
signature: description=IP Fragment Too Small id=1206 version=S212 type=anomaly created=20030801
subsigId: 0
sigDetails: Too many small IP fragments in datagram
interfaceGroup: vs0
vlan: 0
participants:
attacker:
addr: 172.x.x.x locality=OUT
port: 39715
target:
addr: x.x.x.x locality=OUT
port: 514
os: idSource=unknown type=unknown relevance=relevant
alertDetails: InterfaceAttributes: context="single_vf" physical="Unknown" backplane="GigabitEthernet0/1" ;
riskRatingValue: 50 targetValueRating=medium attackRelevanceRating=relevant
threatRatingValue: 50
interface: GigabitEthernet0/1 context=single_vf physical=Unknown backplane=GigabitEthernet0/1
protocol: udp
Our next step is to make a service policy exception on the firewall itself. We are also considering reloading the IPS device or at least the analysis engine.
Thanks for all your help so far. Any more suggestions are most welcome. I'll keep you up to date.
Regards
Mariusz -
Need Help with EEM script for monitoring Rx and Tx load on Link
Hello,
I'm trying to implement a script, which monitors the Tx and Rx Load on the Link and sends a syslog in case the load is exceeded 200 mark (i.e If Rx or Tx load > 200)
I have implemented the following script. But it is not giving the required results.
event manager applet test
event interface name Tunnel111 parameter rxload entry-val 200 entry-op gt entry-val-is-increment true poll-interval 5000
action 1.0 syslog msg "Increase Load On the Link"
I'm trying to monitor the load on Tunnel 111 which is mapped to WAN interface.
Router (Cisco 2821) has following IOS
c2800nm-advipservicesk9-mz.124-25g.binHello Joseph,
As per your suggestion, we made some changes in our script and the following script is working fine. Its giving the required syslogs when the load is exceeded.
event manager applet test
event interface name Tunnel111 parameter txload entry-val 200 entry-op gt entry-val-is-increment false poll-interval 5
action 1.0 syslog msg "Increased Load On the Link"
Your prompt assistance is really appriciated. -
How can I deactivate Adobe Acrobat 8 on a laptop with a monitor that does not work?
Or is there some work-around I can use? I got a new laptop and have reinstalled the program but I keep getting a pop-up that wants me to register it again. I have but it keeps popping up. I read in the user's guide for this version that "Note: If you want to install the software on a different computer, you must first deactivate the software on your computer: Choose Help > Activation > Deactivate." I figure that that is what the problem is. So now what do I do? It is a little hard to "choose" when the monitor is black.
As an added complication I am now getting an error message on the pop-up that tell me "A problem was encountered while trying to send information over the Internet." Help!!!
I am currently using a Sony Vaio T Series Ultrabook now with Windows 8. My old laptop was a Compaq and was using Windows XP Home Edition. It was about 10 years old.
Thanks in advance for your help.
AimeeCan you plug in a remote monitor? You may have to use the Fn key with the screen icon typically along the function keys to change to the external monitor. If that works, then do what you need. You might also try putting the HD in another machine and see if it works there.
-
External display monitor suddenly is not working; power is on
Hello,
My LG external monitor display suddenly is not working today. It powers on, and it says "analog power saving mode", and it is detected by my ibook G4. When I go to preferences, and show displays, it shows that two displays are active, my laptop "Color LCD" and my external, "L1932Tq". If the external is plugged in, it indicates that that is the system in use, though the external monitor is black and unresponding (except for power light which is on). I replaced all cords - the power cord and the mini VGA cord and it's connecting cord to the monitor, and there are no changes.
Is this monitor just suddenly broken, perhaps through it's internal connection devices??
Thanks!!
alidocsDear Shankar,
Issue is solved. It was Program Error from SAP side.
Now All the buttons are working fine and I am able to print PDF also.
Solution is implement the note 2031585 - SAP NWBC ABAP Runtime Patch 40.
System Details : ECC 6.0 NetWeiver 7.4 ,
EHP 7 , SP-Level 06
Thanks a lot for all your suggestions.
Regards,
Namsheed. -
Second monitor on iMac not working with Lion
I have a mid-2011 Thunderbolt 21.5" iMac. A secondary monitor is connected to the iMac with a Mini DisplayPort-to-HDMI cable (a single cable, not an adaptor and cable).
When I was running Snow Leopard, the monitor worked just fine. After upgrading to Lion, the second monitor just has a black screen, and quickly goes into power save mode.
I have already tried resetting the NVRAM (as described here: http://support.apple.com/kb/HT1379) and resetting the SMC (as described here: http://support.apple.com/kb/HT3964).
Has anyone seen this problem? Any other suggestions for solutions?same here, just performed the upgrade to Lion and my secondary Samsung screen (direct HDMI cable) do not work anymore (I have a mid 2011 iMac 21.5'').
I have tried the tricks mentioned on the following discussion:
No Signal on HDMI TV After Lion Upgrade
ie open terminal
cd /System/Library/Displays/Overrides/DisplayVendorID-410c/
sudo mv DisplayProductID-0 DisplayProductID-0.old
Reboot after entering the commands
But it is not working, the developper clearly messed up the video output in Lion OS!!!
Let me know if you have a solution, I am reduced to single screen use in the meantime... and regret the upgrade...
Thanks -
Pavilion 23tm Monitor touch screen not working
Hi, We bought a Pavilion 23tm Monitor today and touchscreen is not working.
Chat to one of your tech support and he remotely access my computer and tried to get it working but failed. So he told me to go to australia website. I tried to get contact through technical support but when I get to the page to find the product it can't find the product. I've put the Product name and even the Product number but no luck.
Can someone please help me enable the touch screen on the monitor pls.
I am using a laptop and connected the laptop through HDMI.
I have installed the cd that came with it also.Hello Belle07,
Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
I understand that you are having issues getting your new HP 23tm Monitor working and are looking for Technical Support in your area. I am providing you a link to thTechnical Support Contact Page for Australia.
I hope I have answered your question to your satisfaction. Thank you for posting on the HP Forums. Have a great day!
Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
Dunidar
I work on behalf of HP
Find out a bit more about me by checking out my profile!
"Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter -
In SC back to monitor button is not working
Hi SRM Gurus,
in SC the button back to monitor is not working for user employee01
but same is working for purchaser01. and same code is get executing both times.
Please assists me in this regard. Its urgent.
Regards,
Vasuif it's urgent go to OSS, first search for the problem and if you don't find it report a product error
-
Activate not working in scripts written 6 years ago not working now
Hi All,
I have a script that has been working consistently for 6 to 7 years. Now I copied it to my new Macbook Pro running yosemite and now the activate is not working when placed before display dialog. The script uses Illustrator and Excel and for some parts of the script these applications are brought to the front using activate. These activates seem to work. However, the activate does not work with display dialog. I tried to remedy this by putting a tell me block around the code.
I don't know if this make a difference but the script is executed through the run script command.
Any help would be great.
Thanks,
Carolyn
OS 10.10.1
15 inch retina
2.5 intel core i7Do you have the proper conference media resources set up with MRG and MRGLs?
-
Displaying error messeges in MONITOR/Error Stack not working in 2004s
This trick is not working for me. I couldn't see the error messages in the error stock & temp storage. Am i missing anything here? Please advise. Thanks.
CASE SY-SUBRC.
WHEN 0.
RESULT = VALUE.
WHEN 1.
CLEAR MONITOR.
MONITOR_REC-msgno = '005'.
MONITOR_REC-msgid = 'SDBW'.
MONITOR_REC-msgty = c_msgty_e.
MONITOR_REC-msgv1 = SOURCE_FIELDS-VBELN.
MONITOR_REC-msgv2 = SOURCE_FIELDS-VDATU.
MONITOR_REC-msgv3 = SOURCE_FIELDS-WAERK.
MONITOR_REC-msgv4 = SOURCE_FIELDS-HWAER.
APPEND MONITOR_REC TO MONITOR.
RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
WHEN 2.
CLEAR MONITOR.
MONITOR_REC-msgno = '006'.
MONITOR_REC-msgid = 'SDBW'.
MONITOR_REC-msgty = c_msgty_e.
MONITOR_REC-msgv1 = SOURCE_FIELDS-VBELN.
MONITOR_REC-msgv2 = SOURCE_FIELDS-VDATU.
MONITOR_REC-msgv3 = SOURCE_FIELDS-WAERK.
MONITOR_REC-msgv4 = SOURCE_FIELDS-STWAE.
APPEND MONITOR_REC TO MONITOR.
RAISE EXCEPTION TYPE CX_RSROUT_ABORT.
ENDCASE.GK, have you gotten the monitor messages to work?
I applied Note 1005975, and we are also on ABAP SP11, but I can't get any messages to display in the monitor. When I use the
"raise exception type CX_RSROUT_ABORT" statement, I get an error message
"Exception CX_RS_STEP_FAILED logged", but none of my MONITOR_REC entries.
If I don't raise CX_RSROUT_ABORT, I get nothing.
I can create entries in the job log by the following:
MESSAGE E001(ZBW) with MONITOR_REC-MSGV1,
so I know my SE91 definition is correct, but this is not the same as writing to the monitor, as I understand it. -
Battery Monitor 2.2 not working after update to be...
Before i updated to Belle, there was no issue with the battery monitor. But after i updated and then installed Battery Monitor, it is kind of stuck on the loading screen for a long long time. it just keeps loading and loading. Dunno what is going on. Pls help.
Hello,
I had bought N8 on 7 January, 2011....It was working well...I had no battery issues, though battery was not as good enough as my samsung galaxy...But for one month (Current date:13 July, 2012, means about after 1 year and 5 months)...battery got fully failed and died now. I use it just keeping it in charge always...and do my work on internet. Though I am not a very heavy user (2 hrs a day on internet and use apps sometimes)...
When I don't use internet...it works for 30 mints hardly. And when I turn on internet it gets switched off in 2-5 mints.
Since day before yesterday, it is not working even while keeping it is in charge..it gets switched off in 2-5 minutes.
So I am not going to curse NOKIA for this because it won't help me. After belle update even it was giving backup normally. But just after 4-5 months...it started getting switched off after 30 mint of uses...then after 20 mint...then after 10....and now hardly 2 mints when it is on gprs 2g. I have never used 3g. When i use wifi...it works more than 5 mints but less then 10 mints.
Now...I need suggestion from you guys...should i buy new battery (I dont know about its cost in India, and a pathetic life of NOKIA 8 Phone merely for 1 and half year...stopping me to buy any new one)? Or should I try re-installing Belle from Nokia Suit? Do you think it is a software problem?
I am waiting for your replies with right suggestion....
Regards
S.L. -
Script Logic in BPC is not working properly
Hi All,
I have the BPC Microsoft version 7.0.114. I am trying to create a script logic to calculate price x units.
I have an application called GYP with the following dimensions:
PL (Account type) in this dimension are the units
Time
Category
Entity
Product
RptCurrency
I have another application called PRICE with the following dimensions:
Price (Account type) in this dimension are the prices
Time
Category
Entity
Product
RptCurrency
The script logic i created in the GYP application is as follows:
*XDIM_MEMBERSET PL="Units"
*XDIM_MEMBERSET PRODUCT=<ALL>
*XDIM_MEMBERSET ENTITY=<ALL>
*XDIM_MEMBERSET CATEGORY="Budget"
*LOOKUP PRICE
*DIM PR:PRICE ="PRICES"
*ENDLOOKUP
*WHEN PL
*IS "Units"
*REC(FACTOR=LOOKUP(PR), PL="Revenues")
*ENDWHEN
*COMMIT
I also put in the default.lgf :
*INCLUDE UnitsxPrice.LGF
*COMMIT
I have loaded data for units and price only for one product to validate the script logic but I'm not getting any calculated value in the revenues element.
I have read a lot of documentation about script logic but i haven't found which could be the problem.
Please, could you help me to know what i am missing to?
Thanks in advance for all your help.
Regards,
LuisanaHi,
Your script logic looks fine to me. However, I would request you to make a small change in your default logic.
Lets say that you created the script logic with the name CALCULATION.LGF, then the default logic should look like below:
*INCLUDE CALCULATION.LGF
Notice that the name of the script logic should be consistent (and I have removed the commit statement from the default logic).
Hope this helps. -
My w1972a monitor audio is not working
my w1972a monitor audio is not working
Hi,
How do you connect it ? The specs is:
HP W1972a 18.5-inch LED Backlit LCD Monitor
You need sound cable from you computer to the monitor.
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Encore WT8-A - External monitor doesn't not work
Hi all,
I have problem, when I connect an external monitor to Toshiba Encore WT8-A with an HDMI cable, Windows does not recognize it. I tried to use monitors from Samsung, Philips and LG.I use a standard HDMI cable. The cable is OK tested on other devices.
win 8.1 (all updates)
bios 1.6
All the drivers used from the Toshiba Service Station
Thank you for help.
RMHello gaizkot,
We've an article that can help get your MacBook Air and your display working together.
Apple computers: Troubleshooting issues with video on internal or external displays
http://support.apple.com/kb/HT1573
Cheers,
Allen -
External monitor Syncmaster 2494SW not working after 10.6.7 update
External monitor Samsung Syncmaster 2494 SW stopped working after 10.6.7 update on 2011 MacBook Pro. I'm using miniDP-DVI adapter. The monitor shown correctly in Display Properties with right modes and name. MackBook recognizes connection but the monitor goes to PowerSave mode (LED indicator blinks).
Safemode boot, SMC reset, PRAM reset did not help.
Exactly the same setup works perfectly under 10.6.6.HERE IS THE EASY FIX SOLUTION FOR THIS PROBLEM GUYS:
I have an 15inch MacBook Pro that I've just installed Snow Leopard 10.6.3 on.
Prior to this install, I've had it hooked up to my Samsung SyncMaster 2243 via an Apple MDP/VGA adapter and a third party VGA cable. It has been flashing on and off a black screen every now and then for the past 2 years and I googled that it was just a crappy communication between the MBP and the Samsung... but now since installing 10.6.3, the Samsung display just flashes the desktop for a second then turns black for good - occationally flashing analogue/digtal prompt display. Tried everything for hours. Nothing worked, thought I was gonna have to buy a new all Apple VGA lead then came across Michael's above solution. Tried it and it worked IMMEDIATLY!!! And the monitor doesn't flash black anymore AT ALL!! Whoo-hoo!! Thanks heaps.
WHAT TO DO TO FIX:
Go to => System Preferences => Energy Saver => change graphic settings to Higher Performace.
Cheers!!
Maybe you are looking for
-
I'm willing to pay the full price for the HD movie, but iTunes doesn't allow me to buy it, it says I already have the movie. It is indeed correct, I do have the movie, but I want to buy the HD version and bury the SD version. Any suggestions?
-
Hi, I am currently capturing the item_send event in an Outlook (2010/13) addin which then processes the email before it sends. Will this event fire for an email that is generated and sent automatically, i.e. without the user clicking the send button
-
I use a website with many links to pdfs. In Windows XP (probably an older version of firefox) I could right click on the link to open a new tab, and the pdf would open in the new tab. In Windows 7 (and updated firefox) when I right click to open a ne
-
How to get Unwired Server IP Address?
Hellow Guys Im having trouble connecting to Relay Server I cant even registered but the relay server its working and the RSOEs also, I tested through the RS link. so I'm thinking to By Pass Relay Server and connect directly to Unwired Server to check
-
Log Directories in Oracle 10g RAC environment
Hi all, Would you please tell me in which directories, the following log files will be created, in a Oracle 10g RAC enviroment. evmd.log crsd.log ocssd.log Best Regards, Narayan