cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
954
Views
5
Helpful
7
Replies

Auto Enable Switchports during start-up...Is that possible?

Shannen
Level 1
Level 1

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.  

1 Accepted Solution

Accepted Solutions

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"

View solution in original post

7 Replies 7

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"

Hi Georg,

 

I will check this out...I totally forgot about EEM.

Reza Sharifi
Hall of Fame
Hall of Fame

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

Christopher Hart
Cisco Employee
Cisco Employee

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

Hi Chris, 

 

We are using a switch module - SM-X-ES3-24-P.

Leo Laohoo
Hall of Fame
Hall of Fame

@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"?

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.  

 

Review Cisco Networking for a $25 gift card