Sponsored Content
Full Discussion: Sar and mail
Top Forums Shell Programming and Scripting Sar and mail Post 73383 by ST2000 on Tuesday 31st of May 2005 04:59:43 PM
Old 05-31-2005
Sar and mail

I am generating a SAR output file every minute for 8 hours to stress test the box. Whenever i hit %idle less than 20.00, I need to grep for it and send an email or send a page. How would i write a shell script for this?

Thanks, ST2000
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

sar

We have a script that uses sar -u 1 10 | awk '/Average/ { print ( $2 + $3 ) }' to get the CPU usage of a mutli engine machine. We think we are getting wrong information from the above string. We think it is adding up the total of the 12 engines and reporting back the total not the overall... (5 Replies)
Discussion started by: kevinb
5 Replies

2. AIX

error with sar

hello when i want to launch tha sar command with some arguments, i have this message : sar -mu -P ALL sar: 0551-201 Cannot open /var/adm/sa/sa08. sar: 0551-213 Try running /usr/lib/sa/sa1 <increment> <number> if I look in /var/adm/sa, there is nothing, no file. the sar 2 5 is available.... (2 Replies)
Discussion started by: pascalbout
2 Replies

3. UNIX for Advanced & Expert Users

sar error

at work i have a HP-UX box. i attempt to use sar to monitor but it comes up with following message: can't open /var/adm/sa/sa13 i recreated the file as i thought that was the problem but it was not. cheers hush (2 Replies)
Discussion started by: hu$h
2 Replies

4. HP-UX

Sar

Hey guys in sar -v 5 5 command what is the proc means. (1 Reply)
Discussion started by: sbn
1 Replies

5. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

6. AIX

sar

I am trying to set up sar on my AIX server. We have been running sar and getting reports on out Linux boxes in the past but would like to try to do the same in AIX. On my Linux i have a sar.sh that looks like this: #!/bin/bash LC_ALL=C sar -A -f /var/log/sa/sa27 > /server023.txt LC_ALL=C sar -A... (1 Reply)
Discussion started by: seacros
1 Replies

7. AIX

SAR

I am running below script to display last 48 hour data but the output is not displaying heading - AIX eqrdb26u1 1 6 00CFD5E34C00 01/21/10 System configuration: lcpu=8 ent=2.00 mode=Uncapped 22:31:40 %usr %sys %wio %idle physc %entc and footer - Average 25 9 ... (1 Reply)
Discussion started by: noorm
1 Replies

8. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

9. UNIX for Advanced & Expert Users

Sar during a test

Hi All, I am trying to run sar on a Redhat server during a test I am performing for a couple of hours. I would like to get the sar metrics for every second (instead of the regularly set up 10 minute interval in the cron). What is the most efficient way to do this? Thanks, Shahzad (6 Replies)
Discussion started by: sleo
6 Replies

10. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
finger(1)						      General Commands Manual							 finger(1)

NAME
finger - user information lookup program SYNOPSIS
[options] user_name ... DESCRIPTION
By default, lists for each user_name on the system: o Login name, o Full given name, o Terminal write status (if write permission is denied), o Idle time, o Login time, o User's home directory and login shell, o Any plan the user has placed in file in their home directory, o Project on which they are working from the file also in the home directory, o office location and phone number (if known), o last time the user received the mail, and last time the user read the mail. Idle time is in minutes if listed as a single integer, hours and minutes if a is present, or days and hours if a is present. Account names as well as first and last names of users are accepted. can also be used to list users on a remote machine. The format for user_name is user_name@host. If user_name is not specified, the remote system (HP-UX or non-HP-UX) uses its default standard format for listing user information. Options recognizes the following options: Suppress printing the user's home directory and shell. Suppress printing the header that is normally printed in a short-format printout. Suppress printing the file in a long-format printout. Force ``idle'' output format. Similar to short format except that only the login name, terminal, login time, and idle time are printed. Force long output format. Match arguments only on user name. Suppress printing of the files Force quick output format. Similar to short format except that only the login name, terminal, and login time are printed. Print the user's host name. Force short output format. Suppress printing the full name in a short-format printout. WARNINGS
Only the first line of the file is printed. AUTHOR
was developed by the University of California, Berkeley. FILES
who file last login file for users names, offices, ... plans projects mail directory SEE ALSO
chfn(1), who(1), utmpd(1M). finger(1)
All times are GMT -4. The time now is 03:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy