Total Pageviews

Sunday, December 24, 2017

solaris command To check oam processes


/usr/ucb/ps -auxwwl|grep oam_server1

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]



Monday, November 6, 2017

ForgeRock OpenDJ installation steps


 ForgeRock OpenDJ installation is same as we install ODSEE or any other DS instance. to Install the OpenDJ Toolkit Perform the following in the Root window as the root user

 1. The OpenDJ Toolkit has been downloaded from http://forgerock.org.
Navigate to the /OpenDJ folder and copy the downloaded file.
# cp /opt/fr-462/software/opendj-ldap-toolkit2.6.0.zip /OpenDJ
# cd /OpenDJ

 2. Extract the files in the ZIP file.  For instance, if you downloaded the 2.6- version of the OpenDJ Toolkit you would enter the following:
# unzip opendj-ldap-toolkit-2.6.0.zip This will create a new folder containing the extracted files (for instance, opendj-ldap-toolkit-2.6.0).

 3.  Rename the new folder to opendjtk. # mv opendj-ldap-toolkit-2.6.0 opendjtk 


 4. Add the /OpenDJ/opendjtk/bin folder to your PATH variable.

 5. Verify that you can locate the tool kit tools. # which searchrate 

Wednesday, October 11, 2017

Oracle 12C database abnormal shutdown solution


If Anytime Oracle Database goes down abnormally, due to machine failure or server reboot, most of the times objects gets into "INVALID" state.


command to check the status
select object_name,status from dba_objects where status='INVALID';

if you see a lot of INVALID objects run the following command after login to SQL

../../dbhome/rdbms/admin

run following utility to recompile these objects

SQL>@utlrp.sql