DHCP Information

Hi All,

Need to know the hostname and IP addresses of all servers where Dynamic IP address are assigned. Note:-All servers which are getting IP from DHCP.
Can anyone please help me with the logical relevance for the same.

Regards,
Manish Singh

For the “hostname”, the client relevance is “hostname”.

Q: hostname
A: your_hostname_here
T: 7.968 ms

For the IP address, this has some dependency based upon the targeted OS.

For Windows …

IF (Windows of Operating System) THEN (if (exists adapter whose (address of it != "0.0.0.0" AND dhcp enabled of it) of network) then (TRUE) else False) ELSE (NOTHING)

Mac’s don’t seem to have any DHCP related properties. It would require looking at other configurations under the Networking objects.

2 Likes

Here’s a Mac example from BigFix.me

https://bigfix.me/analysis/details/2998169

You could also start with the following client relevance and build from there.

addresses of ip interfaces of network

2 Likes

Thanks information is really helpful.