Welcome, Guest. Please login or register.

Author Topic: device configs don't written in database  (Read 1491 times)

kai

  • Newbie
  • *
  • Posts: 39
    • View Profile
device configs don't written in database
« 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

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2893
    • View Profile
    • NeDi
Re: device configs don't written in database
« Reply #1 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...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

kai

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: device configs don't written in database
« Reply #2 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

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2893
    • View Profile
    • NeDi
Re: device configs don't written in database
« Reply #3 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)
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo