The remote desktop nomachine system status is now available as a MEDM screen (see attachment).
The top portion shows the status of the EPICS IOC which is parsing and serving this data.
The lower area shows the current remote desktop session lists and associated statistics. The user list is a duplicate of that provided by the nxserver --list command (see below).
Emprically we found that active sessions have the remote IP field completed and inactive sessions have a dash in this field. This is used to update the active/inactive session counters.
A cronjob on opslogin0 running every minute directs output from the nxserver command and to the /var/run/nomachine_sessions file. The EPICS IOC reads this file once a minute and updates the PVs.
Example nxserver --list output:
Mon Apr 6 13:27:01 PDT 2020
NX> 127 Available sessions:
Display Username Remote IP Session ID Node Client Type Client Version Client Platform
------- ---------------- ---------- -------------------------------- -------------- ----------- -------------- ---------------
1010 rahul.kumar 10.20.0.17 277A185632085B191523800F801C64DD localhost:4000 GUI 6.9.2 winnt
1003 cheryl.vorvick 10.20.0.17 627A0180FB63A3D1B52F2BBD803F9966 localhost:4000 GUI 6.9.2 macosx
1006 cheryl.vorvick 10.20.0.17 68E294E3A9FDCB5DA4A74BB0ACEBAB32 localhost:4000 GUI 6.9.2 macosx
1018 jim.warner 10.20.0.17 FEF8A3C2FF8B2D967D20E7ED68130435 localhost:4000 GUI 6.9.2 winnt
1002 david.barker 10.20.0.17 E720AC98E6DDE2BBCEFD704D4994C72E localhost:4000 GUI 6.9.2 macosx
1005 carlos.perez - 20CF28AD5B22FC43661265F6248E90DD localhost:4000 FF 68.0 - notset
1013 rahul.kumar 10.20.0.17 5FDD7010B4E60FD83A9918A6C16C8BFC localhost:4000 GUI 6.9.2 winnt
1008 sheila.dwyer - F3E3D3DA4DA99924C418AEE497D0FE0D localhost:4000 GUI 6.9.2 winnt
1004 keita.kawabe - D36E4093645839F3393214E9B097C1F2 localhost:4000 GUI 6.9.2 linux
1020 jonathan.hanks 10.20.0.13 94CCCF41A2F472DAF1CDAFBD38561E5A localhost:4000 GUI 6.9.2 linux
1014 corey.gray 10.20.0.17 3F4E6EA2CF5C3CE9A6F2E11913714A09 localhost:4000 GUI 6.9.2 macosx
1019 jenne.driggers 10.20.0.17 F1F0489DCEEC430BFE0CBB28CEF9C291 localhost:4000 GUI 6.9.2 macosx
1009 thomas.shaffer - 9CA741CDB0917A072710D6E181B2B1D9 localhost:4000 GUI 6.9.2 macosx
1015 jim.warner 10.20.0.17 DA24C6AEFC15D05BDE9CE0EE49B800C6 localhost:4000 GUI 6.9.2 winnt
1007 corey.gray 10.20.0.17 CBF54C8F0B24F2B202A1EC1885FD1526 localhost:4000 GUI 6.9.2 macosx
1017 david.barker 10.20.0.17 9FC1FCC06CEDD96881312DA1AF64878D localhost:4000 GUI 6.9.2 macosx
1012 carlos.perez 10.20.0.17 D3D41731F4B82CA73F8D91844124799E localhost:4000 FF 68.0 - linux
1016 richard.mccarthy 10.20.0.17 B88BCCA4762EE840A6139B8EA28954B0 localhost:4000 GUI 6.9.2 winnt
The nomachine MEDM can be opened by a button at the bottom of the Remote Access main MEDM (which in turn is linked from the SITEMAP and the CDS-Overview).