01-23-2015 05:37 AM
I would like to have some help putting together a script for rebooting our 300 series POE switches. I have about 150 at this stage to administer and it would make it much easier not to have to remotely reboot them. The IP settings will be the same for each location and we have about 2-5 in each location. I will be logging in through logmein to each remote server, and will run the scripts from this to the local switches. Any help would be appreciated.
03-01-2015 03:19 PM
Hi Ross
I would recommend to do it via SNMP. SG300/SF300 series switches supports reload functionality via SNMP MIB. You can simply prepare batch file on every location with following example commands and schedule it in system scheduler to particular time you want to do it. Example commands for single switch:
snmpset -v 2c -c RWCommunitySecret X.X.X.X rlScheduledReload.0 s 'YYYYYY' snmpset -v 2c -c RWCommunitySecret X.X.X.X rlScheduledReloadCommit.0 i '1'
Where:
Of course for this to work you have to:
03-03-2015 10:32 AM
Hi Ross,
Have you tried something like this:
connect '192.168.1.254:22 /ssh /auth=password /user=admin /passwd=admin'
wait UsernamePrompt
sendln 'cisco'
;wait PasswordPrompt
;sendln Password
wait UsernamePrompt
sendln 'cisco'
wait Console
sendln 'reload'
sendIn 'Y'
sendIn 'Y"
Let me know if this helps :-)
Aleksandra
08-19-2021 01:19 PM
hi aleksandra
i just wanna know we shoud run this commands on what ? CLI cisco ? specifical application on windows ?
thank you
08-20-2021 01:16 AM
- Apparently that is a teraterm-based script (or macro) , download teraterm and for instance have a look at :
https://www.youtube.com/watch?v=-hWRkHoMep4
M.
08-20-2021 07:43 AM
thank you
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