Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
3.6 KiB

  1. /*****************************************************************************\
  2. Author: Corey Morgan (coreym)
  3. Copyright (c) Microsoft Corporation. All rights reserved.
  4. \*****************************************************************************/
  5. #include "resource.h"
  6. #include <windows.h>
  7. #include <ntverp.h>
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT2_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Performance Relogging Utility"
  11. #define VER_INTERNALNAME_STR "Relog.exe"
  12. #define VER_ORIGINALFILENAME_STR "Relog.exe"
  13. #include "common.ver"
  14. #include "varg.rc"
  15. /////////////////////////////////////////////////////////////////////////////
  16. //
  17. // String Table
  18. //
  19. STRINGTABLE DISCARDABLE
  20. BEGIN
  21. IDS_PROGRAM_DESCRIPTION "Relog creates new performance logs from data in existing performance \
  22. logs by changing the sampling rate and/or converting the file format. \
  23. Supports all performance log formats, including Windows NT 4.0 compressed logs."
  24. IDS_PARAM_APPEND "append`a`*`Append output to existing binary file."
  25. IDS_PARAM_BEGIN "begin`b`*`Begin time for the first record to write into the output file."
  26. IDS_PARAM_END "end`e`*`End time for the last record to write into the output file."
  27. IDS_PARAM_FORMAT "format`f`CSV|TSV|BIN|SQL`Output file format."
  28. IDS_PARAM_INPUT "input`i`*`Performance file to relog."
  29. IDS_PARAM_INTERVAL "interval`t`*`Only write every nth record into the output file. Default is to write every record."
  30. IDS_PARAM_OUTPUT "out`o`*`Output file path or SQL database."
  31. IDS_PARAM_QUERY "query`q`*`List performance counters in the input file."
  32. IDS_PARAM_COUNTERS "counters`c`path`Counters to filter from input log."
  33. IDS_PARAM_COUNTERFILE "counterfile`cf`*`File listing performance counters to filter form the input log. Default is all counters in the original log file."
  34. IDS_PARAM_YES "force`y`*`Answer yes to all questions without prompting."
  35. IDS_PARAM_FA "force_append`fa`*`Force real append"
  36. IDS_DEFAULT_OUTPUT "output"
  37. IDS_MESSAGE_INPUT "\nInput\n----------------\n"
  38. IDS_MESSAGE_OUTPUT "Output\n----------------\n"
  39. IDS_MESSAGE_FILE "File: %1!s!\n\n"
  40. IDS_MESSAGE_FILES "File(s):\n"
  41. IDS_MESSAGE_BEGIN "Begin: "
  42. IDS_MESSAGE_END "\nEnd: "
  43. IDS_MESSAGE_SAMPLES "\nSamples: %1!d!\n\n"
  44. IDS_MESSAGE_LOG_UNKNOWN " %1!s!\n"
  45. IDS_MESSAGE_LOG_OLD_BIN " %1!s! (Windows 2000)\n"
  46. IDS_MESSAGE_LOG_CSV " %1!s! (CSV)\n"
  47. IDS_MESSAGE_LOG_TSV " %1!s! (TSV)\n"
  48. IDS_MESSAGE_LOG_BINARY " %1!s! (Binary)\n"
  49. IDS_MESSAGE_LOG_PERFMON " %1!s! (Windows NT)\n"
  50. IDS_MESSAGE_BADFILES "Error: To relog multiple files all files must be in binary format.\n"
  51. IDS_MESSAGE_BADFORMAT "Error: Invalid file format: %1!s!\n"
  52. IDS_MESSAGE_BADRANGE "Error: The time range specified has no overlap with the input logs.\n"
  53. IDS_MESSAGE_SQLERROR "Error: A SQL failure occurred. Check the application event log for any errors.\n"
  54. IDS_EXAMPLE_FORMAT "relog logfile.blg -f csv -o logfile.csv -t 2"
  55. IDS_EXAMPLE_QUERY "relog logfile.blg -q -o counters.txt"
  56. IDS_EXAMPLE_COUNTERFILE "relog logfile.blg -cf counters.txt -f bin"
  57. IDS_EXAMPLE_COUNTERS "relog logfile.csv -c ""\\Processor(_Total)\\%% Processor Time"" -o logfile.blg"
  58. END