You can copy part of config from  tftp directly  to running-config

snmpset -v 2c -c RW-SNMP-COMMUNITY X.X.X.X .1.3.6.1.4.1.9.9.96.1.1.1.1.2.111 
integer 1 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.111 integer 1 
.1.3.6.1.4.1.9.9.96.1.1.1.1.4.111 integer 4 .1.3.6.1.4.1.9.9.96.1.1.1.1.5.111  
a "1.1.1.1" .1.3.6.1.4.1.9.9.96.1.1.1.1.6.111 s "config" 
.1.3.6.1.4.1.9.9.96.1.1.1.1.14.111 integer 4

RW-SNMP-COMMUNITY - your RW community
X.X.X.X - your switch
1.1.1.1 - IP of tftp server
config - name of config file

Usually, you can copy from tftp to run-conf only comands you need, for example

cat config.cfg

line vty 0 4
password cisco
login


And this three command merge with existing running-config, not overwriting them


But sometimes cisco refuses to do it, and you have to copy run to tftp first, 
change it, and then copy back to run


To copy run to tftp:


snmpset -v 2c -c RW-SNMP-COMMUNITY X.X.X.X  .1.3.6.1.4.1.9.9.96.1.1.1.1.2.111 
integer 1 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.111 integer 4 
.1.3.6.1.4.1.9.9.96.1.1.1.1.4.111 integer 1 .1.3.6.1.4.1.9.9.96.1.1.1.1.5.111  
a "1.1.1.1" .1.3.6.1.4.1.9.9.96.1.1.1.1.6.111 s "config" 
.1.3.6.1.4.1.9.9.96.1.1.1.1.14.111 integer 4

HTH
Olga


_______________________________________________
cisco-nsp mailing list  [email protected]
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/

Reply via email to