How to identify the session name with SessionID or DISPLAY

Forum / NoMachine for Linux / How to identify the session name with SessionID or DISPLAY

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38981
    nomachine_sg
    Participant

    Hi,

    I have two connection files (test1.nxs and test2.nxs) and I’m creating 2 sessions on a same linux machine with NX7:

    sudo  /usr/NX/bin/nxserver –list

    NX> 127 Available sessions:

    Display Username Remote IP    Session ID                       Node

    ——- ——– ———— ——————————– ————–

    1001    myuser   10.11.12.13 F8XXXXXD4C72F4DD800ZZZZZ25 localhost:4000

    1002    myuser   10.11.12.13 E5XXXXX41D62AB0734E4ZZZZZC2 localhost:4000

    How can I determine the DISPLAY used by test1.nxs and the one used by test2.nxs ?

    With NX6, grep MainSession /usr/NX/var/db/running/sessionId* was able to yield an answer. But with NX7 I’m not able to associate the name of the session (test1 and test2) with the SessionID or the DISPLAY.

     

    Thanks in advance,

    Jean-Paul

     

    #39013
    nomachine_sg
    Participant

    I figured out a solution:

    /usr/NX/bin/nxserver --history --verbose
    Display Type                  Session ID                       Services Depth Screensize     Status    Session name                                        Username Platform                             Users Date
    1002    shadow                C366XXXXD2E4D8516CFAC378D16 --D--PSA N/A   2752x1089      Connected dev2                                        myuser   centos linux release 7.9.2009 (core) 0     2022-06-25 17:14:53
    1001    unix-xsession-default 55BXXXX557603A1F315E47643A3 --D--PSA 24    1920x1080      Connected test1                                               myuser centos linux release 7.9.2009 (core) 1     2022-06-25 16:38:47

    Please note that the --verbose option is not documented when using --help

    #39091
    Britgirl
    Keymaster

    HI, with the release of v7 all details from the folder were moved to redis database to increase performance of the NoMachine server. I can confirm that to be able to identify session name with display and username included you can use the command --history --verbose.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic was marked as solved, you can't post.