Welcome,
Guest.
Please
Login
or
Register
.
Home
Help
Search
Register
Login
NeDi Community
»
NeDi General
»
Other
»
search device by config (contrib)
Pages: [
1
]
« previous
next »
Print
Author
Topic: search device by config (contrib) (Read 461 times)
dumbuser
Newbie
Posts: 17
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
»
Logged
rickli
Administrator
Hero Member
Posts: 845
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
Logged
-Remo (NeDi's father ;-)
rickli
Administrator
Hero Member
Posts: 845
Re: search device by config (contrib)
«
Reply #2 on:
May 07, 2010, 12:00:08 AM »
Forgive me, if I don't include your idea in devices list
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
Logged
-Remo (NeDi's father ;-)
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
NeDi General
-----------------------------
=> News
=> NeDiO
=> Other
-----------------------------
NeDi Software Specific
-----------------------------
=> Installation
=> Discovery
=> Definition Files
=> Database
=> GUI
-----------------------------
Networking
-----------------------------
=> Management
=> LAN/Switching
=> WAN/Routing
=> General Topics
Loading...