Monitoring the Status of Your Service Processors

User Access: Administrators

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

The following script could be run by the cron daemon in order to monitor your Service Processors:

#!/bin/sh

cat sp-ips.txt | while read ip; do
status=`ssh $ip sp get status`
if [ $status != Nominal ]; then
echo SP $ip reporting status $status | mail admin@yourhost.com
fi
done

Related Topics

Configuring Multiple Systems for Scripting

Configuring Shell Scripts

Configuring the Client for Scripting

Configuring Multiple Systems for Scripting