Thursday, 28 May 2015

HP OMU OML: show list of coreid for all nodes

Show list of coreid for all nodes from database OM:

#!/bin/sh
for i in  `/opt/OV/bin/OpC/utils/opcnode -list_nodes |grep Name|awk '{print($3)}'`
do
       /opt/OV/bin/OpC/utils/opcnode -list_id node_name=$i >> coreid_all.txt
done

Show list of coreid for all nodes from nodes:

#!/bin/sh
for i in  `/opt/OV/bin/OpC/utils/opcnode -list_nodes |grep Name|awk '{print($3)}'`
do
       echo "$i \n" >> coreid_nodes.txt
       /opt/OV/bin/ovdeploy -ovrg server -cmd "ovcoreid" -host $i >> coreid_nodes.txt
done

Tuesday, 26 May 2015