Run a bash script on Cat9k or switches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023 10:20 AM - edited 03-28-2023 10:33 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023 10:24 AM
- 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! '
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023 11:09 AM - edited 03-28-2023 11:10 AM
Looks like the guestshell enable command is supported as I was also able to turn IOx feature on.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023 02:47 PM
Use EEM but nevert use KRON.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023 04:21 AM
Embedded Event Manager to upload and run a script? I'm sorry not sure I am tracking what you mean.
