r3 - 27 Jul 2006 - 22:57:44 - OktayAltunergilYou are here: TWiki >  Ltsp Web  >  ManIndex > LtspInfo

ltspinfo

This is a Perl script that can connect to the ltspinfod daemon running on a client. It is useful for querying a running client for configuration and environment information as well as performing some basic operations such as rebooting and shutting down a client remotely.

ltspinfo options

Avilable options in ltspinfo as of 4.1:
  • -h|--host=<hostname>
  • -p|--port=<port> default is 9200
  • -s|--shutdown
  • -r|--reboot
  • --cfg=<lts.conf option>
  • --proc=<file under client proc dir>

What are the -cfg and -proc option for?

The --cfg option is used to query the workstation for the value of a config entry from the lts.conf file. For instance, you could do this:

ltspinfo --host=ws001 --cfg=SOUND_DAEMON

and it would return the sound daemon that is configured for that workstation.

The --cfg option is not limited to the paramaters explicitly set in lts.conf and can also return other LTSP environment variables such as KERNEL_VERSION, CD_VOLUME. Please see /tmp/info on the clients to get a list of config variables available in this fashion.

The --proc option is for examining files in the /proc directory of the workstation. For example:

ltspinfo --host=ws001 --proc=meminfo

will read the contents of /proc/meminfo on the workstation and return the results. BUT, reading from /proc is disabled by default. You need to set 'ALLOW_PROCREAD = Y' in the lts.conf file.

-- EvanHisey - 23 Feb 2005

Shutting down or rebooting a LTSP client using ltspinfo

In order to shutdown a LTSP client, do the following

  • Edit lts.conf and add ALLOW_SHUTDOWN = Y
  • From the server send 'ltspinfo -h ws001 --shutdown

Substitute --reboot for --shutdown if you want to reboot the client

I'm sure there's a lot more that can be done with this, like using cronjobs to shut down all clients when it's closing time.

-- RichardSmith - 26 Jan 2005

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback