Solved

How do you disable or delete the CGI script in a switch

Posted on 2008-10-08
5
224 Views
Last Modified: 2012-05-05
I have a switch running CGI script nph-test-cgi on a switch. How can I remove or delete it? And what will happen when I do that?
0
Comment
Question by:bankadmin
  • 2
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
MrJemson earned 500 total points
Comment Utility
router(conf)# no ip http server

Will turn off the http server all together...

Or try:

router# show flash

If you see the cgi script

router# delete flash:<NAME OF SCRIPT>
0
 
LVL 10

Expert Comment

by:kyleb84
Comment Utility
What brand/model switch is it?
0
 

Author Comment

by:bankadmin
Comment Utility
Mrjemson. Doing that will that just affect the http config interface for the switch?
0
 
LVL 10

Expert Comment

by:kyleb84
Comment Utility
Yes, that's correct.

Your fear of using this script is misplaced, it's not a major security hole - it only allows a would be hacker to find out where the cgi-bin is on the device... nothing more.

And the fact that it's a switch probably means that it's on your private network and not accessible from the outside world - which again limits its potential threat.

Mr Jemson is right in just saying disable the http server altogether, the HTTP server is just an interface for the underlying command line interface - and therefore won't do any harm to your current config.
0
 
LVL 8

Expert Comment

by:MrJemson
Comment Utility
> Mrjemson. Doing that will that just affect the http config interface for the switch?
Correct. It is good practice to always turn off the http server when not actively configuring a device.
If you are not too good with the command line, just turn it back on again when you need to change/configure something :-)
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

I see many questions here on Experts Exchange regarding switch port configurations and trunks. This article is meant for beginners in the subject to help to get basic knowledge about Virtual Local Area Network (VLAN (http://en.wikipedia.org/wiki/Vir…
Getting hacked is no longer a matter or "if you get hacked" — the 2016 cyber threat landscape is now titled "when you get hacked." When it happens — will you be proactive, or reactive?
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now