Search Results

Search: Posts Made By: riegersteve
2,184
Posted By riegersteve
perfect thanx
perfect thanx
2,184
Posted By riegersteve
while read, is not looping with ssh.
echo will print all the lines, ssh will not. see below. why is this.

[root@localhost script]# awk -F: '{print $1,$2,$3}' vfiler_volumes.list | while read filer vfiler vol ; do echo $filer $vfiler...
1,901
Posted By riegersteve
mv /ifx01/etldata/lmt/*.xml (or whatever patter...
mv /ifx01/etldata/lmt/*.xml (or whatever patter you have) /ifx01/etldata/archive/
1,790
Posted By riegersteve
are you running the scripts as yourself or as...
are you running the scripts as yourself or as root ?
3,294
Posted By riegersteve
echo/print variable question
while read filer ; do echo $filer $1 $2; ssh $filer vfiler status -r | awk '/running/{host=$1}/Path:/{path=$2;print host,path}'; done < filers.list

this will print

node1
vfiler0 /
vfiler2...
1,549
Posted By riegersteve
ls -lastr
ls -lastr
1,180
Posted By riegersteve
for loop two commands at the end
cat vfiler_volumes.list | while read var1 var2 ; do ssh -n "$var1" df -h "$var2" >> test

this part works, however i would like to add an echo $var1 >> test before each ssh iteration.

any...
1,622
Posted By riegersteve
awk multiline with 1 or more variables (question)
am trying to grab the fields marked in red for monitoring purposes. each vfiler can have anywhere from 0-50 Path(s).

in order to get here i run the following
for filer in `cat filers.list` ; do...
3,179
Posted By riegersteve
use awk to ssh from variable in flat file
flat file looks like
ooss-pfgg-1234,vol_name_1, mail-list

decoded =
hostname,volum_name,mail_list
each line has diff info
am trying to ssh into each fist field, check vol usage for second...
Forum: Infrastructure Monitoring 10-01-2009
2,650
Posted By riegersteve
thanx yes tis
thanx

yes tis
Forum: Infrastructure Monitoring 10-01-2009
2,650
Posted By riegersteve
no sir the other way around your output...
no sir
the other way around
your output states
<31>
active = 1
name = DF Percent Free 11
oid = .1.3.6.1.4.1.789.1.5.4.1.6."/vol/SRP_sapdata/"
thr = 10
oper =>=
sev = 4
strnum = 0
</31>
...
Forum: Infrastructure Monitoring 10-01-2009
2,650
Posted By riegersteve
output should look like this <31> ...
output should look like this

<31>
active = 1
name = DF Percent Free $VOL
oid = .1.3.6.1.4.1.789.1.5.4.1.6.$OID
thr = 10
oper =>=
sev = 4
strnum = 0
</31>

where $VOL...
Forum: Infrastructure Monitoring 10-01-2009
2,650
Posted By riegersteve
multiple variable question
This is the control File (snmplist.fl1)
.1.3.6.1.4.1.789.1.5.4.1.2.3 = STRING: "/vol/vol0/"
.1.3.6.1.4.1.789.1.5.4.1.2.5 = STRING: "/vol/SMP_sapdata/"
.1.3.6.1.4.1.789.1.5.4.1.2.7 = STRING:...
Showing results 1 to 13 of 13

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