dbmgr -dump Function: Display Database Information
The dbmgr -dump function reports on the records in the database. Use this function to perform the following operations:
capamsc141
The dbmgr -dump function reports on the records in the database. Use this function to perform the following operations:
- Display information for records of a specified class
- Display information for a single record of a specified class
- Display information for all records of a class, except a specified one
- Generate lists of classes and property definitions
- Generate a list of groups that a user belongs to
- Generate a list of records of a particular class
This function assumes that the
PAM Server Control
daemons are not running; you must invoke it from the directory where the database resides. If you use the -r switch, PAM Server Control
daemons must be running, and you must have the ADMIN, AUDITOR, or SERVER attribute. To execute this function, you must also have READ and WRITE permission on the database files.This command has the following format:
dbmgr {-dump|-d} [-h] [-r] [-f fileName] \
[c] [fc] [g user] [l class] [p class] [fp class] \ [d class [props|@fileName] \ [dn class [props|@fileName] \ [e classrecord [props|@fileName] \ [en classrecord [props|@fileName] \ [o classrecord [props|@fileName] \ [on classrecord [props|@fileName]
- -dump|-dExecutes the database dump function of the dbmgr utility.
- -ffileNameDirects output to the specified file, instead of the standard output device.
- -hDisplays the help for this function.
- -rDisplays information about the database currently being used by the authorization daemon.If you omit this option, dbmgr displays information about the database in the current directory.
- cLists the names of all classes defined in the database.
- dclass[props|@fileName]Displays the values of selected properties for all records of a class. Theclassparameter specifies the class. Thepropsparameter defines a space-separated list of properties whose values you want to display.To read the property list from a file, specify the full pathname of a file, preceded by an at sign (@). Each property listed in the file must appear on a separate line.If you do not specify any properties, the values of all the properties are listed.
- dnclass[props|@fileName]Same as thedoption, only properties with unknown values are not displayed.
- eclassrecord[props|@fileName]Displays the values of selected properties for all records of a classexceptfor a single, specified record. Theclassparameter specifies the class. Therecordparameter specifies the name of the record to omit from the list. Thepropsparameter defines a space-separated list of properties whose values you want to display.To read the property list from a file, specify the full pathname of a file, preceded by an at sign (@). Each property listed in the file must appear on a separate line.If you do not specify any properties, the values of all the properties are listed.
- enclassrecord[props|@fileName]Same as theeoption, only properties with unknown values are not displayed.
- fcLists all class information for all classes in the database.
- fpclassLists all property information on properties of the specified class.
- guserLists the groups that the specified user is a member of.
- lclassLists all the records in the specified class.
- oclassrecordproperty/ onclass record propertyDisplays the values of selected properties for a single record of a class. Theclassparameter specifies the class. Therecordparameter specifies the record. Thepropsparameter defines a space-separated list of properties whose values you want to display.To read the property list from a file, specify the full pathname of a file, preceded by an at sign (@). Each property listed in the file must appear on a separate line.If you do not specify any properties, the values of all the properties are listed.
- oclassrecordproperty/ onclass record propertySame as theooption, only properties with unknown values are not displayed.
- pclassLists the names of the properties of the specified class.
You can only specify one other option apart from -r and -f.