LDAP-UX Client Services B.05.00 Administrator's Guide

profile or specified using -b) that are of the groupOfNames, or
groupOfUniqueNames object class and have the specified
groupname. ldaphostlist enumerates the members of the
specified group, searching for members that are hosts, and then
displays those entries. The -f or -F option can be used to further
narrow the list of returned host entries.
Note that the -n and -m options are mutually exclusive
-b base
Overrides the search base as defined in the ldapux(5) configuration.
base is a distinguished name (DN) that describes the lowest (with
the tree branches facing up) location in the directory tree at which
to start the search. If base is not specified, ldaphostlist uses
the search base from the hosts serviceSearchDescriptor or
defaultSearchBase, as defined in the LDAP-UX configuration
profile, per section 4.6 of RFC 4876. If a partial DN is put into
theserviceSearchDescriptor, it is combined with the
defaultSearchBase. For example, if we have the following::
defaultsearchbase: dc=chn,dc=hp,dc=com
servicesearchdescriptor:
hosts:ou=hosts,?sub?(objectclass=iphost)
Then the search base for the hosts service will be:
ou=hosts,dc=chn,dc=hp,dc=com
-s scope
Overrides the search scope as defined in the ldapux(5)
configuration. scope specifies how deep in the directory tree the
search should search. scope can be one of the following keywords:
base
Performs a search only on the base specified with the -b
option.
one
Searches all entries that are immediate child entries of the
base.
sub
Searches all all entries below and including the base.
-f filter
Specifies an LDAP-style search filter, used to select specific host
entries from the LDAP directory. When -f is used, the specified
filter is assumed to apply to POSIX-style host entries. This
means the filter specified with -f is amended with the default
ldapux(5) search filter for the host object type. In addition, when
-f is used, if a known attribute for the host service (see the lists
defined in Section 7.3.9.3 (page 282)), has been mapped as defined
by the ldapux(5) configuration profile, then the mapped attribute
name is substituted in the search filter.
Consider an example with the following command:
ldaphostlist -f (cn=myhost)
And assume the LDAP-UX product has been configured as follows:
The configuration profile defines the search filter for the host
service as (objectclass=ipHost).
The cn attribute for the host service has been mapped to the
hostName attribute.
280 Command and tool reference