Re: [ofa-general] Re: opensm console -what is it?
On Wed, 2007-03-28 at 11:23, Ira Weiny wrote:
> On Wed, 28 Mar 2007 16:09:23 +0200
> Sasha Khapyorsky <[EMAIL PROTECTED]> wrote:
>
> > On Wed, 2007-03-28 at 14:48 +0200, Michael S. Tsirkin wrote:
>
>
>
> > >
> > > Hmm .. how does one exit?
> >
> > You cannot exit from local console, 'quit' will work with remote
> > console. If you want just to kill OpenSM you can use ^C.
> >
> > Sasha
>
> Sasha is correct. Here at LLNL we are making extensive use of the socket
> console to be able to change log levels and other parameters after opensm has
> been run as a daemon.
>
> The local console was kept as a feature for developers to make working with
> that interface easier. (And it was there before the socket was added so it
> did
> not cost much.) I believe all the other commands should work as advertised in
> the local mode.
>
> Here is a patch to the help menu of the quit command which should make things
> clearer.
Sure. How about also the following on top of your change:
OpenSM/osm_console.c: Indicate use ctl-c to quit in local mode
Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>
diff --git a/osm/opensm/osm_console.c b/osm/opensm/osm_console.c
index 4577ab7..5ce9c88 100644
--- a/osm/opensm/osm_console.c
+++ b/osm/opensm/osm_console.c
@@ -89,7 +89,7 @@ static void help_command(FILE *out, int
static void help_quit(FILE *out, int detail)
{
- fprintf(out, "quit (not valid in local mode)\n");
+ fprintf(out, "quit (not valid in local mode; use ctl-c)\n");
}
> Ira
>
>
> __
>
> ___
> general mailing list
> [email protected]
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
>
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
___
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
Re: [ofa-general] Re: opensm console -what is it?
On Wed, 28 Mar 2007 16:09:23 +0200
Sasha Khapyorsky <[EMAIL PROTECTED]> wrote:
> On Wed, 2007-03-28 at 14:48 +0200, Michael S. Tsirkin wrote:
> >
> > Hmm .. how does one exit?
>
> You cannot exit from local console, 'quit' will work with remote
> console. If you want just to kill OpenSM you can use ^C.
>
> Sasha
Sasha is correct. Here at LLNL we are making extensive use of the socket
console to be able to change log levels and other parameters after opensm has
been run as a daemon.
The local console was kept as a feature for developers to make working with
that interface easier. (And it was there before the socket was added so it did
not cost much.) I believe all the other commands should work as advertised in
the local mode.
Here is a patch to the help menu of the quit command which should make things
clearer.
Ira
>From ed8820c5f68825458a36922f5558d050bf5664fb Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <[EMAIL PROTECTED]>
Date: Wed, 28 Mar 2007 09:02:38 -0700
Subject: [PATCH] specify quit is not valid in local mode
Signed-off-by: Ira K. Weiny <[EMAIL PROTECTED]>
---
osm/opensm/osm_console.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/osm/opensm/osm_console.c b/osm/opensm/osm_console.c
index 7962c8c..4577ab7 100644
--- a/osm/opensm/osm_console.c
+++ b/osm/opensm/osm_console.c
@@ -89,7 +89,7 @@ static void help_command(FILE *out, int
static void help_quit(FILE *out, int detail)
{
- fprintf(out, "quit\n");
+ fprintf(out, "quit (not valid in local mode)\n");
}
--
1.4.4
___
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
[ofa-general] Re: opensm console -what is it?
On Wed, 2007-03-28 at 14:48 +0200, Michael S. Tsirkin wrote: > I see this (man opensm): > >-console [off | local | socket] > This option brings up the OpenSM console (default off). Note > that the > socket option will only be available if OpenSM > --enable-console-socket. > >-console-port > Specify an alternate telnet port for the socket console > (default 1). > Note that this option only appears if OpenSM was built with > --enable-con- > sole-socket. > > But what is it? This is simple console interface for OpenSM. > Let's try: > > # /usr/local/ofed/bin/opensm -console local > - > OpenSM Rev:openib-3.0.8 > Command Line Arguments: > Log File: /var/log/osm.log > - > OpenSM Rev:openib-3.0.8 > > Using default GUID 0x2c9020020ee11 > OpenSM $ Entering MASTER state > > SUBNET UP > > > Error parsing command line: > > OpenSM $ help > Supported commands and syntax: > help [] > quit > loglevel [] > priority [] > resweep [heavy|light] > status [loop] > logflush -- flush the osm.log file > OpenSM $ quit > OpenSM $ > Error parsing command line: > > OpenSM $ exit > exit : Command not found > > Supported commands and syntax: > help [] > quit > loglevel [] > priority [] > resweep [heavy|light] > status [loop] > logflush -- flush the osm.log file > OpenSM $ > > > Hmm .. how does one exit? You cannot exit from local console, 'quit' will work with remote console. If you want just to kill OpenSM you can use ^C. Sasha ___ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
