Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

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

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
bankadmin
Asked:
bankadmin
  • 2
  • 2
1 Solution
 
MrJemsonCommented:
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
 
kyleb84Commented:
What brand/model switch is it?
0
 
bankadminAuthor Commented:
Mrjemson. Doing that will that just affect the http config interface for the switch?
0
 
kyleb84Commented:
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
 
MrJemsonCommented:
> 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now