Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Opening a Perfmon .blg file from the command line

Posted on 2016-11-05
7
53 Views
Last Modified: 2016-12-23
Hi,

I want to be able to open a previously-captured .blg file in perfmon via a CMD box.  I'm sure I had it working but I've lost the command format.  I tried this:

22/10/2016  08:55    <DIR>          .
22/10/2016  08:55    <DIR>          ..
12/10/2016  14:53         3,598,842 u_ex161012.log
12/10/2016  14:48        36,433,896 web01_00001_20161012151754.pcap
12/10/2016  14:48        85,983,232 web01_10121517.blg
               3 File(s)    126,015,970 bytes
               2 Dir(s)  152,643,452,928 bytes free

C:\traces\Contoso_01\web01>perfmon web01_10121517.blg

Open in new window


but it just throws an error stating that Perfmon has received an invalid parameter.

Thanks in advance...Paul
0
Comment
Question by:PaulOfford
  • 3
  • 3
7 Comments
 
LVL 53

Assisted Solution

by:Joe Winograd, EE MVE
Joe Winograd, EE MVE earned 375 total points (awarded by participants)
ID: 41875611
Hi Paul,
There are surely other ways to do it, but a really nice method is to use the built-in relog tool to convert it to a CSV file, which then gives you a ton of flexibility when opening it with Excel (or even a text editor). You may see the options via:

relog -?

Open in new window

A sample call would be:

relog -f csv web01_10121517.blg -o web01_10121517.csv

Open in new window

Regards, Joe
0
 
LVL 3

Author Comment

by:PaulOfford
ID: 41875705
Hi Joe,

Thanks for the note about relog.  Yep - that works fine but I need to open the file in Perfmon.  I'm sure I had this working before.

Best regards...Paul
0
 
LVL 24

Assisted Solution

by:NVIT
NVIT earned 125 total points (awarded by participants)
ID: 41875751
To open the blg file...

1) Click start>>run
 2) Type perfmon and press enter
 3) In system monitor select and remove the counters currently shown by hitting the delete button
 4) Click the fourth button that says "View log data" this button has a cylinder icon
 5) Point and open the blg file.
 6) To view the log you can click the + sign button which is the 8th button on the top. add the counters and objects that you want to view.
 7) You can also adjust the graph scale by clicking inside the graph.
 8) To highlight a particular counter line, select the bulb icon on the top and click on a counter or a line in graph.

https://social.technet.microsoft.com/Forums/windowsserver/en-US/a7bfb9dc-f845-4138-b603-ee1da3d04f2e/performance-monitor-perfmon-how-to-open-blg-file?forum=winservergen
0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
LVL 53

Accepted Solution

by:
Joe Winograd, EE MVE earned 375 total points (awarded by participants)
ID: 41875757
Hi Paul,
Well, I may have been wrong about there being other ways to do it in a CMD prompt. NVIT just posted how to do it in its own GUI window, but I'm guessing you already knew about that and that it isn't what you want. I think you want to feed a .BLG file to perfmon.exe via the command line (as can be done with relog.exe), but I'm not aware of any way to do that. Regards, Joe
0
 
LVL 3

Author Comment

by:PaulOfford
ID: 41895050
Hi Joe and NVIT,

Joe is quite right, I want to open the file directly from the command line and not via the GUI.   If I rediscover how to do this I'll post the answer here.

Best regards...Paul
0
 
LVL 53

Expert Comment

by:Joe Winograd, EE MVE
ID: 41900314
The comment selected as the Accepted Solution posits that feeding a .BLG file to [b]perfmon.exe[/b] via the command line can't be done. This is never what the asker wants to hear, but is an acceptable answer, as discussed in this EE article:
http://support.experts-exchange.com/customer/portal/articles/755964

If anyone knows how to do this, please post here and take down the closing. Otherwise, selecting that as the Accepted Solution with half the points, but also giving credit to the other two posts with work-around solutions (and splitting the remaining 250 points between those two posts).
0
 
LVL 3

Author Comment

by:PaulOfford
ID: 41936022
After looking at this for ages I've finally discovered the command format.  It is:

perfmon /sys /open .\web01_10121517.blg

Open in new window


On my PC (Windows 10) I have to run CMD as Administrator.  Without these privileges I get an empty graph.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question