You are on page 1of 4

1, Script to migrate baremetal LDAP:

/
net/152.68.218.79/export/local/noarch/admin/scripts/nis2ldap/client/migration/base_
nis2ldap.sh update -d us.oracle.com -r <region> -l -R -C -L -s

2, Validation after completion of above script :

1,Grep for the port number 389 to ensure host is binding to LDAP barmetal server :

netstat -an | grep 389

Example : ACD host are binding to LDAP barmetal


adcdevitldappool1.oraclecorp.com.

[root@adc2111119 ~]# netstat -an | grep 389 |grep -i ESTABLISHED| awk '{print
$5 }' |cut -d ' ' -f1|sort|uniq| awk -F : '{print $1 }'

10.230.126.69

[root@adc2111119 ~]# nslookup 10.230.126.69

Server: 10.231.225.65

Address: 10.231.225.65#53

69.126.230.10.in-addr.arpa name = adcdevitldappool1.oraclecorp.com.

[root@adc2111119 ~]#

2, Check the file /etc/openldap/ldap.conf to ensure secondary barmetal l dap is


changed .

grep -i uri /etc/openldap/ldap.conf | awk '{print $3}' | awk -F // '{print $2}'

Example :

[root@adc2111119 ~]# grep -i uri /etc/openldap/ldap.conf | awk '{print $3}' | awk


-F // '{print $2}'

ucfdevitldappool1.oraclecorp.com

[root@adc2111119 ~]#
3, Restart a autofs services and check auto maps are able to access.

Example :

cd /usr/local/packages; ls | wc l

Automation for the barmetal migration and validation :

/usr/local/writeable/sankar/tools/ldap_baremetal_migration.sh -r <region>

DOIT Command:

doit -1 -v -y -c "/usr/local/writeable/sankar/tools/ldap_baremetal_migration.sh
-r austin" -f 100 -h "/tmp/CR-2685" -p "/tmp/CR-2685.out" -w 60

cr-2724list.txt

doit -1 -v -y -c "/usr/local/writeable/sankar/tools/ldap_baremetal_migration.sh
-r austin" -f 100 -h "/tmp/cr-2724list.txt" -p "/tmp/cr-2724.out" -w 60

From,
Hanumantha Rao N
Plot No 203,Door no 301,Gokul Plots,
Kphb Colony,Hyderabad-500072
Ph:9951442579

To,
SRI SAI THIRUMALA CHIT FUNDS INDIA
PVT LTD
H.NO: - 3-223/1
KARALMARKS COLONY MAIN ROAD
BHOPALAPALLY - 506169
WARANGAL (DIST)
Ph: 9502235276

You might also like