diff --git a/xCAT-client/bin/rcons b/xCAT-client/bin/rcons index 2dcfc3acf..40cf1c8d5 100755 --- a/xCAT-client/bin/rcons +++ b/xCAT-client/bin/rcons @@ -1,12 +1,11 @@ #!/bin/sh -if [ $1 = -h ]; then +if [ -z "$1" ] || [ "$1" = "-h" ]; then echo "rcons - remotely accesses the serial console of a node" - echo "rcons " echo "rcons [conserver] [-f]" echo "rcons [-h|--help|-v|--version]" exit 0 fi -if [ $1 = -v ]; then +if [ "$1" = "-v" ]; then echo "Version 2.1" exit 0 fi diff --git a/xCAT-client/pods/man1/rcons.1.pod b/xCAT-client/pods/man1/rcons.1.pod index f5ef334d4..08c8f492f 100644 --- a/xCAT-client/pods/man1/rcons.1.pod +++ b/xCAT-client/pods/man1/rcons.1.pod @@ -4,18 +4,30 @@ B - remotely accesses the serial console of a node =head1 B -B I +B I [I] [B<-f>] -B [I<-h>|I<--help>|I<-v>|I<--version>] +B [B<-h>|B<--help>|B<-v>|B<--version>] =head1 B -B provides access to a single remote node serial console. +B provides access to a single remote node serial console, using the out-of-band infrastructure for the node +(e.g. BMC, Management Module, HMC, KVM, etc.). It uses the conserver open source package to provide one read-write and +multiple read-only instances of the console, plus console logging. + +If I is specified, the conserver daemon on that host will be contacted, instead of on the local host. + +To exit the console session, enter: e c . =head1 B =over 5 +=item B<-f> + +If another console for this node is already open in read-write mode, force that console into read-only (spy) mode, and +open this console in read-write mode. If -f is not specified, this console will be put in spy mode if another console +is already open in read-write mode. + =item B<-h>|B<--help> Print help.