What are the options to import data into an existing PMDB, while the PMDB daemon stopped?
What is the command/options to access PMDB and import the data while the PMDB daemon is running?
Privileged Identity Manager 12.8 SP1
PAM Server Control 14.x
To connect to the PMDB when it's loaded, we need to access it from selang as demonstrated below.
1. Open selang, this by default connects to seosdb
#selang
2. Connect to the PMDB, by specifying the PMDB name followed by @ symbol, providing the hostname is optional while establishing a connection to the PMDB hosted on the same host as that of the endpoint host.
AC> hosts PMDBNAME@
(PMDBNAME@localhost)
Successfully connected
INFO: Target host's version is xxxxx
UNIX OS info: hostname Linux xxxxx
AC>
3. To import the data file into PMDB, the following sequence will be of help. Use the 'source' command to import the required data file consisting of the selang command sequence. The full path of the data file along with the name needs to be specified.
AC> source /tmp/a.lang
(PMDBNAME@localhost)
Successfully created USER user01
(PMDBNAME@localhost)
Unix :
======
Successfully created USER user01
AC>
Note: The 'source <file path/ file name>' command can be used to import the files containing selang commands in either local mode (selang -p <PMDB>) or while the PMDB daemon is up and running.