461 |
|
cpu_time = CUpTime.CPUTime |
462 |
|
percent_idle = CUpTime.PercentIdle |
463 |
|
|
464 |
+ |
userCount = wksta.LoggedOnUsers |
465 |
+ |
|
466 |
|
' build the contents of the XML packet |
467 |
|
xml = "<packet seq_no=""" & seqNo & """ machine_name=""" & machineName & """ date=""" & packetDate & """ type=""data"" ip=""" & LocalIP & """>" & _ |
468 |
|
"<os>" & _ |
474 |
|
"<processor>" & processorType & "</processor>" & _ |
475 |
|
"<uptime>" & uptime & "</uptime>" & _ |
476 |
|
"</os>" & _ |
477 |
+ |
"<users><count>" & userCount & "</count></users>" & _ |
478 |
|
"<cpu><idle>" & percent_idle & "</idle><user>" & cpu_time & "</user></cpu>" & _ |
479 |
|
"<memory><total>" & memTotal & "</total><free>" & memFree & "</free></memory>" & _ |
480 |
|
"<swap><total>" & swapTotal & "</total><free>" & swapFree & "</free></swap>" & _ |