Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

How can I start monitoring from the command line without opening Performance Explorer?

How can I start monitoring from the command line without opening Performance Explorer?

Performance Explorer can be started in a mode that does not display the GUI. The option to use is /NOGUI.

It is also necessary to add some additional functionality to the command line which handles /NOGUI mode correctly. These options are /NOEXIT, /EXIT, /SINGLEINSTANCE and /SINGLEINSTANCE[:NOSTARTUP]

/NOEXIT
In /NOGUI mode this is used to prevent the automatic termination of Performance Explorer after processing the commandline

/SINGLEINSTANCE[:NOSTARTUP]
Searches for an existing instance. When used with NOSTARTUP, no new instances will be created.

/EXIT
Closes Performance Explorer without saving changes to the workspace.

The correct usage of the command lines is as follows:

Start monitoring

Perfexp.exe /pew:c:\test.pew /monitordir:c:\temp\perf /action:startallmonitors /nogui /singleinstance /noexit 

 

Save TSD data and stop monitoring

Perfexp.exe /pew:c:\test.pew /monitordir:c:\temp\perf /action:stopallmonitors /nogui /singleinstance[:nostartup] /exit 

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 18:43
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.