Tripp Lite B092-016 Owner's Manual page 205

Console server management switch console server with poweralert console server
Hide thumbs Also See for B092-016:
Table of Contents

Advertisement

Chapter 15: Advanced Configuration
TOTAL=`config -g $TOTALNODE | sed 's/.* //'`
NEWTOTAL=$[ $TOTAL -1 ]
# Make backup copy of config file
cp /etc/config/config.xml /etc/config/config.bak
echo "backup of /etc/config/config.xml saved in /etc/config/config.bak"
if [ -z $NUMBER ] # test whether a singular node is being \
#deleted e.g. config.sdt.hosts
then
echo "deleting $1"
config -d "$1"
echo Done
exit 0
elif [ $NUMBER = $TOTAL ] # Test if only one item exists
then
echo "only one item exists"
# Deleting node
echo "Deleting $1"
config -d "$1"
# Modifying item total.
config -s "$TOTALNODE=0"
echo Done
exit 0
205

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents