Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NT Task Manager On The Command Line?

Status
Not open for further replies.
Jan 19, 2000
57
US
Is there a way to grab the information that is displayed by the 32-bit Windows NT Task Manager in a raw text format?&nbsp;&nbsp;I've been told that this is not possible.&nbsp;&nbsp;<br><br>The reason this would be desirable is for the purpose of automating a manual check that we do now to ensure that no tasks go into &quot;Not responding&quot; status. <br><br>I look forward to your responses!&nbsp;&nbsp;<br><br>Mikeymac
 
any text that gets displayed on the screen should be redirectable to a file. <br>using <br>command &gt;path\file.txt to create and or over write the file<br>command &gt;&gt;path\file.txt to append to the file. <br><br>
 
Thanks for the reply, SRG! <br><br>But what would such a command be to see the output that appears in Task Manager?&nbsp;&nbsp;In particular, what is the command to see all Tasks and the status of each task?
 
Not sure how you put it a file in RTF as it updates in real time.<br><br>Not a solution but a workaround but you could grab the screen with&nbsp;&nbsp;ALT + PRINT SCREEN and paste it to the paint app, and print out.<br><br>Not great but a small step in the right direction.<br><br>If anyone else knows how to do this, would love to har it (it would gaurentee my vote for the most helpful post <br>:) ....) <p>Paul Ovey<br><a href=mailto:paul.ovey@avenue-legal.co.uk>paul.ovey@avenue-legal.co.uk</a><br><a href= > </a><br>
 
I am running windows 2000, but I think there is an equilivent NT res kit utility. The one I am using is called Tlist.exe it is part of the support tools for win2k. It shows the tasks and their PID's It does not show the status though. I am sure you cousl get the info through an API call but I don't know how to do that. are you running NT4? Sorry I kinda missed what you were lokoing for the first time. Let me know your OS ans SP and I will see what I can find.<br>
 
SRG: The two servers in question run NT 4.0 with Service Pack 6a.&nbsp;&nbsp;Should have posted that in the first place!&nbsp;&nbsp;:)<br><br>
 
OK, got it. Gonna take some time to figure it out as I don't actually have an NT 4 server anymore. Are you in a big rush? I'll try to look into this when I get home tonight.
 
SRG: I'm not in a big rush.&nbsp;&nbsp;Believe me, I'm grateful for ANY assistance offered here.&nbsp;&nbsp;I'm a bit of an NT neophyte...my natural habitat is UNIX.&nbsp;&nbsp;<br><br><br>Thanks again!&nbsp;&nbsp;<br><br>
 
This has turned out to be more difficult that I thought, still looking. I am sure it can be figured out, and now I want to know how.
 
SRG: Driven by your tip, I found and installed the TLIST utility on a test NT machine. As you said, it works like a champ for looking at active processes, but does not display the status of a process. PULIST is similar to TLIST, but displays owner information, and can be issued remotely.

I'm not sure whether a task that goes into &quot;Not responding&quot; status would STOP appearing as an active PID in the TLIST or PULIST output......probably not.

If the task DOES disappear from the TLIST output....that would give me what I need, as I could write a script that acts on the instance of the missing tzsk.

Curiouser, and curiouser........

Appreciate your help, SRG!

 
I think I might be on to something.

If you enter TLIST <task name> you get detailed information about that task, including some info about it's activity.

I won't be able to test the effectiveness of this for my purposes until our change board allows me to install the TLIST executable on the production server(s). (next week), and a &quot;Not responding&quot; condition occurs again.

Anyone know a way to force a task to go into &quot;Not responding&quot; status? I'd REALLY like to see what the TLIST output would look like in that case.

On the right trail.....

Mikeymac

 
Post what you find. I was not able to find anything better, but then I really havn't had the tyime to really search either.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top