cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1084
Views
0
Helpful
1
Replies

EEM query is disrupted to early

Hello everybody,

i've tried to work with eem (great tool).

But there is one Problem - i start the eem applet (event none) and the cli prompt interrupts my self made query befor the maxrum=900 is reached.

It takes approximately 15 seconds and the the cli disrupt the query.

Could you please help? -> Here it is the applet.

event manager applet kill
event none sync yes maxrun 900
!
action 21 cli command "sho int status | ex notconnect"
action 22 puts "$_cli_result"
!
action 30 puts "Please give me the location number. (e.g.:0815)"
action 31 gets locationnumber
action 32 puts "Please give me the switch number. (e.g.:5)"
action 33 gets switchnumber
action 34 puts "Please give me the Mgmt-Subnet (e.g.:192.168.1.0)"
action 35 gets subnet
action 36 puts "Please give me the 1st Uplinkport (e.g:Ge0/48)"
action 37 gets uplink1
action 40 puts "Location: $locationnumber \rIP-Adresse: $subnet.$switchnumber \rUplinkinterfaces:$uplink1"
end
1 Reply 1

Moh Mogh
Level 1
Level 1

In case someone else faces the same issue, it requires adding "defualt" keyword to the event statement:

event none sync yes default 90 maxrun 900

Regards,
Mohammad Moghaddas

Review Cisco Networking for a $25 gift card