• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

OID to find the login user name of the computer

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am using SNMP to monitor the network devices, using SNMP4J.
I can list the host name, its system description but How can I get the login user name??
Is there any OID available for that or how can I get that??
 
Rancher
Posts: 1044
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does this question make sense?

Has every network device a (single) user login name?

Are a multi-user Linux box or a smart phone or a windows box running only services or a router network devices?
What is their "login user name"?
 
palavesamuthu Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.. Thanks for your comment...
My doubt is, If a computer in the network may have more than one account(admin, guest, other users).
Is it possible to find which account is logged in..??
I can get the details such as running services of the device, how long the machine was running.. etc..
I want to know is it possible or not...
 
Ivan Jozsef Balazs
Rancher
Posts: 1044
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suppose I log in into a Linux box with a given userid, and then make a

su command

(substitute user) to another user. Who is logged in then?

If a deamon ("service" in windows-parlance) is running, such a Postgres server as a dedicated Postgres user, is this user logged in?

Do logins through traditional (non-network) terminals count?

It is a problematic question without regard to SNMP.

 
palavesamuthu Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have no idea about Linux...
I am a complete newbie to this, anyway thanks a lot.
 
Ivan Jozsef Balazs
Rancher
Posts: 1044
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

palavesamuthu Ram wrote:
If a computer in the network may have more than one account(admin, guest, other users).
Is it possible to find which account is logged in..??



On Unix (including) Linux several users can be logged in at the same time and even though we usually think of a Windows box as a single-user one, it is conceivable to have several concurrent remote desktop sessions:

Enable Concurrent Remote Desktop Sessions in Windows with This Patch

My point is that this question is inherently vague: not every network device is a single-user Windows box...
 
palavesamuthu Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

not every network device is a single-user Windows box


yes, because this only this question came..
If a machine is single user one, then why should we find the log in name..
 
Ivan Jozsef Balazs
Rancher
Posts: 1044
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ordinary Windows OS'es let you define several users but only one can be active at a time. It is possible though to change the user, let the previous session alone, and to log in as different user. Then only the last one will be active but the other user sessions will lurk around. Instead if logging out, you can change to another user, and your previous session (open windows etc.) will remain conserved until you return.
 
palavesamuthu Ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again, your comments are really helpful....
 
Crusading Chameleon likes the size of this ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic