NeDi Community

NeDi Software Specific => GUI => Topic started by: Saguu on March 15, 2019, 10:31:37 am

Title: Crontab copy running-config startup-config
Post by: Saguu on March 15, 2019, 10:31:37 am
Hello,

We have been using NeDi for many months with great satisfaction. Currently, all configurations of our network equipment are saved in NeDi. I would also like every night, the running-config is written in the startup-config. I did not find how to do it in the documentation. Could you help me on this?

Thank you
Title: Re: Crontab copy running-config startup-config
Post by: rickli on March 20, 2019, 12:39:56 pm
You can create a command file in System-Files:
- Click green+ next to "CLI Send>"
- replace cmd-new with cmd-savrun
- Enter "wr mem" (or so) in the textarea below
- Click Write

Then schedule a crontjob:

0 0    * * *   /var/nedi/nedi.pl -ti -Aall -SAFGgadobewitjumpvs -c cmd_savrun > /var/log/nedi/nedi-00.savrun 2>&1

You can review the action in System-Files "Discover Log" or "CLI Send" selectbox...

About arguments:
-ti will prevent updating devices in DB
-S... skips over all OIDs
-c... executes the command
Title: Re: Crontab copy running-config startup-config
Post by: Saguu on March 22, 2019, 09:16:26 am
Works fine !

Thank you very much Rickli :)