Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

sh run information

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 script.is 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.

3 REPLIES
Cisco Employee

Re: sh run information

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 http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml for more on using the CISCO-CONFIG-COPY-MIB to trigger a config upload.

New Member

Re: sh run information

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.

Cisco Employee

Re: sh run information

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.

280
Views
4
Helpful
3
Replies
CreatePlease login to create content