03-28-2012
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 final report . How can i send a particular report generated on different servers to a single server and append them ?
10 More Discussions You Might Find Interesting
1. HP-UX
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 Replies)
Discussion started by: magasem
2 Replies
2. Shell Programming and Scripting
I am working on a project, which need to constantly watch the process, and check its status, if it was dead, it should be restart automatically.
Please kindly refer me to URL which teach how to write this kind of script, or service.
Thanks. (1 Reply)
Discussion started by: dragondad
1 Replies
3. AIX
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
4. Shell Programming and Scripting
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
5. AIX
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
6. HP-UX
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
7. Shell Programming and Scripting
Hi
I am still learning how to write shell scripts, so I started to write a script like this:
#!/bin/sh
date
echo
outputOK () {
echo $1 ""
}
outputOK () {
echo $1 ""
}
for vol in `/usr/bin/grep -E 'hfs|vxfs|nfs|cifs' /etc/fstab | egrep -v '^#' | awk '{ print $3 }'`
do
if... (7 Replies)
Discussion started by: fretagi
7 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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
10. AIX
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
LEARN ABOUT OPENSOLARIS
nisstat
nisstat(1M) System Administration Commands nisstat(1M)
NAME
nisstat - report NIS+ server statistics
SYNOPSIS
/usr/lib/nis/nisstat [-H host] [directory]
DESCRIPTION
The nisstat command queries a NIS+ server for various statistics about its operations. These statistics may vary between implementations
and from release to release. Not all statistics are available from all servers. If you request a statistic from a server that does not sup-
port that statistic, it is never a fatal error. The message "unknown statistic" is returned.
By default, statistics are fetched from the server(s) of the NIS+ directory for the default domain. If directory is specified, servers for
that directory are queried.
Supported statistics for this release are as follows:
root server This reports whether the server is a root server.
NIS compat mode This reports whether the server is running in NIS compat mode.
DNS forwarding in NIS mode This reports whether the server in NIS compat mode will forward host lookup calls to DNS.
security level This reports the security level of this server.
serves directories This lists the directories served by this server.
Operations This statistic returns results in the form: OP=opname:C=calls:E=errors:T=micros Where opname is replaced by
the RPC procedure name or operation, calls is the number of calls to this procedure that have been made since
the server started running. errors is the number of errors that have occurred while processing a call, and
micros is the average time in microseconds to complete the last 16 calls.
Directory Cache This statistic reports the number of calls to the internal directory object cache, the number of hits on that
cache, the number of misses, and the hit rate percentage.
Group Cache This statistic reports the number of calls to the internal NIS+ group object cache, the number of hits on
that cache, the number of misses, and the hit rate percentage.
Static Storage This statistic reports the number of bytes the server has allocated for its static storage buffers.
Dynamic Storage This statistic reports the amount of heap the server process is currently using.
Uptime This statistic reports the time since the service has been running.
Per-server and per-directory access restrictions may apply. See nisopaccess(1). nisstat uses NIS_STATUS.
OPTIONS
-H host Normally all servers for the directory are queried. With this option, only the machine named host is queried. If the named
machine does not serve the directory, no statistics are returned.
ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ directory name is not fully qualified, each directory specified will be searched until
the directory is found. See nisdefaults(1).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
nisdefaults(1), nisopaccess(1), attributes(5)
NOTES
NIS+ might not be supported in future releases of the Solaris Operating system. Tools to aid the migration from NIS+ to LDAP are available
in the current Solaris release. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.11 12 Dec 2001 nisstat(1M)