Blame SOURCES/OpenIPMI-2.0.19-man.patch

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