Welcome, Guest. Please login or register.

Author Topic: search device by config (contrib)  (Read 3639 times)

dumbuser

  • Newbie
  • *
  • Posts: 26
    • View Profile
search device by config (contrib)
« on: January 28, 2010, 09:29:49 PM »
Hi Remo,
 I've been out of contact for long time but nedi continues to server me well. I thought I'd send over a little code I used to search for devices by info in their configs.

 For example I want to find all my devices that point to a old ntp server. So I go to devices-list, choose config in the select box and regexp for ntp 10.0.0.1 to find all these bad devices.

 I made a few changes to your php generalquery function to allow it to work with JOIN statements named function JOINQuery now. sry for hack but it was simplest way to implement change to existing qui. See attachment

thanks again for all your work on Nedi..

Curt
« Last Edit: January 28, 2010, 10:51:48 PM by dumbuser »

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: search device by config (contrib)
« Reply #1 on: February 02, 2010, 06:28:11 PM »
Good to have you back. The way it's structured won't allow for complex SQL queries. Your addition might be a good way to change that. I'll look into it...tx
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2763
    • View Profile
    • NeDi
Re: search device by config (contrib)
« Reply #2 on: May 07, 2010, 01:00:08 AM »
Forgive me, if I don't include your idea in devices list  :o
Hope searching for a config string is sufficent in Devices-Config...let me know, if not.

But, I'll use it across Reports, the Map and other modules  8)
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo