Compare 2 files with different keywords : use server health-check tool
I have two files to be compared to get the output of the differences.
File1 has a lot more lists than File2.
After searching a lot on this thread I'am unable to find the exact code that im willing to get.
This will be used as 'pre-check'/post-check utility (health check Tool) to compare some OS processes post server reboot activities.
- I need to know if DISK or DATABASES are not up as compared to File A. The output file will show "WARNING" .
- If the DISK and DATABASE match in both the files, It will simply show "SUCCESS"
My requirement is to differentiate the keywords (like available disks, OS processes) from File1 to File2 and get output in another file if the required keyword doesnt match.
We are able to get the output of various component (database and Disks )in different files.
I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment?
Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server?
I searched on site before posting, but... (2 Replies)
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)
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)
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)
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)
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)
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)
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)
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)