Vous êtes sur la page 1sur 2

cp openmotif-2.3.3-9.el6.x86_64.

rpm /hcl
cp libXp-1.0.2-2.1.el6.x86_64.rpm /hcl

yum install openmotif.x86_64

10.96.10.34 mv-p-ovo-m1a-dc.uppclonline.com mv-p-ovo-m1a-dc

cd /hcl/Software_HP_Operations_Agent_v11.14_Linux_ISO_TC097-15043/
./oainstall.sh -i -a -minprecheck
cd /opt/OV/bin/OpC/install/

./oasetup.sh -configure -management_server MV-P-OVO-M1A-DC.uppclonline.com


-certificate_server MV-P-OVO-M1A-DC.uppclonline.com

/opt/OV/bin/ovcert -certreq

/opt/OV/bin/ovcert -list

=================================================

[root@reportdb hcl]# cat test.sh


#! /bin/bash
printf "Memory\t\tCPU\n"
end=$((SECONDS+3600))
while [ $SECONDS -lt $end ]; do
MEMORY=$(free -m | awk 'NR==2{printf "%.2f%%\t\t", $3*100/$2 }')
CPU=$(top -bn1 | grep load | awk '{printf "%.2f%%\t\t\n", $(NF-2)}')
echo "$MEMORY$CPU"
sleep 2
done
[root@reportdb hcl]# cat mem.sh
#! /bin/bash

# Total memory space details

echo "Memory Space Details"


free -t -m | grep "Total" | awk '{ print "Total Memory space : "$2 " MB";
print "Used Memory Space : "$3" MB";
print "Free Memory : "$4" MB";
}'

echo "Swap memory Details"


free -t -m | grep "Swap" | awk '{ print "Total Swap space : "$2 " MB";
print "Used Swap Space : "$3" MB";
print "Free Swap : "$4" MB";
}'
[root@reportdb hcl]# ./test.sh
Memory CPU
98.85% 1.35%
98.85% 1.32%
98.85% 1.32%
98.85% 1.30%
^C
[root@reportdb hcl]# ./mem.sh
Memory Space Details
Total Memory space : 259922 MB
Used Memory Space : 127363 MB
Free Memory : 132559 MB
Swap memory Details
Total Swap space : 131071 MB
Used Swap Space : 0 MB
Free Swap : 131071 MB
[root@reportdb hcl]#

Vous aimerez peut-être aussi