Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SNMP and Cisco 1

Status
Not open for further replies.

svanwass

Programmer
Jun 1, 2004
2
US
Hi all,

I am trying to write a program that will use Net-SNMP to get the running config from a router, then upload it to a TFTP server. I have consulted Cisco's website as how to do this and they have provided me with this link:
CCO ID required if you want to read it.

Basicly, this is the string that is needed to be sent to the router
snmpset -v 2c -c public 10.10.10.2 ccCopyProtocol.111 integer 1 ccCopySourceFileType.111 integer 4 ccCopyDestFileType.111 integer 1 ccCopyServerAddress.111 IpAddress "127.0.0.1" ccCopyFileName.111 DisplayString "config.txt" ccCopyEntryRowStatus.111 integer 4

However, when i send this, i get ONLY this in return:

ccCopyFileName.111: (config.txt)

I have no idea what this means and Googleing it has come up unsucessful. The MIBs that i am using is Cisco-Copy-Config-MIB.

Thanks for the support!
 
Steven,

Check out the perl script scarfconf.pl. It comes with the current distribution of MRTG under the contrib/cisco_tftp directory.

I think it does what you want to do.

I've used it and it works great!

Patrick

Patrick Bartkus, CCNP, CNX, SCM, RHCT Sr. Network Engineer
GA Dept of Labor IT Network Services
If truth were not absolute, how could there be justice?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top