Discover DNS servers as part of Server Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 03:36 PM
I want to discover primary and Secondary DNS Servers as part of Server Discovery, I am not sure if OOB discovery finds this information from Server. Any help would be appreciated.
- Labels:
-
Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 04:00 PM
Doesnt happen out of box but sure! Just create a new probe/sensor, add it to your Windows Server classifier and away you'll go...
Seems you can get that info through WMI or in the Registry..
https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/win32-networkadapterconfiguration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 11:32 PM
Hi Geethunannapaneni,
We have to create a custom probe and sensor to achieve this as this is not OOB functionality.
1. create a custom field as DNS Server
2.create custom probe:
3. Create a sensor to process the information:
for e.g-
new DiscoverySensor({
process: function(result) {
var name= this.getCmdbRecord.name;
var output=result.<tag in which the dns name is coming>; // see the payload of the probe and get the tag name
var gr=new GlideRecord("<table name to which you want to set the data>");
gr.addQuery("name",'<name of the CI>'); //
gr.query();
while(gr.next())
{
gr.u_dns_server=output;
gr.update();
}
},
type: "DiscoverySensor"
});
Hit helpful/correct on the impact of the answer.
Warm Regards,
Kiran Salunkhe
Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 10:16 AM
Hi Kiran,
Thanks for that.
I am able to pull one of the DNS Servers using that command. We have more than one DNS servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2018 10:30 AM
This command is running on MID Server and not on every server in the network. It is giving the DNS Servers only for the MID Server.