text
stringlengths
0
4.23k
{bin | csv | tsv | SQL}
DSN!CounterLog
{Outputfile | SQL:DSN!Counter_Log}
Note: For the 64-bit and 32-bit versions of relog.exe, you must define a DSN in the ODBC Data Source (64-bit and 32-bit respectively) on the system. Use the "SQL Server" ODBC driver to define a DSN.
<M/D/YYYY> [[<HH>:]<MM>:]<SS>]
<M/D/YYYY> [[<HH>:]<MM>:]<SS>]
{filename | i}
*.blg
Remarks
The general format for counter paths is as follows: [\<computer>] \<object>[<parent>\<instance#index>] \<counter>] where the parent, instance, index, and counter components of the format may contain either a valid name or a wildcard character. The computer, parent, instance, and index components aren't necessary for all counters.
[\<computer>] \<object>[<parent>\<instance#index>] \<counter>]
You determine the counter paths to use based on the counter itself. For example, the LogicalDisk object has an instance <index>, so you must provide the <#index> or a wildcard. Therefore, you could use the following format: \LogicalDisk(*/*#*)\\*.
<index>
<#index>
\LogicalDisk(*/*#*)\\*
In comparison, the Process object doesn't require an instance <index>. Therefore, you can use the following format: \Process(*)\ID Process.
<index>
\Process(*)\ID Process
If a wildcard character is specified in the Parent name, all instances of the specified object that match the specified instance and counter fields will be returned.
If a wildcard character is specified in the Instance name, all instances of the specified object and parent object will be returned if all instance names corresponding to the specified index match the wildcard character.
If a wildcard character is specified in the Counter name, all counters of the specified object are returned.
Partial counter path string matches (for example, pro*) aren't supported.
Counter files are text files that list one or more of the performance counters in the existing log. Copy the full counter name from the log or the /q output in <computer>\<object>\<instance>\<counter> format. List one counter path on each line.
<computer>\<object>\<instance>\<counter>
When run, the relog command copies specified counters from every record in the input file, converting the format if necessary. Wildcard paths are allowed in the counter file.
Use the /t parameter to specify that input files are inserted into output files at intervals of every nth record. By default, data is relogged from every record.
nth
You can specify that your output logs include records from before the beginning time (that is, /b) to provide data for counters that require computation values of the formatted value. The output file will have the last records from input files with timestamps less than the /e (that is, end time) parameter.
The contents of the setting file used with the /config option should have the following format: <commandoption>\<value>, where <commandoption> is a command line option and <value> specifies its value.
<commandoption>\<value>
<commandoption>
<value>
##Q# Examples
To resample existing trace logs at fixed intervals of 30, list counter paths, output files, and formats, type:
relog c:\perflogs\daily_trace_log.blg /cf counter_file.txt /o c:\perflogs\reduced_log.csv /t 30 /f csv
To resample existing trace logs at fixed intervals of 30, list counter paths, and output file, type:
relog c:\perflogs\daily_trace_log.blg /cf counter_file.txt /o c:\perflogs\reduced_log.blg /t 30
To resample existing trace logs into a database, type:
relog "c:\perflogs\daily_trace_log.blg" -f sql -o "SQL:sql2016x64odbc!counter_log"
rem
Records comments in a script, batch, or config.sys file. If no comment is specified, rem adds vertical spacing.
Note
This command is internal to the command-line interpreter, cmd.exe.
Syntax
rem [<comment>]
Parameters
Parameter
Description
<comment>
Specifies a string of characters to include as a comment.
/?
Displays help at the command prompt.
<comment>
Remarks
The rem command doesn't display comments on the screen. To display comments on the screen, you must include the echo on command in your file.
You can't use a redirection character (< or >) or pipe (|) in a batch file comment.
<
>
|
Although you can use rem without a comment to add vertical spacing to a batch file, you can also use blank lines. Blank lines are ignored when a batch program is processed.
Examples
To add vertical spacing through batch file comments, type:
@echo off
rem This batch program formats and checks new disks.
rem It is named Checknew.bat.
rem
rem echo Insert new disk in Drive B.
pause
format b: /v chkdsk b:
To include an explanatory comment before the prompt command in a config.sys file, type:
rem Set prompt to indicate current directory
prompt $p$g
To provide a comment about what a script does, type:
rem The commands in this script set up 3 drives.
rem The first drive is a primary partition and is
rem assigned the letter D. The second and third drives
rem are logical partitions, and are assigned letters
rem E and F.
create partition primary size=2048
assign d:
create partition extended
create partition logical size=2048
assign e:
create partition logical