08-14-2015 02:53 AM
Hello everybody :D,
I want to deploy a script to deactivate "HTTP" for 30 switches with the following command : "no ip http server".
As i have 30 switches, i don't want to make this command one switch by one.
To do it, i want to deploy this command in a script thanks to Nedi (a open-source tool to manage network equipments)
The problem is i don't know the command prompt of SG300 switches to make this list of commands :
?
conf t
no ip http server
exit
wr mem
Y
Anyone knows what is the command prompt to use ?
Thank you in advance :).
greenkev
Solved! Go to Solution.
08-18-2015 07:58 AM
I see. Did you try Nedi forums then? How about this? http://forum.nedi.ch/index.php?topic=1605.0
08-14-2015 08:58 AM
I would try:
configure
no ip http server
exit
copy running-configuration startup-configuration
y
08-17-2015 05:02 AM
Brandon Svec,
Thanks for your help but unfortunately, your command doesnt't mach :s.
Other ideas ?
08-17-2015 08:31 AM
Can you provide more details about where you are having trouble then? Do you have some log showing failure/errors?
Those commands work on my SG300. The commands you posted orginally should also work, by the way. Did you try entering them manually on a switch to check before doing your script?
You can reference the CLI guide for exact command definitions: http://www.cisco.com/c/dam/en/us/td/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/CLI_Nikola300_1_3_7.pdf
Of course, tab and ? will reveal the correct commands too.
HTH
08-18-2015 12:21 AM
08-18-2015 07:58 AM
I see. Did you try Nedi forums then? How about this? http://forum.nedi.ch/index.php?topic=1605.0
08-19-2015 12:12 AM
Thanks Brandon, i already posted the same topic in Nedi forums --> http://forum.nedi.ch/index.php?topic=1905.0
I'm waiting answers.
08-21-2015 03:36 AM
I have an other question about SG300 switch.
It's possible to drop the message "Overwrite file [startup-config].... (Y/N)[N] ? when we do "wr mem" :
I want that when i do a wr mem, the command yes launch automatically.
08-21-2015 08:16 AM
I could be wrong, but I don't think so. If you are running a script it shouldn't matter though, right? Did you manage to get your backup script working? If not, you may consider using expect. Here is an example I found: http://technologyordie.com/cisco-configuration-backup-script
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