Is it possible to find out which hosts are using a yp server? I want to remove / update an older VM that's acting as a yp-server but it's not clear which clients are out there.
Is it possible to find out which hosts are using a yp server? I want to remove / update an older VM that's acting as a yp-server but it's not clear which clients are out there.
Problem is:
ypserv
normally only logs errors into the syslog. This isn't helpful for your use case.Workaround, assuming RHEL/CentOS, other systems should be similar.
/etc/ypserv.securenets
exists and is of any help. This can include a line for every host allowed to use NIS.ypserv
into debug mode with the-d
option. This should spew out a line for every connection to STDERR. Seeman ypserv
. Warning:ypserv
will not background itself in this mode. Run it inscreen
or similar./etc/ypserv.securenets
and look into/var/log/messages
to see who wanted to connect :)