To query an object, use the --query option, an object option such as --scLocation or --scBranchServer, and, if desired, an attribute-value pair.
Table 6-17 summarizes the posAdmin command options for querying the LDAP database.
Table 6-17 Command options for querying the LDAP database
The following examples illustrate possible posAdmin queries.
List all locations with all data in boston:
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base ou=boston,o=mycorp,c=us --query --scLocation
List all locations in boston that show only the ipNetworkNumber:
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base ou=boston,o=mycorp,c=us --query --scLocation --ipNetworkNumber
List all locations in boston that show only the ipNetworkNumber 192.168.1.0:
posAdmin.pl --user cn=admin,o=mycorp,c=us --password secret --base ou=boston,o=mycorp,c=us --query --scLocation --ipNetworkNumber 192.168.1.0