probenis - Probes for existence of NIS server
/usr/sbin/probenis [-t timeout] domain
The probenis command probes the network to determine whether or not NIS is
available. Although part of the JOIN package, it does not explicitly
depend on the configuration database and can be used standalone. It is
chiefly of use on nomadic machines to prevent the invocation of ypbind on a
network where NIS is unavailable.
It uses broadcast RPC to make a call to YPPROC_DOMAIN_NONACK, and then
waits for a reply to be received or a timeout. Unless changed on the com-
mand line, the default timeout for RPC is used (currently 25 seconds). The
probenis command takes no action other than to set an exit code: zero if
NIS appears to be running, nonzero otherwise.