1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Command line utility to capture system utilisation

Discussion in 'Windows XP' started by dingdongdingding, Jul 27, 2010.

  1. dingdongdingding

    dingdongdingding Flightless Bird

    Is there any command line utilisation to capture CPU, memory, network,
    harddisk or some of these ? Thanks, sc
     
  2. John John - MVP

    John John - MVP Flightless Bird

    On 7/28/2010 3:07 AM, dingdongdingding wrote:
    > Is there any command line utilisation to capture CPU, memory, network,
    > harddisk or some of these ? Thanks, sc


    Which version of Windows XP are you using? With XP Pro you can use WMIC.

    John
     
  3. dingdongdingding

    dingdongdingding Flightless Bird

    Mine is Home. Advice ? Thanks

    On Jul 28, 6:51 pm, John John - MVP <audetw...@nbnot.nb.ca> wrote:
    > On 7/28/2010 3:07 AM, dingdongdingding wrote:
    >
    > > Is there any command line utilisation to capture CPU, memory, network,
    > > harddisk or some of these ?  Thanks, sc

    >
    > Which version of Windows XP are you using?  With XP Pro you can use WMIC.
    >
    > John
     
  4. John John - MVP

    John John - MVP Flightless Bird

    I don't know of any off hand.

    John

    dingdongdingding wrote:
    > Mine is Home. Advice ? Thanks
    >
    > On Jul 28, 6:51 pm, John John - MVP <audetw...@nbnot.nb.ca> wrote:
    >> On 7/28/2010 3:07 AM, dingdongdingding wrote:
    >>
    >>> Is there any command line utilisation to capture CPU, memory, network,
    >>> harddisk or some of these ? Thanks, sc

    >> Which version of Windows XP are you using? With XP Pro you can use WMIC.
    >>
    >> John

    >
     
  5. Mike S

    Mike S Flightless Bird

    On 7/28/2010 7:18 AM, dingdongdingding wrote:
    > Mine is Home. Advice ? Thanks
    >
    > On Jul 28, 6:51 pm, John John - MVP<audetw...@nbnot.nb.ca> wrote:
    >> On 7/28/2010 3:07 AM, dingdongdingding wrote:
    >>
    >>> Is there any command line utilisation to capture CPU, memory, network,
    >>> harddisk or some of these ? Thanks, sc

    >>
    >> Which version of Windows XP are you using? With XP Pro you can use WMIC.
    >>
    >> John


    Does this work on your home version?

    http://www.windowsnetworking.com/kb...ips/Utilities/WindowsXPSystemInfoUtility.html

    systeminfo > sysinfo.txt

    Mike
     
  6. Mike S

    Mike S Flightless Bird

    On 7/28/2010 7:18 AM, dingdongdingding wrote:
    > Mine is Home. Advice ? Thanks
    >
    > On Jul 28, 6:51 pm, John John - MVP<audetw...@nbnot.nb.ca> wrote:
    >> On 7/28/2010 3:07 AM, dingdongdingding wrote:
    >>
    >>> Is there any command line utilisation to capture CPU, memory, network,
    >>> harddisk or some of these ? Thanks, sc

    >>
    >> Which version of Windows XP are you using? With XP Pro you can use WMIC.
    >>
    >> John


    You know about netstat and ipconfig right?

    http://commandwindows.com/tcpiputil.htm
     
  7. Mike S

    Mike S Flightless Bird

    On 7/28/2010 3:51 AM, John John - MVP wrote:
    > On 7/28/2010 3:07 AM, dingdongdingding wrote:
    >> Is there any command line utilisation to capture CPU, memory, network,
    >> harddisk or some of these ? Thanks, sc

    >
    > Which version of Windows XP are you using? With XP Pro you can use WMIC.


    Are you sure it requires Pro?

    http://technet.microsoft.com/en-us/library/bb742610.aspx

    Microsoft is creating a lot of good reasons to make the command prompt
    in Windows XP and the Windows Server 2003 family your home for systems
    management.

    Mike
     
  8. Mike S

    Mike S Flightless Bird

    On 7/27/2010 11:07 PM, dingdongdingding wrote:
    > Is there any command line utilisation to capture CPU, memory, network,
    > harddisk or some of these ? Thanks, sc


    processor

    http://www.computing.net/answers/windows-2000/output-cpu-utilization-to-text-file/65928.html

    typeperf "\Processor(_Total)\% Processor Time" -sc 1 > proc.txt

    I'm not sure how many other processor commands you can run this way but
    it looks like a lot

    ---------------------
    http://www.mssqltips.com/tip.asp?tip=1575

    As a DBA I like to take advantage of command line tools when I'm working
    on performance tuning and optimizing my SQL Server databases. One of
    the things I typically need to do is to collect performance data on the
    server which includes CPU, memory and disk utilization as well as SQL
    Server-specific data. What command line tools are available to do this?

    Solution
    TYPEPERF.EXE is a command line tool included with the Windows operating
    system that writes performance data to the command window or to a file.
    It is necessary to capture performance data whenever you are trying to
    diagnose performance issues on a server. Performance data provides
    information on the server's utilization of the processor, memory, and
    disk, as well as SQL Server-specific performance data.

    ----------------
    http://www.microsoft.com/resources/...ddocs/en-us/nt_command_typeperf.mspx?mfr=true

    To display processor and memory counters, type:
    typeperf "\Memory\Available bytes" "\processor(_total)\% processor time"

    -----------------
    https://www.faultwire.com/file_detail/typeperf.exe*297.html

    run typeperf -q to see a list of things that it can report on

    -----------------

    more reading:

    http://blogs.technet.com/b/askperf/archive/2009/05/12/two-minute-drill-typeperf.aspx

    http://technet.microsoft.com/en-us/library/cc753182(WS.10).aspx

    Mike
     
  9. John John - MVP

    John John - MVP Flightless Bird

    Mike S wrote:
    > On 7/28/2010 3:51 AM, John John - MVP wrote:
    >> On 7/28/2010 3:07 AM, dingdongdingding wrote:
    >>> Is there any command line utilisation to capture CPU, memory, network,
    >>> harddisk or some of these ? Thanks, sc

    >>
    >> Which version of Windows XP are you using? With XP Pro you can use WMIC.

    >
    > Are you sure it requires Pro?


    Yes.

    > http://technet.microsoft.com/en-us/library/bb742610.aspx
    >
    > Microsoft is creating a lot of good reasons to make the command prompt
    > in Windows XP and the Windows Server 2003 family your home for systems
    > management.


    XP Home is lacking of several of the command line tools available in XP
    Pro and XP Pro is lacking of a lot of the tools available on Server
    2003. As for your other suggestions, my understanding of the OP's post
    was that he wanted to monitor from the command line, if all he wants is
    to list the installed hardware then there are many built-in tools for
    this, like the ones you suggested. If he wants to monitor the only one
    that would work would be typeperf.

    John
     
  10. John John - MVP

    John John - MVP Flightless Bird

    John John - MVP wrote:
    > Mike S wrote:
    >> On 7/28/2010 3:51 AM, John John - MVP wrote:
    >>> On 7/28/2010 3:07 AM, dingdongdingding wrote:
    >>>> Is there any command line utilisation to capture CPU, memory, network,
    >>>> harddisk or some of these ? Thanks, sc
    >>>
    >>> Which version of Windows XP are you using? With XP Pro you can use WMIC.

    >>
    >> Are you sure it requires Pro?

    >
    > Yes.
    >
    >> http://technet.microsoft.com/en-us/library/bb742610.aspx
    >>
    >> Microsoft is creating a lot of good reasons to make the command prompt
    >> in Windows XP and the Windows Server 2003 family your home for systems
    >> management.

    >
    > XP Home is lacking of several of the command line tools available in XP
    > Pro and XP Pro is lacking of a lot of the tools available on Server
    > 2003. As for your other suggestions, my understanding of the OP's post
    > was that he wanted to monitor from the command line, if all he wants is
    > to list the installed hardware then there are many built-in tools for
    > this, like the ones you suggested. If he wants to monitor the only one
    > that would work would be typeperf.


    On second thought, I don't think that Typeperf is available on XP Home.

    John
     
  11. John John - MVP

    John John - MVP Flightless Bird

    Mike S wrote:
    > On 7/27/2010 11:07 PM, dingdongdingding wrote:
    >> Is there any command line utilisation to capture CPU, memory, network,
    >> harddisk or some of these ? Thanks, sc

    >
    > processor
    >
    > http://www.computing.net/answers/windows-2000/output-cpu-utilization-to-text-file/65928.html
    >
    >
    > typeperf "\Processor(_Total)\% Processor Time" -sc 1 > proc.txt
    >
    > I'm not sure how many other processor commands you can run this way but
    > it looks like a lot


    I stand to be corrected but as far as I know this tool (Typeperf) is not
    available on XP Home.

    John
     
  12. dingdongdingding

    dingdongdingding Flightless Bird

    Thanks very much for all the links and replies.

    Let me explain why I ask this question. I download/upload files when
    I'm not at home. My machine has a problem going to standby so I want
    to ask somebody to switch off the PC when it's done.

    I thought I can monitor the Network utilisation, send the output to my
    office email using bmail, and when the network utilistion goes down, I
    can call home to ask them to off it.

    But now, I found that the upload/download utility I use generates a
    log which I can tail off the last part and email to my office email.

    I've set it up already but I've not tested it at my office yet.

    Thanks again for your help.

    On Jul 29, 7:25 pm, John John - MVP <audetw...@nbnet.nb.ca> wrote:
    > John John - MVP wrote:
    >
    >
    >
    >
    >
    > > Mike S wrote:
    > >> On 7/28/2010 3:51 AM, John John - MVP wrote:
    > >>> On 7/28/2010 3:07 AM, dingdongdingding wrote:
    > >>>> Is there any command line utilisation to capture CPU, memory, network,
    > >>>> harddisk or some of these ? Thanks, sc

    >
    > >>> Which version of Windows XP are you using? With XP Pro you can use WMIC.

    >
    > >> Are you sure it requires Pro?

    >
    > > Yes.

    >
    > >>http://technet.microsoft.com/en-us/library/bb742610.aspx

    >
    > >> Microsoft is creating a lot of good reasons to make the command prompt
    > >> in Windows XP and the Windows Server 2003 family your home for systems
    > >> management.

    >
    > > XP Home is lacking of several of the command line tools available in XP
    > > Pro and XP Pro is lacking of a lot of the tools available on Server
    > > 2003.  As for your other suggestions, my understanding of the OP's post
    > > was that he wanted to monitor from the command line, if all he wants is
    > > to list the installed hardware then there are many built-in tools for
    > > this, like the ones you suggested.  If he wants to monitor the only one
    > > that would work would be typeperf.

    >
    > On second thought, I don't think that Typeperf is available on XP Home.
    >
    > John- Hide quoted text -
    >
    > - Show quoted text -
     
  13. John John - MVP

    John John - MVP Flightless Bird

    You're welcome.

    John

    On 7/30/2010 5:54 AM, dingdongdingding wrote:
    > Thanks very much for all the links and replies.
    >
    > Let me explain why I ask this question. I download/upload files when
    > I'm not at home. My machine has a problem going to standby so I want
    > to ask somebody to switch off the PC when it's done.
    >
    > I thought I can monitor the Network utilisation, send the output to my
    > office email using bmail, and when the network utilistion goes down, I
    > can call home to ask them to off it.
    >
    > But now, I found that the upload/download utility I use generates a
    > log which I can tail off the last part and email to my office email.
    >
    > I've set it up already but I've not tested it at my office yet.
    >
    > Thanks again for your help.
    >
    > On Jul 29, 7:25 pm, John John - MVP<audetw...@nbnet.nb.ca> wrote:
    >> John John - MVP wrote:
    >>
    >>
    >>
    >>
    >>
    >>> Mike S wrote:
    >>>> On 7/28/2010 3:51 AM, John John - MVP wrote:
    >>>>> On 7/28/2010 3:07 AM, dingdongdingding wrote:
    >>>>>> Is there any command line utilisation to capture CPU, memory, network,
    >>>>>> harddisk or some of these ? Thanks, sc

    >>
    >>>>> Which version of Windows XP are you using? With XP Pro you can use WMIC.

    >>
    >>>> Are you sure it requires Pro?

    >>
    >>> Yes.

    >>
    >>>> http://technet.microsoft.com/en-us/library/bb742610.aspx

    >>
    >>>> Microsoft is creating a lot of good reasons to make the command prompt
    >>>> in Windows XP and the Windows Server 2003 family your home for systems
    >>>> management.

    >>
    >>> XP Home is lacking of several of the command line tools available in XP
    >>> Pro and XP Pro is lacking of a lot of the tools available on Server
    >>> 2003. As for your other suggestions, my understanding of the OP's post
    >>> was that he wanted to monitor from the command line, if all he wants is
    >>> to list the installed hardware then there are many built-in tools for
    >>> this, like the ones you suggested. If he wants to monitor the only one
    >>> that would work would be typeperf.

    >>
    >> On second thought, I don't think that Typeperf is available on XP Home.
    >>
    >> John- Hide quoted text -
    >>
    >> - Show quoted text -

    >
     
  14. mscir

    mscir Flightless Bird

    dingdongdingding wrote:
    <snip>
    > Let me explain why I ask this question. I download/upload files when
    > I'm not at home. My machine has a problem going to standby so I want
    > to ask somebody to switch off the PC when it's done.
    > I thought I can monitor the Network utilisation, send the output to my
    > office email using bmail, and when the network utilistion goes down, I
    > can call home to ask them to off it.

    <snip>

    I write Visual Basic 6 programs, I already have a program that monitors
    download and upload rates, I can add a little code to watch for a
    condition where the download rate falls below a certain rate for a
    certain amount of time and then hibernates the machine. If you would
    like a demo that just pops up a message instead of doing the hibernate
    so you can test it, reply to me at mscir at yahoo dot com.

    Mike
     

Share This Page