Chapter 16:
KCS Client Configuration
270
Console Server & RIM Gateway User Manual
elif [ $NUMBER -lt $TOTAL ] # more than one item exists
then
# Modify the users list so user numbers are sequential
# by shifting the users into the gap one at a time...
echo "Deleting $1"
LASTFIELDTEXT=`echo $LASTFIELD | sed 's/[0-9]//g'`
CHECKTOTAL=`config -g $ROOTNODE.$LASTFIELDTEXT$TOTAL`
if [ -z "$CHECKTOTAL" ]
then
echo "WARNING: "$TOTALNODE" greater than number of items"
fi
COUNTER=1
while [ $COUNTER != $((TOTAL-1)) ]
do
config -g $ROOTNODE.$LASTFIELDTEXT$((COUNTER)) \
| while read LINE
do
config -s \
"`echo "$LINE" | sed -e "s/$LASTFIELDTEXT$(( \
COUNTER))/$LASTFIELDTEXT$((COUNTER-1))/" \
-e 's/ /=/'`"
done
let +
done
# deleting last user
config -d $ROOTNODE.$LASTFIELDTEXT$TOTAL
# Modifying item total.
config -s "$TOTALNODE=$NEWTOTAL"
echo Done
exit 0
else
echo "error: item being deleted has an index greater than total items. Increase the total count variable."
exit 0
fi
15.1.6 Power cycle any device upon a ping request failure
The
ping-detect
script is designed to run specified commands when a monitored host stops responding to ping requests.
The first parameter taken by the
ping-detect
script is the hostname/ IP address of the device to ping. Any other
parameters are then regarded as a command to run whenever the ping to the host fails.
ping-detect
can run any number
of commands.
Содержание ACM5000
Страница 3: ......
Страница 10: ...Table of Contents 10 Console Server RIM Gateway User Manual...
Страница 11: ......
Страница 94: ...Chapter 5 Firewall Failover and Out of Band 94 Console Server RIM Gateway User Manual...
Страница 119: ......
Страница 149: ......
Страница 191: ......
Страница 205: ......
Страница 225: ......
Страница 303: ......
Страница 313: ......
Страница 323: ......