Blame SOURCES/0001-man.patch

2dd7ae
From dfca464e5fe4c9107f08bff7e6e2730a504945b7 Mon Sep 17 00:00:00 2001
2dd7ae
From: Boris Ranto <branto@redhat.com>
2dd7ae
Date: Thu, 2 Jun 2016 12:47:22 +0200
2dd7ae
Subject: [PATCH] Apply './OpenIPMI-2.0.19-man.patch'
2dd7ae
2dd7ae
Signed-off-by: Boris Ranto <branto@redhat.com>
2dd7ae
---
2dd7ae
 lanserv/ipmilan.8       | 13 ++++++++++---
2dd7ae
 man/ipmi_cmdlang.7      | 36 ++++++++++++++++++------------------
2dd7ae
 man/ipmi_ui.1           | 10 +++++-----
2dd7ae
 man/openipmi_conparms.7 |  4 ++--
2dd7ae
 man/openipmicmd.1       |  6 +++---
2dd7ae
 man/openipmigui.1       | 12 ++++++------
2dd7ae
 man/openipmish.1        | 12 +++++++++++-
2dd7ae
 man/rmcp_ping.1         |  2 +-
2dd7ae
 man/solterm.1           |  6 +++---
2dd7ae
 sample/ipmicmd.c        |  1 +
2dd7ae
 sample/rmcp_ping.c      |  5 +++++
2dd7ae
 sample/solterm.c        |  7 ++++++-
2dd7ae
 ui/basic_ui.c           | 25 +++++++++++++++++++++++++
2dd7ae
 13 files changed, 96 insertions(+), 43 deletions(-)
2dd7ae
2dd7ae
diff --git a/lanserv/ipmilan.8 b/lanserv/ipmilan.8
2dd7ae
index ff43d5c..9360507 100644
2dd7ae
--- a/lanserv/ipmilan.8
2dd7ae
+++ b/lanserv/ipmilan.8
2dd7ae
@@ -29,18 +29,25 @@ address they came in.
2dd7ae
 
2dd7ae
 .SH OPTIONS
2dd7ae
 .TP
2dd7ae
-.BI \-c\  config-file
2dd7ae
+\fB\-c\fR file,\ \fB\-\-config\-file\fR file
2dd7ae
 Set the configuration file to one other than the default of
2dd7ae
 .I "/etc/ipmi_lan.conf"
2dd7ae
 .TP
2dd7ae
-.B \-n
2dd7ae
+\fB\-i\fR device,\ \fB\-\-ipmi-dev\fR device
2dd7ae
+Sets the desired device
2dd7ae
+.TP
2dd7ae
+\fB\-n\fR,\ \fB\-\-daemonize\fR
2dd7ae
 Stops  the  daemon  from  forking  and  detaching  from the controlling
2dd7ae
 terminal. This is useful for running from init.
2dd7ae
 .TP
2dd7ae
-.B \-d
2dd7ae
+\fB\-d\fR,\ \fB\-\-debug\fR
2dd7ae
 Turns on debugging to standard output.  You generally have to use
2dd7ae
 .B \-n
2dd7ae
 with this.
2dd7ae
+.TP
2dd7ae
+\fB\-?\fR,\ \fB\-\-help\fR,\ \fB\-\-usage\fR
2dd7ae
+Prints brief usage hints message.
2dd7ae
+
2dd7ae
 
2dd7ae
 
2dd7ae
 .SH CONFIGURATION
2dd7ae
diff --git a/man/ipmi_cmdlang.7 b/man/ipmi_cmdlang.7
2dd7ae
index 4d18e76..a6d73b9 100644
2dd7ae
--- a/man/ipmi_cmdlang.7
2dd7ae
+++ b/man/ipmi_cmdlang.7
2dd7ae
@@ -246,7 +246,7 @@ instance, the command to create a domain is
2dd7ae
 The command to list all sensors in a domain named domain1 is
2dd7ae
 .B sensor list domain1.
2dd7ae
 
2dd7ae
-Each command has a reponse for each object operated on, which is
2dd7ae
+Each command has a response for each object operated on, which is
2dd7ae
 listed after the command description.  In those responses, anything
2dd7ae
 that begins with a
2dd7ae
 .B %
2dd7ae
@@ -316,7 +316,7 @@ BMC.  For that, notice that the LAN connection has an options extra IP
2dd7ae
 and port for the second IP address.  OpenIPMI supports these IP
2dd7ae
 addresses and connection, detecting failures, switching between
2dd7ae
 addresses, and other fault-tolerant things.  It does this
2dd7ae
-transparently to the user.  Mutiple connections may require special
2dd7ae
+transparently to the user.  Multiple connections may require special
2dd7ae
 OEM support, read the documentation about your specific system if you
2dd7ae
 need this.
2dd7ae
 
2dd7ae
@@ -336,7 +336,7 @@ or
2dd7ae
 \fI<name>\fP and \fI<password>\fP are the user name and password of
2dd7ae
 the IPMI user to use for the connection.
2dd7ae
 The <smi num> is the driver number, generally 0.
2dd7ae
-Options enable and disable various automitic processing and are:
2dd7ae
+Options enable and disable various automatic processing and are:
2dd7ae
 .PD 0
2dd7ae
 .HP
2dd7ae
 .B -[no]all
2dd7ae
@@ -356,7 +356,7 @@ is false by default.
2dd7ae
 is false by default.
2dd7ae
 .HP
2dd7ae
 .B -[no]ipmbscan
2dd7ae
-- IPMB bus scanning.  This turns on scanning IPMB busses when they are found.
2dd7ae
+- IPMB bus scanning.  This turns on scanning IPMB buses when they are found.
2dd7ae
 This is false by default.
2dd7ae
 .HP
2dd7ae
 .B -[no]oeminit
2dd7ae
@@ -461,7 +461,7 @@ available hacks are:
2dd7ae
 The -M option sets the maximum outstanding messages.  The default is
2dd7ae
 2, ranges 1-63.
2dd7ae
 
2dd7ae
-Options enable and disable various automitic processing and are:
2dd7ae
+Options enable and disable various automatic processing and are:
2dd7ae
 .PD 0
2dd7ae
 .HP
2dd7ae
 .B -[no]all
2dd7ae
@@ -519,7 +519,7 @@ Domain Created: <domain>
2dd7ae
 .RE
2dd7ae
 
2dd7ae
 .B fru <domain> <is_logical> <device_address> <device_id> <lun> <private_bus> <channel>
2dd7ae
-- dump a fru given all it's insundry information.
2dd7ae
+- dump a fru given all it's sundry information.
2dd7ae
 .TP
2dd7ae
 Response:
2dd7ae
 .RS
2dd7ae
@@ -533,7 +533,7 @@ Domain
2dd7ae
 
2dd7ae
 .B msg <domain> <channel> <ipmb> <LUN> <NetFN> <Cmd> [data...]
2dd7ae
 - Send a command to the given IPMB address on the given channel and
2dd7ae
-display the response.  Note that this does not require the existance
2dd7ae
+display the response.  Note that this does not require the existence
2dd7ae
 of an MC in OpenIPMI.
2dd7ae
 .TP
2dd7ae
 Response:
2dd7ae
@@ -571,7 +571,7 @@ SEL Rescan done: <domain>
2dd7ae
 .RE
2dd7ae
 
2dd7ae
 .B presence <domain>
2dd7ae
-- Audit the presence of all enities in the domain.  Note that this just
2dd7ae
+- Audit the presence of all entities in the domain.  Note that this just
2dd7ae
 starts the process; it will run in the background.
2dd7ae
 .TP
2dd7ae
 Response is:
2dd7ae
@@ -689,7 +689,7 @@ FRU deleted: <fru>
2dd7ae
 - Set the value of a FRU element.  The
2dd7ae
 name is the record name, or multi-record.  The number is required
2dd7ae
 for fields that need it (custom and multi-record).  The value is
2dd7ae
-an a single value for integers.  For strings it is a string
2dd7ae
+a single value for integers.  For strings it is a string
2dd7ae
 type (either binary, ascii, or unicode) and the info.  Binary and
2dd7ae
 unicode data is specified as numbers.  ascii data is specified in
2dd7ae
 a string.  Note that setting a ascii value with no string will
2dd7ae
@@ -770,7 +770,7 @@ Domain
2dd7ae
 .B info <entity>
2dd7ae
 - Dump information about an entity.
2dd7ae
 .TP
2dd7ae
-Reponse:
2dd7ae
+Response:
2dd7ae
 .RS
2dd7ae
 .nf
2dd7ae
 Entity
2dd7ae
@@ -784,7 +784,7 @@ Entity
2dd7ae
 .B fru <entity>
2dd7ae
 - Dump the FRU information about the given entity.
2dd7ae
 .TP
2dd7ae
-Reponse:
2dd7ae
+Response:
2dd7ae
 .RS
2dd7ae
 .nf
2dd7ae
 Entity
2dd7ae
@@ -813,7 +813,7 @@ Entity
2dd7ae
 .B set_act_time <entity>
2dd7ae
 - Set the hot-swap auto-activate time.
2dd7ae
 .TP
2dd7ae
-Reponse:
2dd7ae
+Response:
2dd7ae
 .RS
2dd7ae
 .nf
2dd7ae
 Set act time: <entity>
2dd7ae
@@ -981,7 +981,7 @@ Response:
2dd7ae
 .nf
2dd7ae
 Sensor
2dd7ae
   Name: <sensor>
2dd7ae
-  Positivie Hysteresis: <integer>
2dd7ae
+  Positive Hysteresis: <integer>
2dd7ae
   Negative Hysteresis: <integer>
2dd7ae
 .fi
2dd7ae
 .RE
2dd7ae
@@ -1101,7 +1101,7 @@ Set done: <control>
2dd7ae
 .RE
2dd7ae
 
2dd7ae
 .B get <control>
2dd7ae
-- Get the value of a control.  The reponse depends
2dd7ae
+- Get the value of a control.  The response depends
2dd7ae
 on the control type.
2dd7ae
 .TP
2dd7ae
 Response:
2dd7ae
@@ -1128,7 +1128,7 @@ multiple lights.  The options values (marked with
2dd7ae
 ) will not be
2dd7ae
 present if local control is set to true.  Local control means that
2dd7ae
 the LED takes whatever default function it does on the device
2dd7ae
-(like disk activity, ethernet activity, hot-swap LED, etc.).
2dd7ae
+(like disk activity, Ethernet activity, hot-swap LED, etc.).
2dd7ae
 Response for id control:
2dd7ae
 .RS
2dd7ae
 .nf
2dd7ae
@@ -1325,7 +1325,7 @@ Channel Access
2dd7ae
 - Set information about the MC's channel access.  There are two different
2dd7ae
 places where this is stored, the present in-use values (volatile) and the
2dd7ae
 non-volatile storage that is loaded at startup.  Note if you specify
2dd7ae
-channel 0xe, the modified channel will be the current channel.  Parms
2dd7ae
+channel 0xe, the modified channel will be the current channel.  Parameters
2dd7ae
 are:
2dd7ae
 .RS
2dd7ae
 .nf
2dd7ae
@@ -1547,7 +1547,7 @@ PET destroyed: <pet>
2dd7ae
 .SS pef
2dd7ae
 commands dealing with platform even filters.  These are basically
2dd7ae
 connections to the PEF configuration parameters in an MC.  You use a
2dd7ae
-pef to fetch a pef config, which you can then modify and write back to
2dd7ae
+pef to fetch a pef configuration, which you can then modify and write back to
2dd7ae
 the MC.  Note that when you get a pef config, you claim a lock on the
2dd7ae
 MC that must be unlocked.
2dd7ae
 
2dd7ae
@@ -1780,7 +1780,7 @@ operational and finished all it SDR, FRU, and bus scans:
2dd7ae
 .fi
2dd7ae
 .RE
2dd7ae
 
2dd7ae
-The following comes out when domain connection infomration changes:
2dd7ae
+The following comes out when domain connection information changes:
2dd7ae
 .RS
2dd7ae
 .nf
2dd7ae
   EVENT
2dd7ae
diff --git a/man/ipmi_ui.1 b/man/ipmi_ui.1
2dd7ae
index 9c5d9b6..011255f 100644
2dd7ae
--- a/man/ipmi_ui.1
2dd7ae
+++ b/man/ipmi_ui.1
2dd7ae
@@ -4,7 +4,7 @@
2dd7ae
 ipmi_ui \- Crude interface to an IPMI system
2dd7ae
 
2dd7ae
 .SH SYNOPSIS
2dd7ae
-.B ipmiui
2dd7ae
+.B ipmi_ui
2dd7ae
 .RB [\| \-dmsg \|]
2dd7ae
 .RB [\| \-dmem \|]
2dd7ae
 .RB [\| \-c \|]
2dd7ae
@@ -34,7 +34,7 @@ Normally,
2dd7ae
 starts up in a full-screen format.  The left window shows the output
2dd7ae
 of commands, the right window shows the logs from OpenIPMI.  Both
2dd7ae
 windows are scrollable with page up and page down keys, press the "\fBF1\fP"
2dd7ae
-key to choose the the left window to scroll, the "\fBF2\fP" key to choose
2dd7ae
+key to choose the left window to scroll, the "\fBF2\fP" key to choose
2dd7ae
 the right window to scroll.
2dd7ae
 
2dd7ae
 Note that you must set your environment \fBTERM\fP variable properly for
2dd7ae
@@ -48,7 +48,7 @@ the connections are to the same IPMI domain through different
2dd7ae
 management controllers.  Also, each LAN connection may have two IP
2dd7ae
 addresses.  These are two different addresses to the same management
2dd7ae
 controller.  So you may have a total of 4 IP addresses to an IPMI
2dd7ae
-domain, two management controllers and two IP adresses to each
2dd7ae
+domain, two management controllers and two IP addresses to each
2dd7ae
 management controller.
2dd7ae
 
2dd7ae
 .SH OPTIONS
2dd7ae
@@ -174,12 +174,12 @@ turns events on or off from the sensor (\fB0\fP or \fB1\fP).
2dd7ae
 turns scanning on or off for the sensor (\fB0\fP or \fB1\fP).
2dd7ae
 .I "assertion-bitmask"
2dd7ae
 specifies the bitmask of thresholds or states
2dd7ae
-that should be enabled or disabled when a thrshold or state is
2dd7ae
+that should be enabled or disabled when a threshold or state is
2dd7ae
 asserted.  It is a bunch of 0's and 1's, where the first one is for
2dd7ae
 threshold/state 0, the second for threshold/state 1, etc.
2dd7ae
 .I "deassertion-bitmask"
2dd7ae
 specifies the bitmask of thresholds or states
2dd7ae
-that should be enabled or disabled when a thrshold or state is
2dd7ae
+that should be enabled or disabled when a threshold or state is
2dd7ae
 deasserted.
2dd7ae
 
2dd7ae
 .SH CONTROLS
2dd7ae
diff --git a/man/openipmi_conparms.7 b/man/openipmi_conparms.7
2dd7ae
index 587da2a..9dc6404 100644
2dd7ae
--- a/man/openipmi_conparms.7
2dd7ae
+++ b/man/openipmi_conparms.7
2dd7ae
@@ -1,7 +1,7 @@
2dd7ae
 .TH openipmi_conparms 7 05/13/03 OpenIPMI "Connection Parameters for OpenIPMI"
2dd7ae
 
2dd7ae
 .SH NAME
2dd7ae
-openipmi_cmdparms \- Connection parmeters for OpenIPMI
2dd7ae
+openipmi_cmdparms \- Connection parameters for OpenIPMI
2dd7ae
 
2dd7ae
 .SH SYNOPSIS
2dd7ae
 
2dd7ae
@@ -97,7 +97,7 @@ use.
2dd7ae
 .TP
2dd7ae
 .BI \-Rc\  confidentiality\ algorithm
2dd7ae
 The \fIRMCP+ confidentiality (encryption) algorithm\fP to use.  This keeps
2dd7ae
-evesdroppers from seeing the data.  Valid values are: \fBbmcpick\fP,
2dd7ae
+eavesdroppers from seeing the data.  Valid values are: \fBbmcpick\fP,
2dd7ae
 \fBaes_cbc_128\fP, \fBxrc4_128\fP, and \fBxrc_40\fP.  The \fBbmcpick\fP option is used by
2dd7ae
 default, which means the BMC picks the algorithm it wants to use.
2dd7ae
 
2dd7ae
diff --git a/man/openipmicmd.1 b/man/openipmicmd.1
2dd7ae
index 6bd2401..5d206d1 100644
2dd7ae
--- a/man/openipmicmd.1
2dd7ae
+++ b/man/openipmicmd.1
2dd7ae
@@ -22,7 +22,7 @@ interfaces.
2dd7ae
 Execute a single command an exit.
2dd7ae
 
2dd7ae
 .TP
2dd7ae
-.BI <connection parms>
2dd7ae
+.BI <connection\ parms>
2dd7ae
 The parameters for the connection depend on the connection type.
2dd7ae
 These are all described in openipmi_conparms (7)
2dd7ae
 
2dd7ae
@@ -32,7 +32,7 @@ Once up, you can execute commands in the user interface.  Note that
2dd7ae
 commands and responses are asynchronous, you issue a command and the
2dd7ae
 interface returns immediately.  When the response comes back, it will
2dd7ae
 be dumped on your console.  That's a little strange looking, but IPMI
2dd7ae
-is ansychronous underneath.  Note that the \fB\-k\fP option is synchronous,
2dd7ae
+is asynchronous underneath.  Note that the \fB\-k\fP option is synchronous,
2dd7ae
 it will wait for the response or a timeout before returning.
2dd7ae
 
2dd7ae
 .TP
2dd7ae
@@ -82,7 +82,7 @@ Remove a command registration.
2dd7ae
 .BR openipmi_conparms (7)
2dd7ae
 
2dd7ae
 .SH "KNOWN PROBLEMS"
2dd7ae
-The asychronous nature of the program can be annoying.
2dd7ae
+The asynchronous nature of the program can be annoying.
2dd7ae
 
2dd7ae
 .SH AUTHOR
2dd7ae
 .PP
2dd7ae
diff --git a/man/openipmigui.1 b/man/openipmigui.1
2dd7ae
index 04f880b..0c8c10f 100644
2dd7ae
--- a/man/openipmigui.1
2dd7ae
+++ b/man/openipmigui.1
2dd7ae
@@ -38,7 +38,7 @@ Turn on message debugging, this will dump all messages to debug log output.
2dd7ae
 .TP
2dd7ae
 .B \-\-drawmsg
2dd7ae
 Turn on raw message debugging, this will dump all low-level messages to
2dd7ae
-debug log output.  This differes from normal message debugging in that all
2dd7ae
+debug log output.  This differs from normal message debugging in that all
2dd7ae
 protocol messages are also dumped, not just IPMI messages.
2dd7ae
 .TP
2dd7ae
 .B \-\-dmem
2dd7ae
@@ -81,7 +81,7 @@ tree.
2dd7ae
 
2dd7ae
 The tree window has a top-level list of all the domains for which
2dd7ae
 OpenIPMI has connections (or pending connection).  Each domain
2dd7ae
-exapands into domain-specific information and a list of entities and
2dd7ae
+expands into domain-specific information and a list of entities and
2dd7ae
 Management Controllers (MCs) for that domain.
2dd7ae
 
2dd7ae
 Right click drives most of the operations in the tree window.  Many
2dd7ae
@@ -92,7 +92,7 @@ Color is used in the GUI to denote error status, and shading is used
2dd7ae
 to denote availability.  If a sensor has an error, the tree entry for
2dd7ae
 that sensor will change colors.  Black means no error, yellow means
2dd7ae
 warning, red means critical, and blue means non-recoverable.  These
2dd7ae
-errors propigate up, so the entity containing that sensor will be the
2dd7ae
+errors propagate up, so the entity containing that sensor will be the
2dd7ae
 same color as the most critical error for the sensors underneath it.
2dd7ae
 The same goes for domain, it will be the same color as the most
2dd7ae
 critical error for the entities underneath it.  This way, if you watch
2dd7ae
@@ -146,7 +146,7 @@ that sensor.
2dd7ae
 
2dd7ae
 .SH CONTROLS
2dd7ae
 
2dd7ae
-Controls are available under the entity they belong to.  control
2dd7ae
+Controls are available under the entity they belong to.  Control
2dd7ae
 information is beyond the scope of this document, as IPMI controls are
2dd7ae
 very complex.  See the IPMI document from OpenIPMI for information
2dd7ae
 about controls.
2dd7ae
@@ -214,7 +214,7 @@ channel listing.  Note that some user setting (the name and password)
2dd7ae
 are global to all channels on the MC.
2dd7ae
 
2dd7ae
 Due to the IPMI spec and some unfortunate implementation bugs, some
2dd7ae
-wierd issues exist with this information.  The user has an Enabled
2dd7ae
+weird issues exist with this information.  The user has an Enabled
2dd7ae
 value that tells whether the user is enabled or not.  When initially
2dd7ae
 displayed, this field shows as a "?" because this field is not
2dd7ae
 readable. It will displayed as the actual value when it is modified,
2dd7ae
@@ -247,7 +247,7 @@ changed.
2dd7ae
 .SH SOLPARMS
2dd7ae
 
2dd7ae
 In the channel display on a 8023_LAN channel, a LANPARM configuration
2dd7ae
-command is available if the MC supporte SOL (Serial Over LAN).  This
2dd7ae
+command is available if the MC supports SOL (Serial Over LAN).  This
2dd7ae
 pulls up all the parameters for the LAN and allows them to be set.
2dd7ae
 Right-clicking on an item allows it to be changed.
2dd7ae
 
2dd7ae
diff --git a/man/openipmish.1 b/man/openipmish.1
2dd7ae
index 36b1e43..2c902e4 100644
2dd7ae
--- a/man/openipmish.1
2dd7ae
+++ b/man/openipmish.1
2dd7ae
@@ -26,7 +26,7 @@ Turn on message debugging, this will dump all messages to debug log output.
2dd7ae
 .TP
2dd7ae
 .B \-\-drawmsg
2dd7ae
 Turn on raw message debugging, this will dump all low-level messages to
2dd7ae
-debug log output.  This differes from normal message debugging in that all
2dd7ae
+debug log output.  This differs from normal message debugging in that all
2dd7ae
 protocol messages are also dumped, not just IPMI messages.
2dd7ae
 .TP
2dd7ae
 .B \-\-dmem
2dd7ae
@@ -34,11 +34,21 @@ Turn on memory debugging, this will cause memory allocation and
2dd7ae
 deallocations to be checked.  When the program terminates, it will
2dd7ae
 dump all memory that was not properly freed (leaked).
2dd7ae
 .TP
2dd7ae
+.B \-\-dmsgerr
2dd7ae
+Turn on printing out low-level message errors.
2dd7ae
+.TP
2dd7ae
 .B \-\-dlock
2dd7ae
 Turn on lock debugging, this will check lock operations to make sure
2dd7ae
 that locks are help in all the proper places and make sure that locks
2dd7ae
 are properly nested.
2dd7ae
 .TP
2dd7ae
+\fB-x\fR\ <string>,\ \fB\-\-execute\fR\ <string>
2dd7ae
+Execute the given string at startup.  This may be entered multiple times
2dd7ae
+for multiple commands.
2dd7ae
+.TP
2dd7ae
+.B \-\-glib
2dd7ae
+Use glib for the OS handler.
2dd7ae
+.TP
2dd7ae
 .B \-\-snmp
2dd7ae
 Enable the SNMP trap handler.
2dd7ae
 .B openipmish
2dd7ae
diff --git a/man/rmcp_ping.1 b/man/rmcp_ping.1
2dd7ae
index d60019a..ce5cab0 100644
2dd7ae
--- a/man/rmcp_ping.1
2dd7ae
+++ b/man/rmcp_ping.1
2dd7ae
@@ -38,7 +38,7 @@ starttag.  This is zero by default
2dd7ae
 Turns on debugging to standard output.
2dd7ae
 .TP
2dd7ae
 .I destination
2dd7ae
-The target address, default is the boradcast address (default 255.255.255.255)
2dd7ae
+The target address, default is the broadcast address (default 255.255.255.255)
2dd7ae
 
2dd7ae
 .SH AUTHOR
2dd7ae
 .PP
2dd7ae
diff --git a/man/solterm.1 b/man/solterm.1
2dd7ae
index 1479a1b..ada15d8 100644
2dd7ae
--- a/man/solterm.1
2dd7ae
+++ b/man/solterm.1
2dd7ae
@@ -37,9 +37,9 @@ These are all described in openipmi_conparms (7)
2dd7ae
 .TP
2dd7ae
 .BI \-e\  escape_char
2dd7ae
 The character to use to escape, or exit, the program.  Entering this
2dd7ae
-chatacter right after a newline is entered causes the program to go
2dd7ae
+character right after a newline is entered causes the program to go
2dd7ae
 into command mode.  A single character after this performs a command.
2dd7ae
-The default escape character is "~" as shown below.  Suppported
2dd7ae
+The default escape character is "~" as shown below.  Supported
2dd7ae
 commands are:
2dd7ae
 .RS
2dd7ae
 .IP ~.
2dd7ae
@@ -98,7 +98,7 @@ the SoL session. This is the default.
2dd7ae
 .TP
2dd7ae
 .BI \-holdoff
2dd7ae
 Specifies that CTS, DTR, and DSR are to be deasserted at the start of
2dd7ae
-the SoL session so that the configuration may be modifeid before the
2dd7ae
+the SoL session so that the configuration may be modified before the
2dd7ae
 handshake is released.
2dd7ae
 
2dd7ae
 .TP
2dd7ae
diff --git a/sample/ipmicmd.c b/sample/ipmicmd.c
2dd7ae
index 6cbcdc5..5f5c1ec 100644
2dd7ae
--- a/sample/ipmicmd.c
2dd7ae
+++ b/sample/ipmicmd.c
2dd7ae
@@ -124,6 +124,7 @@ void usage(void)
2dd7ae
     printf("%s [-k <command>] [-v] <con_parms>\n", progname);
2dd7ae
     printf("Where <con_parms> is one of:");
2dd7ae
     ipmi_parse_args_iter_help(con_usage, NULL);
2dd7ae
+    printf("\n");
2dd7ae
 }
2dd7ae
 
2dd7ae
 char *
2dd7ae
diff --git a/sample/rmcp_ping.c b/sample/rmcp_ping.c
2dd7ae
index 7814792..5778fea 100644
2dd7ae
--- a/sample/rmcp_ping.c
2dd7ae
+++ b/sample/rmcp_ping.c
2dd7ae
@@ -156,6 +156,11 @@ main(int argc, char *argv[])
2dd7ae
 	if (strcmp(argv[i], "--") == 0) {
2dd7ae
 	    i++;
2dd7ae
 	    break;
2dd7ae
+	} else if ((strcmp(argv[i], "--help") == 0) ||
2dd7ae
+		   (strcmp(argv[i], "-?") == 0) ||
2dd7ae
+		   (strcmp(argv[i], "-h") == 0)) {
2dd7ae
+	    i++;
2dd7ae
+	    usage();
2dd7ae
 	} else if (strcmp(argv[i], "-p") == 0) {
2dd7ae
 	    i++;
2dd7ae
 	    if (i >= argc) {
2dd7ae
diff --git a/sample/solterm.c b/sample/solterm.c
2dd7ae
index 38a3f9d..a3e52de 100644
2dd7ae
--- a/sample/solterm.c
2dd7ae
+++ b/sample/solterm.c
2dd7ae
@@ -743,7 +743,12 @@ int main(int argc, char *argv[])
2dd7ae
 
2dd7ae
 	/* Now we make sure "lan" is the first argument so we get the
2dd7ae
 	   right connection type... */
2dd7ae
-	if (strcmp(argv[1], "lan") != 0) {
2dd7ae
+	if ((strcmp(argv[1], "-h") == 0) ||
2dd7ae
+	    (strcmp(argv[1], "--help") == 0) ||
2dd7ae
+	    (strcmp(argv[1], "-?") == 0)) {
2dd7ae
+		usage();
2dd7ae
+		exit(1);
2dd7ae
+	} else if (strcmp(argv[1], "lan") != 0) {
2dd7ae
 		fprintf(stderr, "main: %s only supports lan connections\n",
2dd7ae
 			progname);
2dd7ae
 		exit(1);
2dd7ae
diff --git a/ui/basic_ui.c b/ui/basic_ui.c
2dd7ae
index 6993eb2..84889cb 100644
2dd7ae
--- a/ui/basic_ui.c
2dd7ae
+++ b/ui/basic_ui.c
2dd7ae
@@ -306,6 +306,26 @@ snmp_init(os_handler_t *os_hnd)
2dd7ae
 static void snmp_setup_fds(os_handler_t *os_hnd) { }
2dd7ae
 #endif /* HAVE_UCDSNMP */
2dd7ae
     
2dd7ae
+void help(void)
2dd7ae
+{
2dd7ae
+    fprintf(stdout, "ipmi_ui [ options ] smi smi-num\n");
2dd7ae
+    fprintf(stdout, "ipmi_ui [ oprions ] lan IP port [IP2 port2] auth priv user pass\n");
2dd7ae
+    fprintf(stdout, "\n");
2dd7ae
+    fprintf(stdout, "Options:\n");
2dd7ae
+    fprintf(stdout, "    -c       Command line mode\n");
2dd7ae
+    fprintf(stdout, "    -dlock   Lock debugging ON\n");
2dd7ae
+    fprintf(stdout, "    -dmem    Memory debugging ON\n");
2dd7ae
+    fprintf(stdout, "    -drawmsg Raw message ON\n");
2dd7ae
+    fprintf(stdout, "    -dmsg    Dump all messages.\n");
2dd7ae
+#ifdef HAVE_UCDSNMP
2dd7ae
+    fprintf(stdout, "    -snmp    SNMP trap handler ON\n");
2dd7ae
+#endif
2dd7ae
+    fprintf(stdout, "Auth:\n");
2dd7ae
+    fprintf(stdout, "    none | straight | md5 | md2\n");
2dd7ae
+    fprintf(stdout, "Priv:\n");
2dd7ae
+    fprintf(stdout, "    callback | user | operator | admin\n");
2dd7ae
+}
2dd7ae
+
2dd7ae
 int
2dd7ae
 main(int argc, char *argv[])
2dd7ae
 {
2dd7ae
@@ -327,6 +347,11 @@ main(int argc, char *argv[])
2dd7ae
 	curr_arg++;
2dd7ae
 	if (strcmp(arg, "--") == 0) {
2dd7ae
 	    break;
2dd7ae
+	} else if (strcmp(arg, "-?") == 0 ||
2dd7ae
+		   strcmp(arg, "-h") == 0 ||
2dd7ae
+		   strcmp(arg, "--help") == 0) {
2dd7ae
+	   help();
2dd7ae
+	   return(1);
2dd7ae
 	} else if (strcmp(arg, "-c") == 0) {
2dd7ae
 	    full_screen = 0;
2dd7ae
 	} else if (strcmp(arg, "-dlock") == 0) {
2dd7ae
-- 
2dd7ae
2.7.4
2dd7ae