Operating System - Linux
1755385 Members
5160 Online
108832 Solutions
New Discussion юеВ

Re: Script require to maintain hp9000 L-Class

 
hp-ux_2
Occasional Advisor

Script require to maintain hp9000 L-Class

Hu Guys,

Can anybody tell me if i am having 12 Nos of HP9000 L-Class servers.
please tell me sitting one single server, if i want to monitor memory, cpu and swap of all the server what script i should usr and what is syntax.

Thanks in advance.
Anit Jha
7 REPLIES 7
Devender Khatana
Honored Contributor

Re: Script require to maintain hp9000 L-Class

Hi,

A few clarification here will be required.

1. Are all your servers on the same subnet?

2. Is there rlogin configured among these servers?

If the answer for these question is yes, you can use remsh command for executing on other server to find out the details. You can also scriptize this to redirect outputs to a file automatically. It should be something like this

#remsh host1 /usr/sbin/ioscan -fnC processor

#remsh host1 /usr/sbin/dmesg |grep -i phy

#remsh host1 /usr/sbin/swapinfo -atm

#remsh host1 /bin/bdf

Then repeat all steps for other hosts.

HTH,
Devender
Impossible itself mentions "I m possible"
Joseph Loo
Honored Contributor

Re: Script require to maintain hp9000 L-Class

hi,

if your company have a data center, it usually uses some management software, e.g. HP Openview, IBM Tivoli, etc, to manage the servers. if u do not find the $$$, then the script provided in your previous thread will do.

however, if u like to try the management software from HP:

http://www.managementsoftware.hp.com/products/ovowin/index.html

regards.
what you do not see does not mean you should not believe
hp-ux_2
Occasional Advisor

Re: Script require to maintain hp9000 L-Class

hi Devender,

yes all servers are on same subnet, please tell me single script to run all the commands and get the output in single file.
hp-ux_2
Occasional Advisor

Re: Script require to maintain hp9000 L-Class

Hi Devender,

i am awaiting your reply.
Devender Khatana
Honored Contributor

Re: Script require to maintain hp9000 L-Class

Hi,

The guidelines has already been given. You need to create script yourself as per the local details available. Make it something like this

=====================
#!/bin/sh
for i in host1 host2 host3 host4 host5 ... ....
do
remsh $i /usr/sbin/dmesg >>/path/log_filename
remsh $i /usr/sbin/bdf >>/path/log_filename
..
..
..
..
done

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

HTH,
Devender
Impossible itself mentions "I m possible"
hp-ux_2
Occasional Advisor

Re: Script require to maintain hp9000 L-Class

Hi Devender,

if my output log file name is anit.log, than please give me complete syntax in detail.
My servers host name is cwc, nafed,guj,rajesh and sybase

please write and send me complete script to monitor all servers in single file (anit.log).
hp-ux_2
Occasional Advisor

Re: Script require to maintain hp9000 L-Class

Hi Devender,
Please reply me