sh run information

Unanswered Question
Dec 3rd, 2009

I am trying to write a cgi script to pull certain information from  Cisco 1200 series Ap. whic need a privilege access to get this information and I don't want added any kind of login credential on the there any body out there able to pull sh run information from any Cisco devices? snmpwalk or snmpget able to get such information from cisco devices.....any kind of suggestion highly appreciated.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Joe Clarke Thu, 12/03/2009 - 11:15

You'll need some kind of privileged credential known to your CGI to do this.  You will either need to hard-code it, pull it from a database, or prompt the user for it.  You could use telnet/SSH obviously, or you could use an SNMP SET to trigger a TFTP or RCP copy of the config.  See for more on using the CISCO-CONFIG-COPY-MIB to trigger a config upload.

raindrop18 Thu, 12/03/2009 - 13:17

thanks a lot for your suggestion, I am more intereste user prompt to enter user name/password  or interactive. i have never did such script. do you know or have any example written cgi or any scripting language. thanks as always for your expertise.

Joe Clarke Fri, 12/04/2009 - 00:12

There are plenty of examples out on the internet where you use an HTML form along with a CGI script to process user input.  I don't know of any specific examples which grab credentials, then do a show run, though.


This Discussion