08-14-2013 05:29 AM
Hi my name Ismail,
Can the EEM output for example "show proc cpu his" save on external syslog server rather than flash memory. Im running Nexus 7010
08-14-2013 05:32 AM
The EEM script that I want to configure as below:
event manager applet TAC-HSRP-flap
event syslog pattern "HSRP_ENGINE-5-STANDBY_CHANGE"
action 0.2 cli show policy-map interface po1 >> bootflash:TAC_HSRP.txt
action 0.3 cli show log last 500 >> bootflash:TAC_HSRP.txt
action 0.4 cli show hsrp brief >> bootflash:TAC_HSRP.txt
action 0.5 cli show span det | in occurred|from|executing >> bootflash:TAC_HSRP.txt
action 0.6 cli show policy-map interface control-plane | egrep class-map|module|violated >> bootflash:TAC_HSRP.txt
action 0.7 cli show policy-map interface control-plane | egrep class-map|module|violated >> bootflash:TAC_HSRP.txt
action 0.8 cli show proc cpu | ex 0.0 >> bootflash:TAC_HSRP.txt
action 0.9 cli show proc cpu | ex 0.0 >> bootflash:TAC_HSRP.txt
action 1.0 cli show proc cpu | ex 0.0 >> bootflash:TAC_HSRP.txt
action 1.1 cli show proc cpu | ex 0.0 >> bootflash:TAC_HSRP.txt
action 1.2 cli show proc cpu | ex 0.0 >> bootflash:TAC_HSRP.txt
action 1.3 cli show proc cpu history >> bootflash:TAC_HSRP.txt
action 1.4 cli ethanalyzer local interface inband capture-filter 'host 224.0.0.2' limit-captured-frames 500 write bootflash:tac-hsrp.pcap
08-14-2013 07:37 AM
This looks okay in terms of NX-OS commands. Assuming each of these commands work manually, then the applet should work as well.
08-14-2013 05:12 PM
Dear Joseph,
Can I know, whether we can point the destination file to the external syslog server?
For example:
action 0.2 cli show policy-map interface po1 >> bootflash:TAC_HSRP.txt
Change to My own syslog server
08-15-2013 07:37 AM
Whatever you can do manually you should be able to do through EEM. So, if the CLI command you want to run works when you execute it manually, then try it in your applet.
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