Sponsored Content
Full Discussion: perfmon
Special Forums Windows & DOS: Issues & Discussions perfmon Post 44005 by Perderabo on Wednesday 26th of November 2003 11:52:16 PM
Old 11-27-2003
On XP, we have tasklist which is very close to ps. The docs says "tasklist is a replacement for the tlist tool". So i would expect that you would have tlist on win2k.

I think that there is another option for you. I'm pretty sure that win2k has the windows scripting host and vbscript. When vbscript is running under wsh, it can access just about *any* com object. XP has a package called WMI and I think win2k has it too.

I don't understand everything that wmi can do yet, but I've download the technet script repository. You should do the same, or at least scan it. Here is one script that microsoft says will run on win2k....
Code:
Set objDictionary = CreateObject("Scripting.Dictionary")
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcesses = objWMIService.ExecQuery _
    ("Select * from Win32_Process")
For each objProcess in colProcesses 
    objDictionary.Add objProcess.ProcessID, objProcess.Name 
Next
Set colThreads = objWMIService.ExecQuery _
    ("Select * from Win32_Thread")
For each objThread in colThreads
    intProcessID = CInt(objThread.ProcessHandle)
    strProcessName = objDictionary.Item(intProcessID) 
    Wscript.Echo strProcessName & VbTab & objThread.ProcessHandle & _
        VbTab & objThread.Handle & VbTab & objThread.ThreadState 
Next

This will list all threads on the system. Quite a few of the monitoring script won't run on win2k. And I see a few that won't even run on xp. Or at least they're not supported.

But anyway, take a look at vbscript. It is an interesting tool.
 

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

Perfmon on centos

Hello I search monitoring tool like perfmon in Windows and i found perfmon2: perfmon2 How to correctly install perfmon2 on Linux ( centos ) ? Can he work on new kernels or 2.6.29 only for which it is the kernel-patch ? perfmon2 - Browse Files at SourceForge.net It may be a package of... (2 Replies)
Discussion started by: PtaQ
2 Replies
ACPIWMI(4)						   BSD Kernel Interfaces Manual 						ACPIWMI(4)

NAME
acpiwmi -- Windows Management Instrumentation support for ACPI SYNOPSIS
acpiwmi* at acpi? acpiwmibus* at acpiwmi? wmidell* at acpiwmibus? wmieeepc* at acpiwmibus? wmihp* at acpiwmibus? wmimsi* at acpiwmibus? DESCRIPTION
The acpiwmi device driver provides an ACPI interface for Windows Management Instrumentation (WMI). The ACPI WMI interface is typically used to support vendor specific features found in various laptops. The following WMI mappings are supported: wmidell Dell laptops wmieeepc Some models of Asus Eee PC wmihp Hewlett-Packard laptops wmimsi MSI laptops The functionality varies from vendor to vendor. Typically the interface is used for function and hotkey handling, but additional features may be present. SEE ALSO
acpi(4), acpidalb(4) Microsoft Corporation, Windows Instrumentation: WMI and ACPI, http://www.microsoft.com/whdc/system/pnppwr/wmi/wmi-acpi.mspx, December 4, 2001. HISTORY
The acpiwmi device driver appeared in NetBSD 6.0. AUTHORS
Jukka Ruohonen <jruohonen@iki.fi> wrote acpiwmi and most of the mappings. CAVEATS
While WMI should provide a certain degree of portability across laptop models from a particular vendor, there is no guarantee that the map- pings are functional in all models. The wmihp driver may conflict with hpqlb(4). BSD
February 16, 2011 BSD
All times are GMT -4. The time now is 01:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy