cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1224
Views
1
Helpful
4
Replies

Run a bash script on Cat9k or switches

CiscoBrownBelt
Level 6
Level 6

Can you run a Linux bash script on a Cat9k or any newer switch in general? After uploading it I guess to dir, how would you execute it? Basically where is best place to upload it then I guess go into linux shell to execute it?

4 Replies 4

marce1000
Hall of Fame
Hall of Fame

 

 - You can do it on nexus (not on catalyst) : https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/programmability/guide/b_Cisco_Nexus_9000_Series_NX-OS_Programmability_Guide_7x/Bash.html

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

Looks like the guestshell enable command is supported as I was also able to turn IOx feature on.

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/166/b_166_programmability_cg/guest_shell.html

I entered it but got 

SW1#guestshell enable
Interface will be selected if configured in app-hosting
Please wait for completion
% Error: No interface configuration for guestshell

Leo Laohoo
Hall of Fame
Hall of Fame

Use EEM but nevert use KRON.  

Embedded Event Manager to upload and run a script? I'm sorry not sure I am tracking what you mean.