We won't be able to write the entire script for you. We will give the key idea and you can develop on it.
First executing a command in the remote server.
To avoid typing password, you can use ssh keys.
Sending mails can be done using mailx command or anyother mail utilities. First of all, you try to get the information from all your servers.
1. make a text file which will have list of the servers.
2. Try to establish ssh key authentication between your machine to all servers.
3. Loop through the server list and execute the ssh command and store the output in a file.
4. Mail the file.
This User Gave Thanks to kumaran_5555 For This Post:
Hi,
In Sun solaris o/s how can i find the memory space available,Swap space.
By giving df command i can get the disc space.
I want RAM space & swap space.
If anybody assist me.that is great.
Thanks (2 Replies)
Hi, Gurus:
I need your help to finish a script that will mount two file systems automatically when saver is reboot or start.
I am working on a new Sun Sparc machine with Solaris 9 on it. This box got two disk. disk one has been partitioned to hold Solaris OS. disk two has been partitioned as... (6 Replies)
Hi All,
My below shell script is not capturing %used value in the filesystem alert in the subject of the mail alert:
#!/bin/bash
export DBALIST="abc@xyz.com"
df -k /oradata/xyz/archive > dfk.result
archive_capacity=`awk -F" " '{ print $5 }' dfk.result|grep -i %| cut -c 1-4`
if ]
then... (5 Replies)
Hi,
I would like to know how to find out disk capacity if it is assigned from the storage as a lun.
as per below command , I am unable to find out disk capacity.
$ bash
bash-3.00$ lspv
hdisk1 0001579a7fa3c086 None
$ lscfg -vl hdisk1
hdisk1 ... (8 Replies)
Hi,
I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local.
Please tell me the commands which I can run... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
I am pretty close I think, but stuck. I don't know how to send an email to the user specified on the command line, and I receive an error stating -ge expecting a unary value(lines... (14 Replies)
Hi.....
Thanks for this wonderful forum....
My request:
I have toatally 5 unix servers in which many applications are working
I need to set a trap to identify 0 byte files if any are created proactively.
For example:
find /apps/fresco/ -mtime 1 -size 0c –print >>... (3 Replies)
Hi All,
My below shell script is not capturing %used value in the filesystem alert in the subject of the mail alert:
Code:
#!/bin/bash
export DBALIST="abc@xyz.com"
df -k /oradata/xyz/archive > dfk.result
archive_capacity=`awk -F" " '{ print $5 }' dfk.result|grep -i %| cut -c 1-4`
if... (6 Replies)
Hello all,
I have a task to patch red hat servers and some servers have a corrupted rpm database and return the error:
Error: rpmdb open failed
I know how to fix this when it occurs. What I'm hoping to do is scan a list of servers by IP and report back which server have this error.
... (6 Replies)
Discussion started by: greavette
6 Replies
LEARN ABOUT OPENSOLARIS
upsimage.cgi
UPSIMAGE.CGI(8) NUT Manual UPSIMAGE.CGI(8)NAME
upsimage.cgi - Image-generating helper for upsstats.cgi
SYNOPSIS
upsimage.cgi
Note
As a CGI program, this should be invoked through your web server. If you run it from the command line, it will either complain about
unauthorized access or spew a PNG at you.
DESCRIPTION
upsimage.cgi generates the graphical bars that make up the right side of the page generated by upsstats.cgi(8). These represent the current
battery charge, utility voltage, and UPS load where available.
The images are in PNG format, and are created by linking to Boutell's excellent gd library.
ACCESS CONTROL
upsstats will only talk to upsd(8) servers that have been defined in your hosts.conf(5). If it complains about "Access to that host is not
authorized", check that file first.
FILES hosts.conf(5)SEE ALSO upsd(8), upsstats.cgi(8)
Internet resources:
The gd home page: http://www.boutell.com/gd/
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/22/2012 UPSIMAGE.CGI(8)