check health


 
Thread Tools Search this Thread
Operating Systems HP-UX check health
# 1  
Old 08-27-2006
check health

Dear Gentelmen

I need command for display to me the following statement:

-battery state
-The application if working or not
-The cpu is working or not
-The power supply is working or not
-The Data base is workig or not
# 2  
Old 08-28-2006
Quote:
Originally Posted by magasem
Dear Gentelmen

I need command for display to me the following statement:

-battery state
The battery state on what? External hardware? AIX's ssa's have cache batteries as do Solaris' ssa's. Is that what you mean?

Quote:
-The application if working or not
Which application?

Quote:
-The cpu is working or not
-The power supply is working or not
Not an HP guy, but getconf or machinfo might help as might ioscan.

Quote:
-The Data base is workig or not
As as above. What database? mysql? For the app question plus the database one, you can run a ps command (ps -ef on most systems; on my openbsd box I have to use ps-aux) and see if the application/database is in the process stack. If the app is running, you can see if you can access it. Run netstat -a to see if the app is listening on the expected port. Telnet to the port and see if you're getting a banner. Run an sql query to the database and see if you can get some data back.

Carl
# 3  
Old 08-28-2006
re

-Regarding the battary,I need the external hardware .
-Regarding the application I need command to check on application if it working or no
I used this command ps -ef

UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 May 29 ? 3:55 swapper
root 8 0 0 May 29 ? 0:00 supsched
root 9 0 0 May 29 ? 0:00 strmem
root 10 0 0 May 29 ? 0:00 strweld
root 11 0 0 May 29 ? 0:00 strfreebd
root 2 0 0 May 29 ? 0:37 vhand
root 3 0 0 May 29 ? 24:47 statdaemon
root 4 0 0 May 29 ? 1:39 unhashdaemon
root 12 0 0 May 29 ? 0:00 ttisr
root 13 0 0 May 29 ? 0:11 ioconfigd
root 1 0 0 May 29 ? 0:00 init
root 19 0 0 May 29 ? 0:21 lvmkd
root 20 0 0 May 29 ? 0:21 lvmkd
root 21 0 0 May 29 ? 0:21 lvmkd
root 22 0 0 May 29 ? 0:21 lvmkd
root 23 0 0 May 29 ? 0:21 lvmkd
root 24 0 0 May 29 ? 0:21 lvmkd
root 25 0 0 May 29 ? 0:00 lvmschedd
root 26 0 0 May 29 ? 0:00 smpsched
root 27 0 0 May 29 ? 0:00 smpsched
root 28 0 0 May 29 ? 0:00 smpsched
root 29 0 0 May 29 ? 0:00 smpsched
root 30 0 0 May 29 ? 0:00 smpsched
root 31 0 0 May 29 ? 0:00 smpsched
root 32 0 0 May 29 ? 0:00 smpsched
root 33 0 0 May 29 ? 0:00 smpsched
root 34 0 0 May 29 ? 0:00 sblksched
root 35 0 0 May 29 ? 0:00 sblksched
root 2023 1 0 May 29 console 0:00 /usr/sbin/getty console console
root 1264 0 0 May 29 ? 0:00 nfskd
root 60 1 0 May 29 ? 0:28 /etc/emcpdaemon
root 41 0 0 May 29 ? 342:49 vxfsd
root 61 0 0 May 29 ? 0:00 emcpProcd
root 62 0 0 May 29 ? 3:28 emcpd
root 63 0 0 May 29 ? 0:00 emcpdfd
root 64 0 0 May 29 ? 4:11 emcpwdd
root 65 0 0 May 29 ? 0:00 emcpstratd
root 66 0 0 May 29 ? 0:00 MpAsyncIoDaemon
root 67 0 0 May 29 ? 0:00 MpTestDaemon
root 68 0 0 May 29 ? 0:00 MpPirpNotDoneDaemon
root 69 0 0 May 29 ? 16:28 MpPeriodicDaemon
root 70 0 0 May 29 ? 0:00 MpDeferredDaemon
root 71 0 0 May 29 ? 0:00 MpcAsyncIoDaemon
root 72 0 0 May 29 ? 0:00 MpcResumeIoDaemon
root 73 0 0 May 29 ? 0:09 MpcPeriodicCallbackDaemon
root 74 0 0 May 29 ? 0:00 MpcGrDaemon
root 75 0 0 May 29 ? 0:00 MpcDispatchDaemon
root 76 0 0 May 29 ? 0:00 MpaaAsyncIoDaemon
root 77 0 0 May 29 ? 0:00 MpaaTestDaemon
root 78 0 0 May 29 ? 0:00 MpaaPirpNotDoneDaemon
root 79 0 0 May 29 ? 0:08 MpaaPeriodicDaemon
root 80 0 0 May 29 ? 0:00 MpaaDeferredDaemon
root 81 0 0 May 29 ? 0:00 SapiDaemon
root 82 0 0 May 29 ? 0:00 CgDaemon
root 83 0 0 May 29 ? 0:57 io_op_record_daemon
root 84 0 0 May 29 ? 0:00 generic_io_daemon
root 85 0 0 May 29 ? 0:00 evmmirr
root 1723 1 0 May 29 ? 0:00 /usr/sbin/cron
root 2034 1 0 May 29 ? 0:46 /opt/wbem/sbin/cimserverd
root 1751 1 0 May 29 ? 3:24 /usr/sbin/stm/uut/bin/sys/diagmond

I didn't understand what this result,please explaine more ?

-Also,I need command for error logs for : cpu failure.
-My database Is oracle.
-There is command name is top this command show me the cpu work or not please show me that if you can.
- vgdisplay -v vg00
please tell me Which the benefit from this command?



looking forward to yuor urgent response.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

AIX Health Check

Hi everyone, I am new to the Unix admin position, needed some help. My management wants to report how their over all AIX servers / environment is doing so far. I've been researching and found multiple commands to run on each LPAR, well I have few questions and also wanted to share the commands Im... (12 Replies)
Discussion started by: Adnans2k
12 Replies

2. Shell Programming and Scripting

Health check report

Hi Team, I am writing a small script in that I want collect all servers of /opt and /stage. Below is my small script #!/bin/ksh #checking Media server opt_Disk_Space_logs myclient=`cat media_server.txt` > opt_logs.txt printf " Server Name\tsize\tused\tavail\tcapacity\tMounted... (12 Replies)
Discussion started by: bashi77
12 Replies

3. Shell Programming and Scripting

Script to check the health of a database

need a script to check the health of a session server database. It must read the data base and send an alert if the database is unavailable. If its unavailable, we will want to bring down the database listener to force failover. can u guyz help me in doing this. what information do i need... (1 Reply)
Discussion started by: remo999
1 Replies

4. HP-UX

HP-UX Health Check

Hi Experts, I want to check health of hp-ux box. Basically I want to check if there are possibilities of network/memory/cpu bottleneck? Are there are any commands available other than glance in hp-ux for the same? (11 Replies)
Discussion started by: sai_2507
11 Replies

5. Shell Programming and Scripting

Health check script

There are 3 servers . I want to fire commands df -kh and mpstat -P ALL on those individual servers and retrieve particular values to genrate reports. This part is almost done. But i am facing issue when i need to compile the reports from all three servers on to one server in order to generate a... (1 Reply)
Discussion started by: pratikm23
1 Replies

6. AIX

AIX Health Check script

Hi Everyone, Can you please help me put together a aix health check script that will check the status of CPU,Memory,Adapter, Filesystems (threshold 80%) and Disks.Im thinking of deploying a script to gather the required data in all the 22 servers and probably send out a mail if anything needs... (3 Replies)
Discussion started by: R!C
3 Replies

7. Shell Programming and Scripting

Health check script

Hi, I have a server type(A group of AIX,HP-UX and Linux servers running with different appn) in which i need to do health check(memory,cpu,h/w etc). I am planning to automate the same. Please help me out in writing the same. Thanks Renjesh Raju (9 Replies)
Discussion started by: Renjesh
9 Replies

8. Solaris

sun server health check

do anybody has a procedure for daily weekley monthly health check for SUN server with solaris OS?? (5 Replies)
Discussion started by: mm00123
5 Replies

9. AIX

AIX Health Check

Hi All, I would like to know if there is a downloadable AIX health check script available from IBM that would print a report of a servers health status. I've been working on a number of Sun Solaris servers and Sun provide a sun checkup script which can give you an ORI figure as well as a list... (3 Replies)
Discussion started by: backslash
3 Replies
Login or Register to Ask a Question