Search Results

Search: Posts Made By: arch12
5,282
Posted By arch12
yes did but i put it but but i dont get any reply...
yes did but i put it but but i dont get any reply

---------- Post updated 10-12-10 at 09:06 PM ---------- Previous update was 10-11-10 at 10:35 PM ----------

"set server_list"
couldn't read...
5,282
Posted By arch12
yep the path is correct the other login script...
yep the path is correct the other login script works with that path.
5,282
Posted By arch12
any suggestions please
any suggestions please
5,282
Posted By arch12
Need help with the expect script
#!/opt/sfw/bin/expect -f
set user "*****"
set password "******"
set server_list {"ler01", "ler02"}
foreach server $server_list {
spawn ssh $user@$server
match_max 100000
expect -re "password:"...
2,349
Posted By arch12
iostat -en |awk '{ if ( $2 == 0 ) { print " ...
iostat -en |awk '{ if ( $2 == 0 ) { print " " } else { print " Hardware errors "} }

does $2 check the entire coloumn if everything is zero.from the O/p you pasted

incase there are any...
2,349
Posted By arch12
device has 4 hardware errors,i have to check if...
device has 4 hardware errors,i have to check if h/w coloumn has zero in it and if there are more errors then that particular device has hardware errors.thanks again

example...
2,349
Posted By arch12
iostat -en | awk '{print ($2)?"Hardware...
iostat -en | awk '{print ($2)?"Hardware errors":X}'
Hardware errors
Hardware errors

s/w h/w trn tot device
2 0 0 2 c1t0d0
3 0 0 3 c0t0d0
2 0 0 2 c1t2d0
0 ...
2,349
Posted By arch12
nope i just want to check only if $2 is...
nope i just want to check only if $2 is zero.print just the h/w errors

iostat -en |awk '{ if ( $2 == 0 ) { print " " } else { print " Hardware errors "} }
2,349
Posted By arch12
hi its not working it doesnot generate any ouput...
hi its not working it doesnot generate any ouput can u help

sh: iostat: cannot execute
11,456
Posted By arch12
yes its the last five files.thanks you for ure...
yes its the last five files.thanks you for ure response

---------- Post updated at 01:36 AM ---------- Previous update was at 01:15 AM ----------

+ + date +%b %e
Current_Date=Aug 26
+ + ls...
11,456
Posted By arch12
trying to check if the file is getting updated or not
#!/bin/sh
#set -x
Current_Date=`date +"%b %e"`
Filepmdate=`ls -ltr /file/ | tail -5 | awk '{print $6,$7}'`
if [ "$Current_Date" = "$i" ] ; then
echo " "
exit 0
else
...
1,422
Posted By arch12
points being cut because of code tags
Hi

My points are being cut because i have not been using code tags. for the 2nd warning whoever gave me i have started using code tags.how do i paste in my defense i can send u the original...
2,041
Posted By arch12
thank you for reply but i tried this as well it...
thank you for reply but i tried this as well it gives me an error
a=`grep MAJOR /file../../alarm.log* | wc `
if [ $a != " " ]
then
echo ' $a '

fi
./f1.sh[4]: :=: unknown test operator
...
2,041
Posted By arch12
hi its not a number its an alarm file i just grep...
hi its not a number its an alarm file i just grep the alarms and i am still having the problem
./w.sh[3]: 2: not found
./w.sh[5]: Alarms: not found

#!/bin/ksh

Alarms= $(grep MAJOR...
2,041
Posted By arch12
grep with if problem
#!/bin/ksh
a =`grep MAJOR filename | tail`
if [ $a -eq 0 ]
echo " "
else
echo " $a "
fi

filename is like alarmlog file which had alarms in it i am trying to grep the mejor alrms from the...
13,908
Posted By arch12
sorry and thanks will use code tags from the next...
sorry and thanks will use code tags from the next post i put in but anyway i didnt past exactly same messages from the server.

---------- Post updated at 07:50 PM ---------- Previous update was...
13,908
Posted By arch12
tail -30...
tail -30 /opt/oracle/rmanbkup/log/db_backup_JONDB.log |awk '/backup set complete/'


should i use a if statement here awk '/backupset complete/' if ( how do i puit Gb in here)

Use code tags,...
13,908
Posted By arch12
script to verify backup is succesfull or not
tail -30 /opt/oracle/rmanbkup/log/db_backup_JONDB.log
input datafile fno=00005 name=+ORA_DATA/jondb/datafile/users.264.696728295
input datafile fno=00003...
1,451
Posted By arch12
Thank you it works
Thank you it works
1,451
Posted By arch12
simple awk problem
pcn linus> ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
+smpnn01 ...
3,839
Posted By arch12
trying get the last /var/adm/messages
grep \"^`date "+%b %d %T"`\" /var/adm/messages | egrep \"emerg|alert|crit|err|warning\

but get an output like this

ksh: alert: not found
ksh: crit: not found
ksh: err: not found
ksh:...
1,242
Posted By arch12
Need to print if the memory utiliztion is high or less than 10G
top -n 0 | head -4 | tail -1 | awk -F "," '{ if ( $2 < 10G ) { print " High Memory utilization " } else { print " " } }'

23n01 labc> ./b.sh
High Memory utilization

This prints hifgh...
2,349
Posted By arch12
i need to print errors instead of the hardware...
i need to print errors instead of the hardware errors can someone help
2,349
Posted By arch12
need help generating this output
need to check hardware error are zero

iostat -en |awk '{ if ( $2 == 0 ) { print " " } else { print " Hardware errors "} }

can someone please tell me whats wrong with this

----------...
1,670
Posted By arch12
./b1.sh: syntax error at line 4: `per=$'...
./b1.sh: syntax error at line 4: `per=$' unexpected
Showing results 1 to 25 of 29

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