Hi,
I have following code:
while read f;
do ssh mbu-ibm-hmc1 lssyscfg -r lpar -m Server-9117-MMA-SN655D340 -F name,state --filter lpar_names=$f;
done < 1
1 is a file containing lpar names:
mbu-test-uat-cms-dbms-01
mbu-pci-euroit-dbms-03
mbu-pci-euroit-dbms-02
mbu-pci-test-dbms-01
mbu-pci-euroit-dbms-01
mbu-pci-cms-test-dbms-01
mbu-dev-dbms-01
mbu-prod-cms-app-01
mbu-prod-cms-dbms-01
mbu-prod-pte-dbms-01
mbu-vios-01-02
mbu-vios-01-01
The code should execute one command for one line in file 1 containing lpar_names.
When I execute the code, output is only for the first line in file 1. Why does it stops, where is the catch?
I have following code:
while read f;
do ssh mbu-ibm-hmc1 lssyscfg -r lpar -m Server-9117-MMA-SN655D340 -F name,state --filter lpar_names=$f;
done < 1
1 is a file containing lpar names:
mbu-test-uat-cms-dbms-01
mbu-pci-euroit-dbms-03
mbu-pci-euroit-dbms-02
mbu-pci-test-dbms-01
mbu-pci-euroit-dbms-01
mbu-pci-cms-test-dbms-01
mbu-dev-dbms-01
mbu-prod-cms-app-01
mbu-prod-cms-dbms-01
mbu-prod-pte-dbms-01
mbu-vios-01-02
mbu-vios-01-01
The code should execute one command for one line in file 1 containing lpar_names.
When I execute the code, output is only for the first line in file 1. Why does it stops, where is the catch?