Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: conserver: users

Varying the initcmd for a console

 

 

conserver users RSS feed   Index | Next | Previous | View Threaded


Andy.Pearce at austrocontrol

Oct 16, 2009, 12:19 AM

Post #1 of 5 (1130 views)
Permalink
Varying the initcmd for a console

Hi,

Is it possible to override the initcmd specified for a console
in the conserver.cf file, so that varying scripts can be run as
required when the console is opened without having to force a
re-read of the whole conserver.cf config file ?

Thanks

Andy Pearce



_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


Andras.Horvath at cern

Oct 16, 2009, 12:42 AM

Post #2 of 5 (1082 views)
Permalink
Re: Varying the initcmd for a console [In reply to]

On Fri, Oct 16, 2009 at 09:19:11AM +0200, Pearce Andy wrote:
> Is it possible to override the initcmd specified for a console
> in the conserver.cf file, so that varying scripts can be run as
> required when the console is opened without having to force a
> re-read of the whole conserver.cf config file ?

What do you mean? Varying in time?

I run a little script from my conserver.cf to open IPMI consoles; it
reads usernames/passwords from a file and launches ipmitool.

Andras
_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


Andy.Pearce at austrocontrol

Oct 16, 2009, 1:03 AM

Post #3 of 5 (1080 views)
Permalink
RE: Varying the initcmd for a console [In reply to]

Hi Andras,

As I understand it the conserver is started with a configuration file
conserver.cf that defines a set of consoles for various machines, output
from these machines is then logged. The conserver.cf that is read when
conserver starts can also specified a script that is to be run when the
console command is used to connect to the machine via the initcmd
option.

What I would like to do is to be able to specify, in some way,the script

that is executed when I make the console command, i.e. something like

console ... "determine-free-disk-space.sh"

[above syntax obviously rubbish, but that's the idea ]

I was wondering if the initcmd could be changed via the per-user-config
file that can be specified, but didn't appear so.

Andy

> -----Original Message-----
> From: users-bounces [at] conserver
> [mailto:users-bounces [at] conserver] On Behalf Of
> Andras.Horvath [at] cern
> Sent: Friday, October 16, 2009 9:43 AM
> To: users [at] conserver
> Subject: Re: Varying the initcmd for a console
>
>
> On Fri, Oct 16, 2009 at 09:19:11AM +0200, Pearce Andy wrote:
> > Is it possible to override the initcmd specified for a
> console in the
> > conserver.cf file, so that varying scripts can be run as
> required when
> > the console is opened without having to force a re-read of
> the whole
> > conserver.cf config file ?
>
> What do you mean? Varying in time?
>
> I run a little script from my conserver.cf to open IPMI
> consoles; it reads usernames/passwords from a file and
> launches ipmitool.
>
> Andras
> _______________________________________________
> users mailing list
> users [at] conserver https://www.conserver.com/mailman/listinfo/users
>
_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


Andras.Horvath at cern

Oct 16, 2009, 1:17 AM

Post #4 of 5 (1074 views)
Permalink
Re: Varying the initcmd for a console [In reply to]

On Fri, Oct 16, 2009 at 10:03:10AM +0200, Pearce Andy wrote:
>
> As I understand it the conserver is started with a configuration file
> conserver.cf that defines a set of consoles for various machines, output
> from these machines is then logged. The conserver.cf that is read when
> conserver starts can also specified a script that is to be run when the
> console command is used to connect to the machine via the initcmd
> option.

ahh, sorry, misunderstood your question (I'm aware of that feature but I
do not use it.)

> I was wondering if the initcmd could be changed via the per-user-config
> file that can be specified, but didn't appear so.

Interesting. I don't know a direct solution.

As a workaround, I'd script around 'console' with 'expect' :) to provide
different functionality as user-accessible scripts.

Andras
_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users


cpz at tuunq

Oct 16, 2009, 8:53 AM

Post #5 of 5 (1076 views)
Permalink
Re: Varying the initcmd for a console [In reply to]

Andras.Horvath [at] cern wrote:

> As a workaround, I'd script around 'console' with 'expect' :) to provide
> different functionality as user-accessible scripts.

That's where I'd start. OTOH, I don't remember if 'console' emits sensible
error/exit status. (Don't have an installation I can check at the moment.)

z!
_______________________________________________
users mailing list
users [at] conserver
https://www.conserver.com/mailman/listinfo/users

conserver users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.