I trying to copy a running config from a cisco switch using the snmp commands on a Cisco ASR1002.
On the Cisco ASR I enabled snmp-server manager by using this command:
conf t
snmp-server manager
exit
On the switch I want to pull the config from I add the ASR's IP to an access-list that has write privilege.
Then back on the ASR I want to run these commands:
snmp set v2c SWITCH_IP WRITE_STRING oid 1.3.6.1.4.1.9.9.96.1.1.1.1.2.333 integer 1
snmp set v2c SWITCH_IP WRITE_STRING oid 1.3.6.1.4.1.9.9.96.1.1.1.1.3.333 integer 4
snmp set v2c SWITCH_IP WRITE_STRING oid 1.3.6.1.4.1.9.9.96.1.1.1.1.4.333 integer 1
snmp set v2c SWITCH_IP WRITE_STRING oid 1.3.6.1.4.1.9.9.96.1.1.1.1.5.333 ip-address TFTP_SERVER
snmp set v2c SWITCH_IP WRITE_STRING oid 1.3.6.1.4.1.9.9.96.1.1.1.1.6.333 string routertest.txt
snmp set v2c SWITCH_IP WRITE_STRING oid 1.3.6.1.4.1.9.9.96.1.1.1.1.14.333 integer 1
However, I time out on the first command. I can ping from one device to the other. So I'm not sure if I'm missing another snmp-server setting that I need to set up.