/usr/ucb/ps -auxwwl|grep oam_server1
Total Pageviews
Sunday, December 24, 2017
OpenDJ commands to start and sop OpenDJ
start-ds
stop-ds
to determine search performance
searchrate -p 1389 -b "dc=example,dc=com" -g 'rand(0,10000)' '(uid=user.%1$d)'
Compress older log file, log files older than 2 days linux command
Compress files older
than 2 days cronjob command
find /var/forgerock/server/logs/ -mtime +1 -exec gzip {} \;
to cronjob use below
05 01 * * * find
/var/forgerock/server/logs/ -mtime +1 -exec gzip {} \;
To delete or print
Find -mtime +120
-print
Find -mtime +120
-delete
unix file permission number, what each number means
. 1 = execute only.
2 = write only.
3 = write and execute (1+2)
4 = read only.
5 = read and execute (4+1)
6 = read and write (4+2)
7 = read and write and execute (4+2+1)
Tuesday, December 19, 2017
ForgeRock OpenAM exporting and importing servers configuration using ssoadm command
In order to export server configuration from ForgeRock OpenAM server run the following command that is under
../../openamtools/admin/.../bin
./ssoadm export-svc-cfg -u [adminID] -f [passwordfile] -e [secretkey] -o [outputfile]
Where
-u is username that have full admin rights to export the configuration
-f is password file
-e secretkey is the secure key that you want to use to encrypt the file. you have to use same key when you import the configuration. you can use any keyword "abcd"
-o this the name of xml file that will contain all the configuration information.
To Import the configuration;
use below command
./ssoadm import-svc-cfg -u [adminID] -f [passwordfile] -e [secretkey] -X [XMLfile]
Subscribe to:
Posts (Atom)