add a spy flag for rcons command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
fc10f24025
commit
ffeb7efdc6
@ -2,6 +2,7 @@
|
||||
if [ -z "$1" ] || [ "$1" = "-h" ]; then
|
||||
echo "rcons - remotely accesses the serial console of a node"
|
||||
echo "rcons <singlenode> [conserver] [-f]"
|
||||
echo "rcons <singlenode> [conserver] [-s]"
|
||||
echo "rcons [-h|--help|-v|--version]"
|
||||
exit 0
|
||||
fi
|
||||
@ -15,10 +16,21 @@ if [ -n "$3" ] && [ "$3" = "-f" ]; then
|
||||
CONSERVER=$2
|
||||
fi
|
||||
|
||||
#console spy mode
|
||||
if [ -n "$3" ] && [ "$3" = "-s" ]; then
|
||||
FORCE=-s
|
||||
CONSERVER=$2
|
||||
fi
|
||||
|
||||
if [ -n "$2" ] && [ "$2" = "-f" ]; then
|
||||
FORCE=-f
|
||||
fi
|
||||
|
||||
#console spy mode
|
||||
if [ -n "$2" ] && [ "$2" = "-s" ]; then
|
||||
FORCE=-s
|
||||
fi
|
||||
|
||||
if [ -z "$CONSERVER" ]; then
|
||||
CONSERVER=`nodels $1 nodehm.conserver 2>/dev/null | awk -F: '{print $2}' | tr -d ' '`
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user