Dos Command

SpiffyGuy

Member
Jun 4, 2002
71
0
0
Anyone know if there is a DOS command similar to, I believe it is TOP in UNIX. I would like to via a telnet session be able to check utilization of CPU and processes. A command that would display results similar to taskmanager? Any ideas?

Thanks
spiffyguy
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
I believe there are some command-line programs available in the Windows NT Resource kit. But here's some free software that'll do that and lots more: from SysInternals
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
Originally posted by: SpiffyGuy
aahh but there isn't a built in command in DOS to do it. What was Bill thinking


The SysInternal tools are better than anything MS could have come up with Just to get the terminology straight - there is no DOS anymore, just a Command Prompt + 'Console' applications
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
aahh but there isn't a built in command in DOS to do it. What was Bill thinking

top isn't built in to any shells on unix, it's in the procps package on my Debian boxes.

mem /c isn't even close to what top displays.
 

Woodie

Platinum Member
Mar 27, 2001
2,747
0
0
Check the resource kit:

I don't know what TOP does, but this is what I found:
perfmtr
Type :
'C' for CPU usage
'V' for VM usage
'F' for File Cache usage
'R' for Cache Manager reads and writes
'P' for POOL usage
'I' for I/O usage
'X' for x86 Vdm Stats
'S' for Server Stats
'H' for header
'Q' to quit

CPU Usage Page Page Page InCore NonP Pgd Incore Pgd Incore Incore Proc Thd
Flts Aval Pool PgPool Pool Krnl Krnl Drvr Drvr Cache Cnt Cnt
* | 26 18463 9376 (9306) 1184 192 (2092) 483 ( 69) (2281) 42 307
* | 5 18459 9376 (9306) 1184 192 (2092) 483 ( 69) (2281) 42 307
^C

The table at the bottom probably doesn't line up correctly.

pulist /?
PULIST for Windows NT v1.00 Dec 21 1999 07:44:32
(c) Copyright 1996 Scott Field and Microsoft Corp.
This utility displays all the processes running on a system.
If no server name is specified, this utility will attempt to display
the username associated with each process running on the local system.

Usage: pulist [\\Server] [\\Server...]

There are many more tools there, I just picked those. This one could be fun too!
rkill /?
Usage : rkill /view \\servername
to get the process list on servername
Usage : rkill /kill \\servername pid
to kill process pid on servername
Usage : rkill /nkill \\servername process.exe
to kill a process by name on servername
Usage : rkill /token \\servername
to get your remote security token on servername
Usage : rkill /install \\servername
to install the RemoteKill service on servername
Usage : rkill /deinstall \\servername
to deinstall the RemoteKill service on servername

 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Sample top output:

11:12:17 up 5 days, 1:38, 3 users, load average: 2.20, 1.21, 0.60
63 processes: 59 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 71.2% user, 3.8% system, 0.0% nice, 25.0% idle
Mem: 190496K total, 185876K used, 4620K free, 244K buffers
Swap: 529120K total, 39320K used, 489800K free, 73256K cached

PID USER PRI NI RSS SHARE WCHAN STAT %CPU %MEM TIME COMMAND
1253 root 20 -10 31M 3904 - R < 69.0 17.1 1605m XFree86
22840 jcrilly 14 0 1664 752 - R 2.8 0.8 0:00 top
668 root 9 0 1108 992 select S 0.9 0.5 4:05 nmbd
1554 jcrilly 9 0 2624 2276 - R 0.9 1.3 7:16 gkrellm
22835 jcrilly 9 0 2076 1872 select S 0.4 1.0 0:00 sshd
1 root 8 0 436 416 select S 0.0 0.2 0:05 init
2 root 9 0 0 0 context_t SW 0.0 0.0 0:01 keventd
3 root 19 19 0 0 ksoftirqd SWN 0.0 0.0 0:00 ksoftirqd_CPU
4 root 9 0 0 0 kswapd SW 0.0 0.0 0:17 kswapd
5 root 9 0 0 0 bdflush SW 0.0 0.0 0:00 bdflush
6 root 9 0 0 0 kupdate SW 0.0 0.0 0:36 kupdated
7 root 9 0 0 0 pagebuf_d SW 0.0 0.0 0:00 pagebuf_daemo
610 root 9 0 772 696 select S 0.0 0.4 0:04 syslogd
613 root 9 0 396 396 syslog S 0.0 0.2 0:00 klogd
623 root 9 0 612 612 select S 0.0 0.3 0:00 inetd
665 uucp 9 0 812 752 select S 0.0 0.4 0:00 qpage
670 root 8 0 880 780 select S 0.0 0.4 0:00 smbd
760 root 9 0 1756 1632 select S 0.0 0.9 0:03 sendmail

It's obviously better formatted on the terminal =)
And for the record X is using so much CPU because a screensaver is running =)

PID is the Process ID
USER is the user the process is running as
PRI is the process' current priority
NI is the process nice level (higher nice level is lower priority)
RSS is the process resident set size, i.e. how much memory is currently allocated
SHARE is the process shared memory size, mostly shared libs
WCHAN is the function the process is sleeping in
STAT is the current state, running ,sleeping, zombie, etc
%CPU is the current cpu usage
%MEM is the current memory usage, not counting swap
TIME is CPU time used, not the process life time

There are other columns available, these are just what I have enabled.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |