Thursday, 13 November 2014

HP OMU OML: ovcert remote remove certificate


1.# create new core id
ovcoreid -create –force

2.# remove certificate
ovcert -remove `ovcoreid`

3. # adapt xpl conf variable OPC_NODENAME
ovconfchg -ns eaagt -set OPC_NODENAME `hostname`

4.# restart OM Agent
ovc –kill
ovc -start

5.# create new certificate request
ovcert –certreq

Ideally, you can create a clone template, which runs the script below
automatically after cloning. May be integrate this into the startup of the agent.

#!/bin/sh
PATH=$PATH:/opt/OV/bin/OpC:/opt/OV/bin
OPC_NODENAME=`ovconfget eaagt OPC_NODENAME`
HOSTNAME=`hostname`
if [ "$OPC_NODENAME" == "$HOSTNAME" ]
then
echo hostname $HOSTNAME not changed
exit 0
fi

echo y > /tmp/yes
echo >> /tmp/yes

# remove certificate
ovcert -remove `ovcoreid` < /tmp/yes

# create new core id
ovcoreid -create –force

# adapt xpl conf variable OPC_NODENAME
ovconfchg -ns eaagt -set OPC_NODENAME `hostname`

# restart OM Agent
ovc -kill
ovc –start
ovagtrep -clearall

# create new certificate request
ovcert -certreq

http://www.vivit-germany.org/pdf/H210/Vivit2010_OMTipsTricks_Schmollinger_final.pdf

 

No comments:

Post a Comment