Virtual appliance 14.5 and up
vapp is using different users for administration (config) and Provisioning - imps.
Please make sure to switch to imps user before you try o run the commands.
su - imsp
If you would like to know under which PID Provisioning Server is running please perform:
ps aux
under imps user there will be entry like this
imps 6920 0.0 3.5 712996 576836 ? Ssl Nov06 8:08 ./slapd -n im_ps -s 64 -f ../data/im_ps.conf -h ldap://localhost:20389 ldaps://localhost:20390 ldap://ca-prov-srv:20389 ldaps://ca-prov-srv:20390
In this case 6920 is pid you need to use in commands - (-p <process-id>)
or you can point to (-e <executable-file>)
/opt/CA/IdentityManager/ProvisioningServer/bin/slapd
where Provisioning server executable rests.
Most of the time there is no need to do it since script will be able to obtain PID and executable file.