ā12-03-2009 11:10 AM
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.
ā12-03-2009 11:15 AM
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.
ā12-03-2009 01:17 PM
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.
ā12-04-2009 12:12 AM
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.
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