Sample Search Commands (
ACF2
)

To issue
LDAP Server
queries with command line tools and retrieve specific objects in the
ACF2
tree, use the following search commands.
cszscss
To issue
LDAP Server
queries with command line tools and retrieve specific objects in the
ACF2
tree, use the following search commands.
In the samples in the following table, you must supply your site-specific values for the following parameters. Use these samples with the variable definitions listed after the table.
Function
Command
Retrieve security and backend version information
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s base -b "your_suffix" acf2sysinfo=internal
Retrieve all LIDs
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s one -b “acf2admingrp=lids,
your_suffix
Retrieve a specific LID
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s base -b “acf2lid=
the_lid
, acf2admingrp=lids,
your_suffix
Perform a LIST LIKE(ROZ-) query
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s one -b “acf2admingrp=lids,
your_suffix
” acf2lid=roz*
Perform a LIST IF(TSOPROC=PROC394) query
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s one -b “acf2admingrp=lids
,your_suffix
” tsodefaultprocedure=proc394
Retrieve all rule types (data set and resource)
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s one -b “acf2admingrp=rules,
your_suffix
Retrieve all rule lines ($KEYs) of a specific type (for example, data set)
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s one -b “acf2ruletype=DSN, acf2admingrp=rules,
your_suffix
Retrieve all rule lines ($KEYs) of a specific type (for example, data set), with a specific $KEY value (for example, SYS1)
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s one -b “acf2dsnkey=SYS1, acf2ruletype=DSN, acf2admingrp=rules,
your_suffix
Retrieve all rule lines ($KEYs) of a specific type (for example, CICS)
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s one -b “acf2ruletype=RCKC, acf2admingrp=rules,
your_suffix
Retrieve all rule lines ($KEYs) of a specific type (for example, CICS), with a specific $KEY value (for example, CSSF)
ldapsearch -x -D cn=
real_lid
-w
real_pswd
-H
your_url
:
your_port
-s one -b “acf2reskey=CSSF, acf2ruletype=RCKC, acf2admingrp=rules,
your_suffix
  • real_lid
    A real LID defined in the
    ACF2
    database
  • real_pswd
    The password for the
    real_lid
  • your_url
    The URL of the
    LDAP Server
  • your_port
    The port that
    LDAP Server
    uses
  • your_suffix
    The configured suffix used in slapd.conf
  • the_lid
    The LID defined in the
    ACF2
    database from which you are trying to retrieve details.