03-16-2010
The Magical Perl is... and it always surprises me.
I got an SNMP::Multi module which does just what I want. I can specify hosts and the OIDs to poll and the Multi does an snmpget to the hosts and returns the values.
I need figure if there could be any issues if my host list is exhaustive
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
There is programm of monitoring by telnet.
The main body of script is
mkfifo pipe0
telnet $host $port < pipe0 > file0 &
then after analizing of file0
printf "commands\r" > pipe0
This programm worked till then I kill pipe0 during working of programm. Now this script dont... (1 Reply)
Discussion started by: ILA
1 Replies
2. Solaris
I am looking for a dial-up remote printing solution as under :
1. We have a Centralized location where Sun Solaris (A) is installed. From here printing command will be despatched.
2. This printing command will be routed to WAN cloud to Main Branches (B1,B2,B3)and from there, printer at... (0 Replies)
Discussion started by: jayvee
0 Replies
3. AIX
peepz,
do any of you use Remote monitoring for your aix boxes??
I mean something like SNMP or third party monitoring?
I've looked some things up and this came out popular:
SNMP for AIX
NET-SNMP opensource program
Tivoli Netview Server to monitor the servers
AIX RMC
Ganglia for... (1 Reply)
Discussion started by: kvanelshocht
1 Replies
4. Shell Programming and Scripting
Hi guys i have purchased sun server for my visualization project.
Request you to help me finding the io for disk .
I have put storage(disks) on different location (File Server) and on server (Application) i have configured 4 virtual machines.
How would i monitor the io for file server from... (0 Replies)
Discussion started by: pinga123
0 Replies
5. Solaris
how to login with ssh to remote system with out applying the remote root/user password
with rlogin we can ujse .rhosts file
but with ssh howits possible
plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies
6. Shell Programming and Scripting
I m trying to run a batch script in remote desktop which executes unix commands on the unix server...the problem is i wnt the output in HTML format.so in my batch script i m giving the cmd like
ssh hostname path ksh HC_Report.ksh>out.html
...but it generates the HTML file in
remote desktop .i... (2 Replies)
Discussion started by: navsan
2 Replies
7. Shell Programming and Scripting
I am trying to cat on a file located on remote server and assign it to remote variable.
I have both local and remote variables. Running below script from local. test.sh
J_NAME=XXX2
J_IP=XXX
ssh $J_IP "ps auxw |grep java | grep -v grep |grep $J_NAME | awk '{print ... (2 Replies)
Discussion started by: oraclermanpt
2 Replies
8. Shell Programming and Scripting
Geeks,
Could you please help me out in my script and identify the missing piece. I need to check/get the exit status of a remote command executed on remote host through script and send out an email when process/processes is/are not running on any/all server(s).
Here's the complete... (5 Replies)
Discussion started by: lovesaikrishna
5 Replies
9. Shell Programming and Scripting
Hi all,
i'm trying to gether multiple pattern on remote hosts, and trying to print hostname and the pattern,
ssh remoteserver1 -C 'hostname 2>&1;cat /var/log/server1.log | awk -F ";" '"'"'{ print " "$2" "$5}'"'"'| sort | uniq -c | sort -g -r '
The output is the following,
remoteserver1
... (8 Replies)
Discussion started by: charli1
8 Replies
10. UNIX for Beginners Questions & Answers
Hi~
i have an authorized key which it made remote host(B).
i want log on without password from local(A) to the remote host(B) using authorized key of remote host.
what shell i do? anybody help me. (1 Reply)
Discussion started by: tomato00
1 Replies
LEARN ABOUT HPUX
cmvxserviced
cmvxserviced(1m) cmvxserviced(1m)
NAME
cmvxserviced - monitor VxVM and CVM volumes for a high availability package.
SYNOPSIS
cmvxserviced [-h|-v] [-O log_file] [-D log_level] [-t poll_interval] volume_path...
DESCRIPTION
cmvxserviced monitors VxVM and CVM volumes. It runs as a service within a package that depends on the monitored storage. When a monitored
volume fails or becomes inaccessible (see Scope of Monitoring), the service will exit, causing the package to fail on the current node.
The package's failover behavior depends on its configured settings.
cmvxserviced periodically probes each volume named by volume_path, which must identify a block device file.
Scope of Monitoring
The VxVM Volume Monitor detects the following failures:
o Failure of the last link to a storage device or set of devices critical to volume operation
o Failure of a storage device or set of devices critical to volume operation
o An unexpected detachment or disablement of a volume
The VxVM Volume Monitor does not detect the following failures:
o Failure of a redundant link to a storage device or set of devices if a functioning link remains
o Failure of a mirrored plex within a volume (assuming at least one plex is functional)
o Corruption of data on a volume which VxVM or CVM regards as enabled and active
Options
cmvxserviced supports the following options:
-h Displays the usage, as listed above, and exits.
-v Displays the monitor version and exits.
NOTE Do not include the -h or -v parameters in your service command; this will result in immediate package failure
at runtime.
-O log_file Specifies a file for logging (log messages are printed to the console by default).
-D log_level Specifies the log level. The level of detail logged is directly proportional to the numerical value of the log
level. That is, a log level of 7 will provide the greatest amount of log information. The default log level is 0.
-t poll_interval Specifies the interval between volume probes.
You can specify a polling interval of as little as 1 (one second), but bear in mind that a short polling interval
(less than 10 seconds) may impair system performance if you are monitoring a large number of volumes. HP recom-
mends a polling interval of at least 10 seconds if 50 or more volumes are being monitored by a single service com-
mand.
The default polling interval is 60 seconds.
EXAMPLES
/usr/sbin/cmvxserviced -O /pkg1/monlog.log -D 3 /dev/vx/dsk/cvm_dg0/lvol2
This command monitors a single volume, /dev/vx/dsk/cvm_dg0/lvol2, at log level 3, with a polling interval of 60 seconds, and prints all log
messages to the file /pkg1/monlog.log.
There should be a one to one relationship between monitoring services and log files. This provides a means to correlate log messages with
the originating monitor.
/usr/sbin/cmvxserviced /dev/vx/dsk/cvm_dg0/lvol1 dev/vx/dsk/cvm_dg0/lvol2
This command monitors two volumes at the default log level of 0, with a polling interval of 60 seconds, and prints all log messages to the
console.
/usr/sbin/cmvxserviced -t 10 /dev/vx/dsk/cvm_dg2/lvol3
This command monitors a single volume at log level 0, with a polling interval of 10 seconds, and prints all log messages to the console.
AUTHOR
cmvxserviced was developed by HP.
Requires Optional Serviceguard Software cmvxserviced(1m)