13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

■You can query the status of <strong>NIS</strong> by using the svcs comm<strong>and</strong>.■Examples of svcs comm<strong>and</strong> <strong>and</strong> output.# svcs network/nis/serverSTATE STIME FMRIonline Jan_10 svc:/network/nis/server:default■■■# svcs \*nis\*STATE STIME FMRIdisabled 12:39:18 svc:/network/rpc/nisplus:defaultdisabled 12:39:18 svc:/network/nis/server:defaultdisabled 12:39:20 svc:/network/nis/passwd:defaultdisabled 12:39:20 svc:/network/nis/update:defaultdisabled 12:39:20 svc:/network/nis/xfr:defaultonline12:42:16 svc:/network/nis/client:defaultExample of svcs -l comm<strong>and</strong> <strong>and</strong> output.# svcs -l /network/nis/clientfmrisvc:/network/nis/client:defaultenabled truestate onlinenext_state nonerestarter svc:/system/svc/restarter:defaultcontract_id 99dependency exclude_all/none svc:/network/nis/server (offline)dependency require_all/none svc:/system/identity:domain (online)dependency require_all/restart svc:/network/rpc/bind (online)dependency require_all/none svc:/system/filesystem/minimal (online)You can use the svccfg utility to get more detailed information about aservice. See the svccfg(1M) man page.You can check a daemon’s presence by using the ps comm<strong>and</strong>.# ps -e | grep rpcbinddaemon 100806 1 0 Sep 01 ? 25:28 /usr/sbin/rpcbindNote – Do not use the -f option with ps because this option attempts totranslate user IDs to names, which causes more naming service lookups thatmight not succeed.Planning Your <strong>NIS</strong> DomainBefore you configure machines as <strong>NIS</strong> servers or clients, you must plan the <strong>NIS</strong>domain.Decide which machines will be in your <strong>NIS</strong> domain. An <strong>NIS</strong> domain does not have tobe congruent with your network. A network can have more than one <strong>NIS</strong> domain, <strong>and</strong>there can be machines on your network that are outside of your <strong>NIS</strong> domain.Chapter 5 • Setting Up <strong>and</strong> Configuring <strong>NIS</strong> Service 81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!