12-02-2020 10:40 AM
Is there a command or commands I can use to automatically enable switchports during boot up? A client does not want to manually configure no shut on ports after the switch is booted up.
Solved! Go to Solution.
12-02-2020 11:01 AM
Hello,
you can use the EEM script below:
event manager applet NO_SHUT_BOOT
event timer cron cron-entry "@reboot"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet0/0 - 24"
action 4.0 cli command "shut"
action 5.0 cli command "end"
12-02-2020 11:01 AM
Hello,
you can use the EEM script below:
event manager applet NO_SHUT_BOOT
event timer cron cron-entry "@reboot"
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface range GigabitEthernet0/0 - 24"
action 4.0 cli command "shut"
action 5.0 cli command "end"
12-02-2020 11:12 AM
Hi Georg,
I will check this out...I totally forgot about EEM.
12-02-2020 11:03 AM
There is no command to do that during the boot up process but if you un shut the ports, save and then reload, the ports will stay up after the reboot.
HTH
12-02-2020 11:06 AM
Hi Shannen,
Depending on the model of your switch, there may be a command that does this. For example, on Nexus switches, the no system default switchport shutdown global configuration command ensures that all L2 switchports are enabled by default.
Can you let us know what model(s) of switch your customer has?
Thank you!
-Christopher
12-02-2020 11:11 AM
Hi Chris,
We are using a switch module - SM-X-ES3-24-P.
12-02-2020 02:37 PM
@Shannen wrote:
A client does not want to manually configure no shut on ports after the switch is booted up.
Post the config of the interface. Maybe the saved config has the ports in "shutdown"?
12-02-2020 05:14 PM
Hey Leo,
Unfortunately, the configs can not viewed on public domain. Since this is an one off you might be correct. I will ensure the ports are not shut prior to saving and I plan on creating an automatic eem script to give the client warm and fuzzy feelings.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide