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

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

Which application?

Not an HP guy, but getconf or machinfo might help as might ioscan.

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

-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.