initial commit
This commit is contained in:
13
chapter8/findslot
Executable file
13
chapter8/findslot
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user