[c-nsp] EEM Multiple Outputs

Mohammad Khalil eng_mssk at hotmail.com
Mon May 18 03:32:53 EDT 2015


Thanks very much , how can I make some space between the outputs?

BR,
Mohammad

> Subject: Re: [c-nsp] EEM Multiple Outputs
> From: peter at rathlev.dk
> To: eng_mssk at hotmail.com
> CC: cisco-nsp at puck.nether.net
> Date: Sun, 17 May 2015 16:15:14 +0200
> 
> On Sun, 2015-05-17 at 12:56 +0300, Mohammad Khalil wrote:
> > I have tried to build a script that will view multiple outputs , but
> > it did not work for me
> > 
> > R1#sh run | sec event manager
> > event manager applet MULTIPLE
> >  event none sync yes
> >  action 1.0 cli command "show interfaces fastEthernet 1/0 | inc broadcasts"
> >  action 1.1 cli command "show processes cpu sorted | inc CPU"
> >  action 1.2 set PAR1 "$_cli_result"
> >  action 1.3 set PAR2 "$_cli_result"
> >  action 1.4 puts "$PAR1 $PAR2"
> 
> My guess is you need to swap action 1.1 and 1.2. Otherwise $_cli_result
> will just hold the last CLI output.
> 
> -- 
> Peter
> 
> 
 		 	   		  


More information about the cisco-nsp mailing list