Search Results

Search: Posts Made By: orafup
3,646
Posted By orafup
i would like to change little bit. Please see...
i would like to change little bit. Please see below
#!/bin/sh

HOSTNAME=`uname -a`
MYMAIL="orafup@mymail.com"
EMCSTATUS=/tmp/prog$$

powermt display dev=all|awk ' {print $7}'|grep -c dead >...
22,667
Posted By orafup
send mail script only if condition is met
only wc -l greater than 0 then send email to owner, otherwise do nothing.

ie.

result=powermt display dev=all|awk '{print $7}'|grep -i dead|wc -l

if [ $result -gt 0 ]
then
echo...
3,646
Posted By orafup
#!/bin/sh HOSTNAME=`uname...
#!/bin/sh
HOSTNAME=`uname -n`;MYMAIL='yourmail@yourdomain';TEMPF=/tmp/prog$$
powermt display dev=all|awk '/Pseudo name/{print substr($0,13,length($0))}'|
while read -r dev;do if [[ $(powermt...
3,646
Posted By orafup
Solaris Server dectects EMC dead path and send mail immediately
taus-itcapp1#powermt display dev=all

Pseudo name=emcpower0a

CLARiiON ID=APM00105201788 [Sol_Taus_itcapp1]

Logical device ID=60060160B2202B001094F0E0AF5CE011 [SolDA_Taus_itcapp1_data]
...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy