09-19-2013 04:45 AM - edited 03-07-2019 03:33 PM
Hello:
I have deployed some Nexus5596 chassis. Throughout the rest of my network i'm using the "archive" feature when I write the config, it automatically SCP's the config to an external server.
How can i do this with my Nexus XIOS?
thanks for your help
Dan
09-19-2013 11:16 AM
HI,
Since an automated backup cannot be initiated from the Nexus 5K, here are some options for a 3rd party application or cron job. 1st option: you can use ssh and scp to remotely execute NXOS commands sent from the host to pull/push files to/from the N5K. Preconfigure the ssh key on the N5K for authenitcation. Then something like this on the host that is doing the backup of the N5k Host$ ssh n5k_sw scp startup-config username@Host:/home/username/N5k_configs/startup-config-xxx Host$ ssh n5k_sw scp username@Host:/home/username/N5k_configs/startup-config-xxx bootflash: 2nd option: you can configure snmp for this automatic backup You can use following snmp-set commands snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.14.135 integer 5 snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.2.135 integer 1 snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.135 integer 4 snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.4.135 integer 1 snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.5.135 a "172.18.252.233" snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.6.135 s "test1" snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.14.135 integer 1 Substitute your ip addrs and snmp v2 community strings or v3 as appropriate snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.135 integer 4 (running config) snmpset -v 2c -c private 14.17.151.64 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.135 integer 3 (startup config) HTH Regards Inayath*************Please dont forget to rate this thread if info is helpfull***********8
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide