Python Forum
Query number of Logged in users?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Query number of Logged in users?
#1
Hi,

I am trying to write an applet that scans a number of servers, and returns the number of logged in users per server.

Background : I have a cirtix environment, and we have instances that allow up to 30 users per machine. 

I have started to get somewhere with the "getpass" function.

>>> import getpass
>>> getpass.getuser()
'UserXYZ'

Basically what i intend to do is write an applet that counts how many users are logged in (by counting usernames possibly?)

How do I query a remote machine using python, to retrieve the list of logged in users?
Say NO to TROLLs!!  **naughty**
Reply


Messages In This Thread
Query number of Logged in users? - by S0undwav3 - Feb-13-2017, 01:33 PM
RE: Query number of Logged in users? - by S0undwav3 - Feb-13-2017, 07:41 PM
RE: Query number of Logged in users? - by S0undwav3 - Feb-13-2017, 09:24 PM
RE: Query number of Logged in users? - by Larz60+ - Feb-13-2017, 10:16 PM
RE: Query number of Logged in users? - by S0undwav3 - Feb-15-2017, 01:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Logged On User - Remote Machines mickrobinson567812 0 1,569 Apr-20-2020, 11:43 AM
Last Post: mickrobinson567812

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020