Welcome, Guest. Please login or register.

Author Topic: Last configuration change at ....  (Read 1426 times)

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
Last configuration change at ....
« on: December 07, 2015, 04:43:25 AM »
Hi forum people!
 I've found in a post in 2012 about adding the config diff to configuration view and emails, but is there a way to exclude specific config lines that contain text?
We log all commands and logins on devices, so every time some monitoring tool(Nedi) logs into them they count as a change and subsequent changes in nedi are noted with the lines below.
Code: [Select]
#--- Sat Mar 14 00:01:02 2015 ---#
 3- ! Last configuration change at 22:00:09 nzdt Thu Mar 12 2015 by username
 3+ ! Last configuration change at 22:00:34 nzdt Fri Mar 13 2015 by username
I'd really like to remove this one line from the device configuration page in Nedi.
Or anything containing the line "Last configuration change at".

Sorry for not putting in much time looking at this yet(work), kind of hoping for a quick fix if available.

Mark.

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2693
    • View Profile
    • NeDi
Re: Last configuration change at ....
« Reply #1 on: December 07, 2015, 07:41:54 AM »
This should work too:

# Regexp to match sensitive configuration lines, which should not be included in backup
;ignoreconf   password\s
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

ntmark

  • Full Member
  • ***
  • Posts: 136
    • View Profile
    • tvnz.co.nz
Re: Last configuration change at ....
« Reply #2 on: December 07, 2015, 09:01:44 PM »
Thank you sir.
Just what I was after.   ;D

Mark