in reply to Re: AIX harddisk sum of storage
in thread AIX harddisk sum of storage
this is what I see when I run the script, does not like the "do"
sh: -c: line 0: syntax error near unexpected token `do' sh: -c: line 0: `SSH root@server19 for i in lspv | awk '{print $1}';do + bootinfo -s $i;done' 256 sh: -c: line 0: syntax error near unexpected token `do' sh: -c: line 0: `SSH root@server20 for i in lspv | awk '{print $1}';do + bootinfo -s $i;done' 256 sh: -c: line 0: syntax error near unexpected token `do' sh: -c: line 0: `SSH root@server21 for i in lspv | awk '{print $1}';do + bootinfo -s $i;done' 256 sh: -c: line 0: syntax error near unexpected token `do' sh: -c: line 0: `SSH root@server22 for i in lspv | awk '{print $1}';do + bootinfo -s $i;done'
Yet when I run it on an AIX server, things work just fine
root@server01:/] # for i in `/usr/sbin/lspv | awk '{print $1}'`; do bo +otinfo -s $i; done | awk '{sum+=$1}END{print (sum/1024)}' 589.73
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: AIX harddisk sum of storage
by Corion (Patriarch) on Jul 23, 2018 at 17:56 UTC |