Sponsored Content
Top Forums Shell Programming and Scripting Monitoring a file - Basic Bash Question Post 302414731 by Nolan- on Tuesday 20th of April 2010 10:59:01 PM
Old 04-20-2010
Thanks man it works!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

basic question

hey...when i type who...what does "pts" field mean??? eg pts 0 etc (1 Reply)
Discussion started by: urwannabefriend
1 Replies

2. UNIX for Dummies Questions & Answers

Really basic question....

Hello all. Let me start off by saying I know a little more then it seems by me asking this question... here goes I have an old 486 box and I want to start messing around with unix. I've been taking classes for 3 or 4 years in c programming in unix, so I am used to the commands and such, but I... (1 Reply)
Discussion started by: robherms
1 Replies

3. Shell Programming and Scripting

Basic bash 'for loop' usage

Hi! I have a simple question about using a for loop. I'm trying to open up all the zip files in the currect directory with ark, but I am getting the error "bash: syntax error near unexpected token `for $i ; do ark $i ; done ; I looked in the info pages for bash, but I can't seem to figure... (2 Replies)
Discussion started by: Orange Stripes
2 Replies

4. UNIX for Dummies Questions & Answers

Basic Unix bash script help

Hello there Been using Unix bash scripting for two days now so am very new to this. I am currently doing a project now and i'm basically making a noughts and crosses game (or tic tac toe). I have created the board using an array. When I try and check to see if the array is empty using an If... (3 Replies)
Discussion started by: ChrisHoogie
3 Replies

5. Solaris

basic question on sd.conf and lpc.conf file

Hello Guys, Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies

6. UNIX for Dummies Questions & Answers

Basic file processing question

I have a csv file with 3 columns. Column 1 is a date "mm/dd/yyyy", column 2 is a dollar amount (e.g. "100.00") & column 3 in a description of where the transaction took place (e.g. "CHECK CRD PURCHASE 10/07 ACME INC USA") so... "10/01/2009","100.00", "CHECK CRD PURCHASE 10/07 ACME INC USA" I... (1 Reply)
Discussion started by: watingo
1 Replies

7. Shell Programming and Scripting

Basic line reading and file merge question

No doubt these questions have been answered many times, but I struggled to find them - sorry. 2 questions: 1. I wish to read in a file one line at a time and do 'stuff' with it, such as: file="tst2" while IFS= read -r line do echo `wget -qO -... (3 Replies)
Discussion started by: Golpette
3 Replies

8. Shell Programming and Scripting

Basic bash, echo in loop for

Hi, I am trying to make a script to manage log. I want to write the name of the .gz I moved and the date : for i in `ls $replog/*.gz` do echo " $i " `echo $i date +%d:%m:%Y` `echo $datee `>> $replog/mrnet.log mv $i /var/log/vieux-logs done I need to echo... (10 Replies)
Discussion started by: Dabless
10 Replies

9. Shell Programming and Scripting

Help in making a basic bash script

Hi All, I am trying to monitor CPU load of few processes, with the same name. The output that I get from top is the following 28171 root 20 0 1089m 21m 3608 S 103 0.3 15:16.89 /opt/ppp//h264rtptranscoder.bin --videoPort=14504 --audioPort=14505 27589 root 20 0 1060m 23m... (3 Replies)
Discussion started by: liviusbr
3 Replies

10. Solaris

Basic question regarding root file system copy to another disk

Hello, I am creating a new disk using the following command: dd if=/dev/zero of=/export/home/ramdisk/0 bs=512 count=4096k after creating the disk, i tool a ufsdump of a solaris 10 filesytem (disk size 512MB) ufsdump -cvf /export/home/ufsdump/sol_orig /and then restored the dump files onto... (10 Replies)
Discussion started by: Zam_1234
10 Replies
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)
All times are GMT -4. The time now is 11:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy