sol set command has hidden parameter 'noguard'. This patch adds some
short notice about it to 'sol help' and 'sol set help' output and to
the manpage. Feel free to rephrase it or elaborate more on the parameter
usage.

Signed-off-by: Jan Safranek <jsafr...@redhat.com>
---

 doc/ipmitool.1 |    5 +++--
 lib/ipmi_sol.c |    6 ++++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/doc/ipmitool.1 b/doc/ipmitool.1
index 13a2779..6b36511 100644
--- a/doc/ipmitool.1
+++ b/doc/ipmitool.1
@@ -2071,13 +2071,14 @@ SOL configuration data for the currently used channel.
 
 Enable, disable or show status of SOL payload for the user on the specified 
channel. 
 .TP 
-\fIset\fP <\fBparameter\fR> <\fBvalue\fR> [<\fBchannel\fR>]
+\fIset\fP <\fBparameter\fR> <\fBvalue\fR> [<\fBchannel\fR>] [\fBnoguard\fR]
 .br 
 
 Configure parameters for Serial Over Lan.  If no channel is given,
 it will display SOL configuration data for the currently used
 channel.  Configuration parameter updates are automatically guarded
-with the updates to the set\-in\-progress parameter.
+with the updates to the set\-in\-progress parameter, unless \fInoguard\fR
+parameter is present.
 .RS
 .TP 
 Valid parameters and values are:
diff --git a/lib/ipmi_sol.c b/lib/ipmi_sol.c
index c2689a6..aff628e 100644
--- a/lib/ipmi_sol.c
+++ b/lib/ipmi_sol.c
@@ -1863,7 +1863,7 @@ static void
 print_sol_usage(void)
 {
        lprintf(LOG_NOTICE, "SOL Commands: info [<channel number>]");
-       lprintf(LOG_NOTICE, "              set <parameter> <value> [channel]");
+       lprintf(LOG_NOTICE, "              set <parameter> <value> [channel] 
[noguard]");
        lprintf(LOG_NOTICE, "              payload <enable|disable|status> 
[channel] [userid]");
        lprintf(LOG_NOTICE, "              activate 
[<usesolkeepalive|nokeepalive>]");
        lprintf(LOG_NOTICE, "              deactivate");
@@ -1878,7 +1878,9 @@ print_sol_usage(void)
 static void
 print_sol_set_usage(void)
 {
-       lprintf(LOG_NOTICE, "\nSOL set parameters and values: \n");
+       lprintf(LOG_NOTICE, "\nSOL set usage: \n");
+       lprintf(LOG_NOTICE, "  sol set <parameter> <value> [channel] 
[noguard]\n");
+       lprintf(LOG_NOTICE, "SOL set parameters and values: \n");
        lprintf(LOG_NOTICE, "  set-in-progress             set-complete | "
                "set-in-progress | commit-write");
        lprintf(LOG_NOTICE, "  enabled                     true | false");


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to