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

Run a bash script on Cat9k or switches

CiscoPurpleBelt
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
VIP
VIP

 

 - 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.



-- ' 'Good body every evening' ' this sentence was once spotted on a logo at the entrance of a Weight Watchers Club !

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card