RE: problem with hrSystemNumUsers

This is a discussion on RE: problem with hrSystemNumUsers within the SNMP Coders forums, part of the Networking and Network Related category; > On Thu, 2005-08-18 at 13:24 +0530, Naganarasimha wrote: >=20 > > My OS on my ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-22-2005
Penz, Bernhard
 
Posts: n/a
Default RE: problem with hrSystemNumUsers

> On Thu, 2005-08-18 at 13:24 +0530, Naganarasimha wrote:
>=20
> > My OS on my comp is windows 2000 and I tried the same in=20

> suse linux it=20
> > gives one gnome but 2 in KDE

>=20
> > So can some one explain why is it (hrSystemNumUsers ) having more=20
> > value then actually what it has

>=20
>=20
> This value is calculated differently on Windows- and=20
> Unix-based systems.
> Under Windows, it uses the call NetWkstaGetInfo(), and takes=20
> the value of the field wki102_logged_on_users. From the MSDN=20
> documentation:
>=20
> wki102_logged_on_users
> Specifies the number of users who are logged on to the
> local computer.
>=20
> I've no idea why this might be returning '2' instead of '1'.


This function will return 2 because the "SYSTEM" user for the various
Windows-Services is also logged in.

Regards,
Bernhard


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0