Use the following example as a starting point when developing your own script.
This example assumes that the file sp-ips.txt contains a newline delimited list of Service Processor IP addresses. For example:
10.10.30.15
10.10.30.16
10.10.30.17
10.10.30.18
Turning on All Platforms
You can turn on each of the platforms associated with the Service Processors with the following shell code.
#!/bin/sh
cat sp-ips.txt | while read ip; do
ssh $ip platform set power state on
done