summaryrefslogtreecommitdiff
path: root/util/idcmi.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-11-12 17:25:25 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-11-12 17:25:25 +0100
commit14304e0827cd7de7fc55b1ba587ccdd380525b94 (patch)
treef70c126b91e68b66d7005cfea53b88a82aa0c7fa /util/idcmi.c
parentd279e229635f19852dc829552aa7c7d72d7a4dd2 (diff)
New upstream release
Diffstat (limited to 'util/idcmi.c')
-rw-r--r--util/idcmi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/idcmi.c b/util/idcmi.c
index 1ba08cd..bcd728f 100644
--- a/util/idcmi.c
+++ b/util/idcmi.c
@@ -62,7 +62,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "idcmi.h"
static char * progname = "idcmi";
-static char * progver = "2.94";
+static char * progver = "2.95";
extern char fdebug; /*from ipmicmd.c*/
static uchar g_bus = PUBLIC_BUS;
static uchar g_sa = BMC_SA;
@@ -109,7 +109,7 @@ static int dcmi_usage(void)
printf(" -m002000 specific MC (bus 00,sa 20,lun 00)\n");
printf(" -s Get DCMI sensor info\n");
printf(" -x Display extra debug messages\n");
- print_lan_opt_usage();
+ print_lan_opt_usage(1);
printf("where <function> is one of:\n");
printf(" info Get DCMI Capabilities, MC ID, asset tag (default)\n");
printf(" power [get] Get Power reading & limit\n");
@@ -747,7 +747,7 @@ main(int argc, char **argv)
printf("%s ver %s\n", progname,progver);
parse_lan_options('V',"4",0); /*default to admin priv*/
- while ( (c = getopt( argc, argv,"a:d:m:sT:V:J:EYF:P:N:R:U:Z:x?")) != EOF )
+ while ( (c = getopt( argc, argv,"a:d:m:p:sT:V:J:EYF:P:N:R:U:Z:x?")) != EOF )
switch (c) {
case 'a': set_asset = 1; asset_new = optarg; break;
case 'd': set_mcid = 1; mcid_new = optarg; break;
@@ -765,6 +765,7 @@ main(int argc, char **argv)
break;
case 's': do_sensors = 1; break;
case 'x': fdebug = 1; break; /* debug messages */
+ case 'p': /* port */
case 'N': /* nodename */
case 'U': /* remote username */
case 'P': /* remote password */