NIFIND(1) General Commands Manual NIFIND(1)NAME
nifind - find a directory in the NetInfo hierarchy
SYNOPSIS
nifind [ -anvp ] [ -t timeout ] directory [ domain ]
DESCRIPTION
nifind searches for the named directory in the NetInfo hierarchy. It starts at the local domain and climbs up through the hierarchy until
it reaches the root domain. Any occurrences of directory are reported by directory ID number. If the optional domain argument is given,
then nifind stops climbing at that point in the hierarchy. The domain argument must be specified by an absolute or relative domain name.
When invoked with the -a option, nifind searches for the named directory in the entire NetInfo hierarchy (or the subtree with domain as the
root if domain is specified). The -n option exempts local domains from the search.
nifind uses a default two second connection timeout when contacting a domain. The connection timeout can be overridden with the -t option.
OPTIONS -a Search for directory in the entire NetInfo hierarchy.
-n Exempt local directories from the search.
-p Print directory contents.
-t timeout
Specify an integer value as the connection timeout (in seconds).
-v Produce verbose output.
EXAMPLES
% nifind /printers/inky
/printers/inky found in /software, id = 202
/printers/inky found in /, id = 357
% nifind -a /machines/mailhost /sales
/machines/mailhost found in /sales, id = 234
% nifind -v /users/uid=164
/users/uid=164 not found in /sales/polaris
/users/uid=164 not found in /sales
/users/uid=164 found in /, id = 451
% nifind -p /machines/mailhost
/machines/mailhost found in /sales, id=171
name: zippy mailhost
ip_address: 192.42.172.5
/machines/mailhost found in /, id = 350
name: zorba mailhost
ip_address: 192.42.172.1
SEE ALSO netinfo(5)AUTHOR
Marc Majka, Apple Computer Inc.
BUGS
nifind does not complain if domain is not an ancestor specified in a normal search.
Apple Computer, Inc. August 9, 1994 NIFIND(1)
Check Out this Related Man Page
NIDUMP(8) System Manager's Manual NIDUMP(8)NAME
nidump - extract text or flat-file-format data from NetInfo
SYNOPSIS
nidump [ -t ] { -r directory | format } domain
DESCRIPTION
nidump reads the specified NetInfo domain and dumps a portion of its contents to standard output. When a flat-file administration file
format is specified, nidump provides output using the syntax of the corresponding flat file. The allowed values for format are aliases,
bootparams, bootptab, exports, fstab, group, hosts, networks, passwd, printcap, protocols, rpc, and services.
If the -r option is used, the first argument is interpreted as a NetInfo directory path, and its contents are dumped in a generic NetInfo
format.
OPTIONS -t Interpret the domain as a tagged domain. For example, "trotter/network" refers to the database tagged "network" on the machine
"trotter". The machine name can be an actual name or an IP address.
-r Dump the specified directory in "raw" format. Directories are delimited by curly braces, and properties within a directory are
listed in the form "property = value;". Parentheses introduce a comma-separated list of items. The special property name CHILDREN
is used to hold a directory's children, if any are present. Spacing and line breaks are significant only within double quotes,
which may be used to protect any names that might contain metacharacters.
EXAMPLES
"nidump hosts ." dumps a hosts file from the local NetInfo domain.
"nidump -r /locations /" dumps the /locations directory of the root domain.
"nidump -t -r /name=users/uid=530 trotter/network" dumps the directory for the user whose UID is 530.
SEE ALSO niload(8), niutil(8), netinfo(5), aliases(5), bootparams(5), bootptab(5), exports(5), fstab(5), group(5), hosts(5), networks(5), passwd(5),
printcap(5), protocols(5), rpc(5), services(5)Apple Computer, Inc. December 22, 1992 NIDUMP(8)