Sure, use ucd-snmp. You can do it with CLI utils or with perl module. Here
are the examples with CLI.
$string=community string
$nms=tftp server
$router=cisco box
$conffile=config file on the nms
Initiate TFTP transfer of config to router:
snmpset $router $string .1.3.6.1.4.1.9.2.1.50.$nms s $conffile
Saving resulting config to NVRAM:
snmpset $router $string .1.3.6.1.4.1.9.2.1.54.0 i 1
Saving config to tftp server:
snmpset $router $string .1.3.6.1.4.1.9.2.1.55.$nms s $conffile
--Bert
-----Original Message----- From: Basil Dolmatov To: cisco-nsp@puck.nether.net Sent: 8/28/00 12:02 PM Subject: SNMP config management
Could anyone point me to some example of SNMP config management script for Cisco routers/switches?
I need possibility to initiate tftp transfer of config to router, saving resulting config to NVRAM and tftp transfer resulting config from router to tftp-server.
Proposed procedure in CISCO-CONFIG-COPY-MIB.my is quite complicated, and I would prefer to clone my script from definitely working code, than to reinvent the wheel..
Thanks in advance, -------------------------------------------------------- Basil (Vasily) Dolmatov, CCIE #5347, CCNP-Security, CCDA LightCom Corp. http://www.lightcom.ru
This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:12:16 EDT