[Thinlinc-technical] Command line utility for managing user sessions
Peter Åstrand
astrand at cendio.se
Tue Jan 29 16:02:19 CET 2013
>
> Is there a command line utility for terminating and displaying user sessions
> in a ThinLinc cluster in a similar manner as with the Web Administration
> Interface?
>
> I know there is tl-session-param which displays session parameters of the
> user calling it, but AFIC, tl-session-param cannot be used by root, for
> instance, to query session parameters of user `foo'.
Hi. Creating such a command line utility remains to be done:
https://www.cendio.com/bugzilla/show_bug.cgi?id=3707
However, it is still possible to do many tasks from the command line if
you know the correct "charms". Here are some examples:
System Health Check
===================
Check services:
# /etc/init.d/vsmserver status
# /etc/init.d/vsmagent status
User and Group Lookup:
# time getent passwd myuser
# time getent group mygroup
Status
======
Licenses:
# tail /var/log/thinlinc-user-licenses
Load:
UNIX:
# tl-ssh-all "uname -n;uptime;vmstat"
(not exactly the same information though)
Windows:
# tl-best-winserver -v dummy `tl-config /appservergroups/rdp/default/servers`
(repeat for all groups)
List session information:
Sessions on this machine:
# who | grep thinlinc/
Entire cluster, more info:
# tl-ssh-all "uname -n; who | grep thinlinc/"
# tl-ssh-all "uname -n; ps u -C tl-session"
Terminate all sessions for certain user:
# pkill -u someusername tl-xinit
Terminate session with specified number:
# pkill -f 'tl-xinit .*:47'
(where 47 is the session number)
Profiles
========
Names of active profiles:
# tl-config /profiles/order | xargs -n1 | xargs -i tl-config /profiles/{}/name
Locations
=========
All locations:
# tl-config -Ra /printing/nearest/locations
Terminals:
# tl-config -Ra /printing/nearest/terminals
Desktop Customizer
==================
List Application Groups:
# tl-config -Ra /utils/tl-desktop-customizer/groups
Names of Applications Defined Manually:
# grep -h Name= /opt/thinlinc/desktops/xdg_data_dir/applications/thinlinc/*.desktop
Application Servers
===================
UNIX ASGs:
# tl-config -Ra /appservergroups/x11
Windows ASGs:
# tl-config -Ra /appservergroups/rdp
Best regards,
---
Peter Åstrand ThinLinc Chief Developer
Cendio AB http://cendio.com
Teknikringen 8 http://twitter.com/ThinLinc
583 30 Linköping http://facebook.com/ThinLinc
Phone: +46-13-214600 http://plus.google.com/112509906846170010689
More information about the Thinlinc-technical
mailing list