Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Sample applet to deny certain users from running commands, and also store each command users have entered into a file.This applet uses a denylist file to compare against who is running each command. If the user and command is listed in the denylist ...
Posted By: alanssie Posted Date: Oct 19, 2011 Category: Network Management Version: 0001 License: Cisco-Style BSD Summary: take 3 times sh tech sh log of all CLC sh modem Script Modified Date: Oct 19, 2011 Cisco IOS Version tested: 12.2(33)SCE2 ...
Hi,The NXAPI credentials and authorization should match what is set for CLI commands as well. If you are noticingdifferent behavior you may be hitting a bug. Are you noticing different behavior if you run the same command on CLI as the same user?
Here is a sample EEM applet which does this as well:event manager applet desctest event none action 100 cli command "enable" action 101 cli command "show int descr | inc TEST" action 102 foreach line "$_cli_result" "\n" action 103 regexp "([^\s]*).*T...
Here is a .tcl EEM policy which should help. It does some extra checking to narrow by interface type. You canremove that if needed.Thanks.::cisco::eem::event_register_none maxrun 120 default 120namespace import ::cisco::eem::*namespace import ::cis...
Hi,Can you tell if the EEM is triggering the applet, and the actions are just failing? You can check that with"show event manager history events". If the applet is triggering I would suggest turning on cli debugging with:"debug event manager action...
HI Amadou,Thanks but this code was actually uploaded by yawchen to the previous cisco beyond site. My name is just on it as I moved it to our newer supportforums