Problem with TypePerf and interval option

  • Thread starter Thread starter Mill#99
  • Start date Start date
M

Mill#99

Hi all,

I got a problem with the typeperf command.

When I set a number of secondes for the "-si" option and run the command
line, it stay "idle"... but when I remove the option, the command-line work
ans display the value.

Exemple of command :

typeperf "\Process(Explorer)\Thread Count" -s myserver -si 5
or
typeperf "\Process(Explorer)\Thread Count" -s myserver -si 00:05
or
typeperf "\Process(Explorer)\Thread Count" -s myserver -si 00:00:05

And if you remove the "-si" option, the command line work and display value
each seconde... but I would like to poll each 5 secondes with the "-si"
option

According to this page
(http://technet.microsoft.com/fr-fr/library/bb490960(en-us).aspx), the
problem stay the same... :(

Is anybody got a correct command line syntax which works with the interval
option ?

Thank for your help :)

Mîll#99
 
Hi all,

I got a problem with the typeperf command.

When I set a number of secondes for the "-si" option and run the command
line, it stay "idle"... but when I remove the option, the command-line work
ans display the value.

Exemple of command :

typeperf  "\Process(Explorer)\Thread Count" -s myserver -si 5
or
typeperf  "\Process(Explorer)\Thread Count" -s myserver -si 00:05
or
typeperf  "\Process(Explorer)\Thread Count" -s myserver -si 00:00:05

And if you remove the "-si" option, the command line work and display value
each seconde... but I would like to poll each 5 secondes with the "-si"
option

According to this page
(http://technet.microsoft.com/fr-fr/library/bb490960(en-us).aspx), the
problem stay the same... :(

Is anybody got a correct command line syntax which works with the interval
option ?

Thank for your help :)

Mîll#99

All of those examples work for me on my local machine, for example ...

C:Script\Testing>typeperf "\Process(Explorer)\Thread Count" -s . -si
00:00:01

"(PDH-CSV 4.0)","\\.\Process(Explorer)\Thread Count"
"10/22/2008 08:46:15.496","13.000000"
"10/22/2008 08:46:16.492","13.000000"
"10/22/2008 08:46:17.489","13.000000"
"10/22/2008 08:46:18.486","13.000000"
"10/22/2008 08:46:19.483","13.000000"

The command completed successfully.

There's something else going on - it doesn't appear to be the syntax.

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
 
Hi all,

I got a problem with the typeperf command.

When I set a number of secondes for the "-si" option and run the command
line, it stay "idle"... but when I remove the option, the command-line work
ans display the value.

Exemple of command :

typeperf "\Process(Explorer)\Thread Count" -s myserver -si 5
or
typeperf "\Process(Explorer)\Thread Count" -s myserver -si 00:05
or
typeperf "\Process(Explorer)\Thread Count" -s myserver -si 00:00:05

And if you remove the "-si" option, the command line work and display value
each seconde... but I would like to poll each 5 secondes with the "-si"
option

According to this page
(http://technet.microsoft.com/fr-fr/library/bb490960(en-us).aspx), the
problem stay the same... :(

Is anybody got a correct command line syntax which works with the interval
option ?

The first one works here in XP pro SP3

typeperf "\Process(Explorer)\Thread Count" -s myserver -si 5
 
Thank you very much for your test ;)

I found the problem, It's a OS language problem...

I have to specify the counter name in same language of machine which audit
and not in the language of the machine I want to audit.

But I don't understand why it works without the -si option

Thank again

Mill#99


"Tom Lavedas" <[email protected]> a écrit dans le message de (e-mail address removed)...
Hi all,

I got a problem with the typeperf command.

When I set a number of secondes for the "-si" option and run the command
line, it stay "idle"... but when I remove the option, the command-line
work
ans display the value.

Exemple of command :

typeperf "\Process(Explorer)\Thread Count" -s myserver -si 5
or
typeperf "\Process(Explorer)\Thread Count" -s myserver -si 00:05
or
typeperf "\Process(Explorer)\Thread Count" -s myserver -si 00:00:05

And if you remove the "-si" option, the command line work and display
value
each seconde... but I would like to poll each 5 secondes with the "-si"
option

According to this page
(http://technet.microsoft.com/fr-fr/library/bb490960(en-us).aspx), the
problem stay the same... :(

Is anybody got a correct command line syntax which works with the interval
option ?

Thank for your help :)

Mîll#99

All of those examples work for me on my local machine, for example ...

C:Script\Testing>typeperf "\Process(Explorer)\Thread Count" -s . -si
00:00:01

"(PDH-CSV 4.0)","\\.\Process(Explorer)\Thread Count"
"10/22/2008 08:46:15.496","13.000000"
"10/22/2008 08:46:16.492","13.000000"
"10/22/2008 08:46:17.489","13.000000"
"10/22/2008 08:46:18.486","13.000000"
"10/22/2008 08:46:19.483","13.000000"

The command completed successfully.

There's something else going on - it doesn't appear to be the syntax.

Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/
 
Back
Top