NeDi Community

NeDi Software Specific => Discovery => Topic started by: kai on June 30, 2020, 11:53:57 am

Title: device configs don't written in database
Post by: kai on June 30, 2020, 11:53:57 am
Hello,

I have problem with config backup.
Wirting to file works good but to database don't work.

I use this command:
/nedi.pl -v -B0 -SAFGgsjmvpadobewitu -a"10.17.79.110"

Nedi  1.9.100

Thanks
kai
Title: Re: device configs don't written in database
Post by: rickli on July 01, 2020, 08:28:39 am
Try with -vdd (verbose and debug database). Check what happens after the config is read from the device...
Title: Re: device configs don't written in database
Post by: kai on July 01, 2020, 03:50:18 pm
I can't see what's wrong:
Quote
PCFG:runcfg 368 lines read

Configbackup  -----------------------------------------------------------------  Wed Jul  1 15:43:42 2020
WCFF:Config written to /opt/nedi/conf/switchname/2020-0701-1543.cfg

Write Device Info -------------------------------------------------------------  Wed Jul  1 15:43:42 2020
DBG :switchname exists, updating
DBG :Committing Changes
WDEV:switchname written to nedi16.devices
DBG :UPDATE install SET status=150 WHERE name='switchname'
DBG :UPDATED 0E0 ROWS
DBG :Committing Changes

ProPolicy  --------------------------------------------------------------------  Wed Jul  1 15:43:42 2020
DBG :SELECT * FROM policies WHERE status=10 AND device='switchname' AND time < 1593611021 key=ifname
PROP:No actions triggered
DBG :Elevate=0 Min=0 Mode=x Notify=bclmrswyz
DISC:ToDo/Done-Time                                        0/1-1s
Title: Re: device configs don't written in database
Post by: rickli on July 03, 2020, 02:52:26 pm
Hmm, but the config in the DB does not match the actual config? It'll not update without a change (you could test by changing an IF alias)