02-11-2020 03:24 PM - edited 02-11-2020 03:24 PM
On servers and desktops we do:
C:\ipconfig /release && ipconfig /renew
That way we are able to reconnect after releasing an IP and not thrown out and unable to reconnect because it has no IP.
For the Cisco 4506e:
What is the syntax to do a shut, no shut command as one entry so when I'm thrown out, the port goes back to no shut so I can reconnect?
Solved! Go to Solution.
02-11-2020 11:13 PM
Hi there,
You can't chain commands like that on IOS. The best you can do is launch an EEM script and then have that execute the commands in the background:
! event manager applet SHUTNOSHUT event none action 1.0 cli command "enable" action 2.0 cli command "conf t" action 3.0 cli command "int gi0/1" action 4.0 cli command "shut" action 5.0 cli commnad "no shut" action 6.0 cli command "quit" !
Then from the CLI launch it with:
event manager run SHUTNOSHUT
cheers,
Seb.
02-12-2020 02:19 AM
Hello,
you could use the terminal shell to enter multiple commands. Let's say you want to bounce interface GigabitEthernet0/0 (shut/no shut), you would enter the terminal shell and then enter the line below:
4506#term shell
4506#conf t; interface GigabitEthernet 0/0; shut; sleep 5; no shut; end
06-23-2021 01:02 AM
you can do it using EEM and it should give you desired results.
## Make sure to mark post as helpful, If it resolved your issue. ##
02-11-2020 04:05 PM
02-11-2020 11:13 PM
Hi there,
You can't chain commands like that on IOS. The best you can do is launch an EEM script and then have that execute the commands in the background:
! event manager applet SHUTNOSHUT event none action 1.0 cli command "enable" action 2.0 cli command "conf t" action 3.0 cli command "int gi0/1" action 4.0 cli command "shut" action 5.0 cli commnad "no shut" action 6.0 cli command "quit" !
Then from the CLI launch it with:
event manager run SHUTNOSHUT
cheers,
Seb.
06-22-2021 01:26 PM
how about just copy and paste the commands....
02-12-2020 12:52 AM
- Thrown out , depending on what it means, note also that a 'null-time-elapsed' shut/no-shut may not always achieve the desired result.
M.
02-12-2020 02:19 AM
Hello,
you could use the terminal shell to enter multiple commands. Let's say you want to bounce interface GigabitEthernet0/0 (shut/no shut), you would enter the terminal shell and then enter the line below:
4506#term shell
4506#conf t; interface GigabitEthernet 0/0; shut; sleep 5; no shut; end
06-23-2021 01:02 AM
you can do it using EEM and it should give you desired results.
## Make sure to mark post as helpful, If it resolved your issue. ##
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