Files
mastering-unix-ss/chapter8/findslot
Fabio Scotto di Santolo 4cc88d2f6e initial commit
2020-07-28 19:28:25 +02:00

14 lines
259 B
Bash
Executable File

#!/usr/bin/bash
#
# SCRIPT: findslot
# PURPOSE: This script is used to locate a blade server
# within the specified SUN blade chassis.
#
CHAS=$1
HOST=$2
SLOT=`/usr/local/bin/showplatform.exp $CHAS \
| /usr/bin/grep $HOST | cut -f 1 -d " "`
echo $SLOT