Search Results

Search: Posts Made By: llcooljatt
1,474
Posted By llcooljatt
how do i get my threads deleted?
as subject - need this done asap, in trouble
5,905
Posted By llcooljatt
Ok so simply put Variable = where our...
Ok so simply put

Variable = where our results echo'd too?
Filename = list of ip addresses
5,905
Posted By llcooljatt
Ok I understand the variable can be named...
Ok I understand the variable can be named anything but is there any significance in ip_list to the variable? If not is llcooljatt the name of where we echo's the results too?
5,905
Posted By llcooljatt
when we say ip I understand we reffer to $ip...
when we say ip I understand we reffer to $ip variable, but has ip got anything to do with internet protocol sorry for being thick

any good links to most common variables etc?
5,905
Posted By llcooljatt
ok here's my understanding... while read ip...
ok here's my understanding...

while read ip (while read is a linux script ? ip is there any significance to internet protocol?
do (ok do the following scripts twice)
check_GE-VLANStats-P3 $ip...
5,905
Posted By llcooljatt
yes works a treat - excellent. please can I...
yes works a treat - excellent.

please can I have comments on while code pls pls pls...
5,905
Posted By llcooljatt
what variable is $ip ? what can be in it? ...
what variable is $ip ? what can be in it?

while read ip
do
echo $ip
done < ip_list

can you put comments need to get it into my head
5,905
Posted By llcooljatt
1.1.1.1 2.2.2.2 3.3.3.3 check each ip...
1.1.1.1
2.2.2.2
3.3.3.3

check each ip twice before moving onto the next one so

1.1.1.1
1.1.1.1
2.2.2.2
2.2.2.2
3.3.3.3
3.3.3.3
5,905
Posted By llcooljatt
i.e say i have a list of 30 ip's i want it do to...
i.e say i have a list of 30 ip's i want it do to the first ip check then I want it to repeat the first one then move onto the second ip on the list, repeat the check of the second one and then move...
5,905
Posted By llcooljatt
But I need it to check against a file (ip_list)...
But I need it to check against a file (ip_list) which has 30 ip's in it ? can I point it to a filename without putting all those ip addresses in?

also say I wanted it to check 1.1.1.1 and then...
5,905
Posted By llcooljatt
of that script it will #ssh -l 1.1.1.1 ...
of that script it will

#ssh -l 1.1.1.1
enter password
#telnet 169.1.1.1
enter user & password
#aux_stats -v
and print output (need it run twice i.e aux_stats -v to produce a comparison)
...
5,905
Posted By llcooljatt
do you know why this will be ? ...
do you know why this will be ?


[name@V440]# ls
check_GE-VLANStats-P3

[name@V440]# more check_GE-VLANStats-P3
/opt/tools/utils/commands $1 /opt/tools/utils/HUB/GEW-VLANStats-P3
...
5,905
Posted By llcooljatt
# IPLIST="ip_list" [root@V440]# for ip in...
# IPLIST="ip_list"
[root@V440]# for ip in $IPLIST
> do
> ret=$( ssh $1 /opt/tools/utils/HUB/GEW-VLANStats-P3 )
> echo $ret
> done
bash: ssh: command not found
5,905
Posted By llcooljatt
how to run an already made script run against a list of ip addresses solaris 8 question
how to run an already developed script run against a list of ip addresses solaris 8 question.

the script goes away and check traffic information, for example

check_GE-VLANStats-P3 1.1.1.1
...
3,300
Posted By llcooljatt
@ahamed can I say thanks for this code it will...
@ahamed can I say thanks for this code it will save me hours of manual work, 1 thing can you explain
if(b[i]-1&&a[i]!=b[i])

:b::D:b:

ok think iv worked it out, if my b array index is equal to...
3,300
Posted By llcooljatt
can you explain or write comments for your code...
can you explain or write comments for your code please, I am new to this and any help from you guys is appreciated.
3,300
Posted By llcooljatt
ahamed I am grateful excellent work ! can...
ahamed I am grateful excellent work !

can you explain the modified code so that I understand better

specifically
{if(b[i]-1&&a[i]!=b[i]){print i";\t\t"b[i]}else{print "NEW:"i";\t\t"b[i]}
3,300
Posted By llcooljatt
your script nawk -F,...
your script
nawk -F, 'NR==FNR{a[$1OFS$2OFS$3]++;next}{b[$1OFS$2OFS$3]++}
> END{for(j in b){bx++};for(i in a){for(j in b){if(i==j){cc=a[i]+b[j]}else{cn++}
> if(cn==bx){print "NEW ENTRY FOUND...
4,606
Posted By llcooljatt
please is anyone available to help with this...
please is anyone available to help with this problem?
3,300
Posted By llcooljatt
Hi I will check when I'm in work, can you check...
Hi I will check when I'm in work, can you check my previous posts, I had help from initial script from ahamed but just need it to do one more thing i.e increment NEW resets it has found i.e not look...
3,300
Posted By llcooljatt
can you provide me with the line i.e nawk...
can you provide me with the line i.e

nawk -F, 'NR==FNR{a[$1OFS$2OFS$3]++;next} a[$1OFS$2OFS$3]{b[$1OFS$2OFS$3]++}
END{for(i in b){if(b[i]-1){print i";\t\t"b[i]}else{print "NEW:"i";\t\t1"} } }'...
3,300
Posted By llcooljatt
I am sorry I am new to programming hence not the...
I am sorry I am new to programming hence not the best at understanding.

Have you got line output please?
3,300
Posted By llcooljatt
NE:825890,SHELF:5,SLOT:1 has not been in *.csv
NE:825890,SHELF:5,SLOT:1 has not been in *.csv
3,300
Posted By llcooljatt
the output is different as I have many of *.csv...
the output is different as I have many of *.csv files, you will not have the same
3,300
Posted By llcooljatt
Compare a file with all others then print off data
my script so far

nawk -F, 'NR==FNR{a[$1OFS$2OFS$3]++;next} a[$1OFS$2OFS$3]{b[$1OFS$2OFS$3]++}
END{for(i in b){if(b[i]-1){print i";\t\t"b[i]}else{print "NEW:"i";\t\t1"} } }' OFS=, 20111228.csv...
Showing results 1 to 25 of 60

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