On Thu, 2011-04-28 at 11:22 +0200, Tóth András wrote: > How To Copy Configurations To and From Cisco Devices Using SNMP > http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a0080094aa6.shtml
Beware that CISCO-CONFIG-COPY-MIB is not supported on all devices. For those that don't support it, OLD-CISCO-SYS-MIB (supported by every IOS device I met) has "writeNet": snmpset [auth options] device.example.com OLD-CISCO-SYS-MIB::writeNet.10.20.30.40 s device-config.txt Where "10.20.30.40" is the IP address of a TFTP server and "device-config.txt" is the path relative to the TFTP root on the server. This path can contain "/" to address subdirectories. If every device you have support CISCO-CONFIG-COPY-MIB it has a lot of advantages: you can copy more than just running-config, you can use other protocols than TFTP, you can check the status of long running operations. It's programatically more complex though. Keep in mind that your TFTP server might not allow creating new files, so you might have to first create a world-writable file for the device to overwrite. -- Peter _______________________________________________ cisco-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/cisco-nsp archive at http://puck.nether.net/pipermail/cisco-nsp/
