Sponsored Content
Top Forums Shell Programming and Scripting c-shell script advice please. Post 52481 by killerserv on Sunday 20th of June 2004 02:51:47 AM
Old 06-20-2004
Hi RTM,
thanx for the reply. Actually this is a Linux platform. bnstat is a program that been programed for this Linux OS. We have more then 900+ Servers in our Data Farm running and executing massive numbers of Scripts for Using Parallel Processing Technic (Utilizing Entire Block of the Processor to this execution). The problem started from this point. By utilizing complete function of the processor this makes some of the Server less stable. So i create a script as above to capture which machine died and send me the output in real time. All this machine have bnstat running so if the Server died this will trigger me and alert thru mail. Btw, bnstat's function is like a middle man, to notify me if any of the server died from processing the correct calculation.

For the question that i posted:

Quote:

My Question, is there a way to change the script so that i can have a subject and the output.. Instead of the above dull look.

Ex:
blablaABC:
flsx0322 D (Varcon server not reachable OR Machine is down)

blablaDEF:
flsx4149 D (Varcon server not reachable OR Machine is down)

blablaGHI:
flvs8059 D (Varcon server not reachable OR Machine is down)
ignore the blablaABC etc, i just put it as an example. Im wondering if i could put a subject on that portion.

Something like:

GPD_VSLinux:
The output...................

GPD_VSLinux_test:
The output....................

GPD_Linux7:
The output....................

gnp_iAlinux:
The output....................

GPN_Linux:
The output....................
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

first script. need help and advice.

Hello everyone, This is my first post here and this is the first time I am using UNIX OS (Slackware). I find it really useful and powerful and would like to master it but as you may guess I am expreicing quite a few problems. I've been reading a few documentations about it and bash this week... (17 Replies)
Discussion started by: sanchopansa
17 Replies

2. Shell Programming and Scripting

Script Advice please?

Ok. I want to parse a log file and search only for denied traffic for the previous hour. The log looks like this: Jun 18 17:47:56 routername 36806: Jun 18 17:53:01.088: %SEC-6-IPACCESSLOG: list ingress-filter denied tcp 1.2.3.4(1234) -> 6.7.8.9(53), 4 packets I only really care about the... (12 Replies)
Discussion started by: earnstaf
12 Replies

3. Shell Programming and Scripting

advice on shell script

Hello, I have this script running on cron every 20 minutes. By 12pm daily, our system is expecting all input files to be uploaded by the script. After this cutoff time, the script would still be running though, but i need some kind of alerts/logs to know which input files weren't received for... (1 Reply)
Discussion started by: gholdbhurg
1 Replies

4. UNIX for Dummies Questions & Answers

shell scripting help/advice

hello i am trying to generate a list of the most bandwidth consuming ip's from an Apache style log file. the script is run with the path to the log file as the only peramater. here is my code so far: echo "The ten most bandwidth consuming IP's were:" $outpt='' for ip in $(awk '{print $1}'... (4 Replies)
Discussion started by: qcent
4 Replies

5. UNIX for Advanced & Expert Users

Career advice for experienced shell script coder, need help.

I have four years of shell scripting experience in AIX and HP-UX and have worked in perl scripts as well, the good part is i love scripting and so far i have been getting job offers as well. The bad part is , shell scripting is all i know , so the kind of jobs i am getting is mostly production... (2 Replies)
Discussion started by: harishrao
2 Replies

6. Shell Programming and Scripting

Advice on script

Hi folks, I use following script:- #!/bin/sh # cd Linbread TODAY=`date +"%m%d"` DATA=`grep $TODAY linbread.dat` HOUR=`date +"%H"` if then TOD="Morning" elif then TOD="Afternoon" else TOD="Evening" fi echo $DATA | gawk -F"|" '{printf("%s\n\n%s",$2,$3)}' > $$tmp fold -s -w60... (0 Replies)
Discussion started by: satimis
0 Replies

7. UNIX for Dummies Questions & Answers

Few shell programs advice

Hy i have some tasks to do in school but i'm having problems with it,so could you help me out? :) first there is a task where i have to find a running program on the system and kill it, then repeat that every 5 minutes. The name of the process is given with an argument. I have done this so far,... (1 Reply)
Discussion started by: petel1
1 Replies

8. Shell Programming and Scripting

Advice required shell script

Hi all, this is my first post, so please be gentle... I have a situation wherby I need a script that traverses known paths. Check for the modified date (n days) and then deletes all subdirs. I have come up with this hotch potch, but as far as I can tell it seems to work. What I am wondering... (4 Replies)
Discussion started by: primus7
4 Replies

9. Shell Programming and Scripting

Help! Basic shell script advice

##### (2 Replies)
Discussion started by: AidoPotato
2 Replies

10. Shell Programming and Scripting

Script advice

All I have 2 parent directories - input and output. Each parent has multiple sub-directories...each sub-directory has multiple files. Each parent directory structure is a mirror image of itself I need to poll the imput directory and if a new file is found, encrypt the file, move the file to... (2 Replies)
Discussion started by: davidra
2 Replies
VOLDUMP(8)						       AFS Command Reference							VOLDUMP(8)

NAME
voldump - Dump an AFS volume without using the Volume Server SYNOPSIS
voldump -part <partition> -volumeid <volume id> [-file <dump file>] [-verbose] [-help] voldump -p <partition> -vo <volume id> [-f <dump file>] [-ve] [-h] DESCRIPTION
voldump dumps an AFS volume in the format used by vos dump without using the Volume Server. It must be run on the file server machine and usually must be run as the superuser "root" to have permissions to read the file server data. It's primary use is to recover data from a file server machine where the Volume Server cannot be started for some reason. The dump output will go to standard output, or to a file if -file is specified. vos restore can be used to load the resulting dump into a new AFS volume. voldump always does a full dump. CAUTIONS
Normally, use vos dump instead of this command. voldump is a tool of last resort to try to extract data from the raw data structures stored on the file server machine and is not as regularly tested or used as the normal vos dump implementation. If the AFS volume being dumped changes while voldump is running, the results may be inconsistent. If the File Server and Volume Server are running, stop them with bos shutdown or a similar method before running this command. OPTIONS
-part <partition> Names the partition on which the volume to be dumped is located. voldump does not take the normal full range of ways of specifying a partition. Instead, partition must be either a single letter between "a" and "z", corresponding to /vicepa through /vicepz, or the full path to the file server partition. "aa" is not recognized; use /vicepaa instead. -volumeid <volume id> Specifies the ID of the volume to dump. The volume must be specified by numeric ID, not by name. -file <dump file> Specifies the output file for the dump. If this option is not given, the volume will be dumped to standard output. -verbose Asks for a verbose trace of the dump process. This trace information will be sent to standard error. EXAMPLES
The following command dumps the volume 1936964939 on the /vicepb partition to the file /tmp/volume.dump: % voldump -part /vicepb -volumeid 1936964939 -file /tmp/volume.dump PRIVILEGE REQUIRED
The issuer must have read access to the file server data stored in the specified partition. Usually, this means that the issuer must be the local superuser "root" on the file server machine. SEE ALSO
bos_shutdown(8), restorevol(1), volserver(8), vos_dump(1), vos_restore(1) COPYRIGHT
Copyright 2005 Russ Allbery <rra@stanford.edu> This documentation is covered by the IBM Public License Version 1.0. This man page was written by Russ Allbery for OpenAFS. OpenAFS 2012-03-26 VOLDUMP(8)
All times are GMT -4. The time now is 03:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy