Search Results

Search: Posts Made By: achak01
Forum: Red Hat 02-27-2015
2,122
Posted By achak01
Automount in RHEL
Hello experts,
On my RHEL box when i mount a nfs file system using autofs, the df -t shows the file system as nfs only. For which mounts does it report the filesystem as autofs....
Forum: Programming 02-26-2011
1,036
Posted By achak01
The code doesnt seem to work. Actually i have...
The code doesnt seem to work. Actually i have another similar pattern at the bottom of the fiole which is this format

HPOM maintenance summary: 02/26/11 15:39:58. So this search pattern which u...
Forum: Programming 02-25-2011
1,036
Posted By achak01
Problem with perl pattern for date
Hello Friends,

I have been struck with a perl script for quite some time now. I have a log file which gives a date which is sometimes coming in this format

Script...
2,078
Posted By achak01
getting number of disks inside a solaris zone
Friends, I am really stuck on this one. In solaris i can get the number of disks using this command -->

pfexec format | egrep -v "Searching|AVAILABLE|Specify|^$|@" | wc -l

But when applying...
2,477
Posted By achak01
@scrutinizer. Your script is working like...
@scrutinizer.

Your script is working like charm.

i am still unable to understand the logic behind

iostat -d 2 2 awk ' /sd[a-z]+[^0-9]/ || /hd[a-z]+[^0-9]/ || /fd[0-9]+/ || !NF&&NR>2'

...
2,477
Posted By achak01
iostat -d 2 2| awk ' /sd[a-z]+[^0-9]/ ||...
iostat -d 2 2| awk ' /sd[a-z]+[^0-9]/ || /hd[a-z]+[^0-9]/ || /fd[0-9]+/ || !NF'

sda 21.62 5.29 257.11 2871221 139644510
fd0 0.00 0.00 ...
2,477
Posted By achak01
sorry boss. no change in result. iostat -d ...
sorry boss. no change in result.

iostat -d 2 2 |egrep "^sd[a-z]+ |^[fh]d"
sda 21.55 5.30 256.23 2871221 138684078
fd0 0.00 0.00 ...
2,477
Posted By achak01
printing space after a record in awk
friends,
I am running iostat command in linux. Following is the output

iostat -d
Linux 2.6.18-128.el5 (btovm725.ind.hp.com) 04/16/2010

Device: tps Blk_read/s Blk_wrtn/s ...
Forum: Programming 04-12-2010
8,774
Posted By achak01
Which language is best suited for regular expressions perl,python.ruby ?
Hello all,
i am in a bit of dilema here. i dont know any thing about perl or python. only know a little bit of awk. now unable to take a decission as to which language to go for. my...
32,278
Posted By achak01
The second option. Create a high disk I/O and...
The second option. Create a high disk I/O and then write a file and read it.
32,278
Posted By achak01
shell script to create disk load
friends , need a shell script to create a disk load. can any one pls guide me with how this can be implemented. Pls provide the concept. from there i will try to design my script.
9,528
Posted By achak01
not working as in a multi disked linux system,...
not working as in a multi disked linux system, this will fail. also i dont want to use sed. only awk.

---------- Post updated 03-03-10 at 12:01 AM ---------- Previous update was 03-02-10 at 10:47...
9,528
Posted By achak01
there is a small problem, it will treat all the...
there is a small problem, it will treat all the entries as 1 column. so same problem comes back again.
9,528
Posted By achak01
wont it become too hectic !!!!1
wont it become too hectic !!!!1
9,528
Posted By achak01
same result :-( iostat -dt -kx 2 2 | awk...
same result :-(

iostat -dt -kx 2 2 | awk 'BEGIN {max = 0.00} !/sd[a-z][0-9]/ &&!/%util/ && !/Time/ && !/Linux/ {if ($12>max) max=$12} END {print max}'
4.38
9,528
Posted By achak01
actually no. this values should be printed at...
actually no. this values should be printed at each iteration

for example u run iostat -dtx 2 2 (i.e two iterations at 2 seconds interval) so after the first iteration is over, the max value will...
9,528
Posted By achak01
iostat -dt -kx 2 2 | awk ' !/sd[a-z][0-9]/...
iostat -dt -kx 2 2 | awk ' !/sd[a-z][0-9]/ &&!/%util/ && !/Time/ && !/Linux/ {print $12}' |
awk 'BEGIN {max = 0.00} {if ($0>max) max=$0} END {print max}'

6.05
9,528
Posted By achak01
its not working. neither code is working. first...
its not working. neither code is working. first one is print only 1 value at the end of all the iterations and so does code 2. but i need the values at the end of each iteration.
3,103
Posted By achak01
finding greatest value in a column using awk from iostat output in linux
Friends,
.
On linux i have to run iostat command and in each iteration have to print the greatest value in each column.

e.g

iostat -dt -kx 2 2 | awk ' !/sd[a-z][0-9]/...
9,528
Posted By achak01
finding greatest value in a column using awk from iostat output in linux
Friends,
Need some help.
On linux i have to run iostat command and in each iteration have to print the greatest value in each column.

e.g

iostat -dt -kx 2 2 | awk '...
6,675
Posted By achak01
actually, currently we are using shell and awk....
actually, currently we are using shell and awk. but we want to shift it. so pls tell me which will be best suited to replace awk and shell ?
6,675
Posted By achak01
Perl Vs Python
Hello all,
I am in a bit of dilema here. I want to implement a suite. it involves a lot of text file processing and shell scripts . which one to use perl or python ?
2,701
Posted By achak01
its not printing per iteration.also its summing...
its not printing per iteration.also its summing up the values.
2,701
Posted By achak01
The code snippet which i had pasted worked out in...
The code snippet which i had pasted worked out in Linux. But for HP-UX. i am at my wits end. when u run the command sar -d $interval $iteration it gives out values like pasted below
sar -d 3 3
...
2,701
Posted By achak01
worked with the following syntax awk...
worked with the following syntax

awk '{if(NF){_=(/tps/)?0:(($2>=_)?$2:_)}else{print _}}'


can anyone be pls kind enough to explain to me the meaning of the code.
Showing results 1 to 25 of 50

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