About

  • 5
    Members
  • 2
    Followers
  • 1
    Branch
Owners
perforce_software (perforce_software)tom_tyler (C. Thomas Tyler)
Members
michael (michael)pascal_soccard (Pascal Soccard)perforce_software (perforce_software)scommon (scommon)scott_common (scott_common)
Followers
leif.johnson (Leif Johnson)tom_tyler (C. Thomas Tyler)
Branches
  • main

Admin Toolkit

A collection of scripts useful for supporting P4 Server administration

These scripts are curated by Perforce Support.

P4 Server Log Analysis

  • p4diag

p4diag aggregates common P4 Server log analysis workflows in one script. It uses log2sql to build a SQLite database from trace data, runs canned and summary SQL queries, writes grep-based log statistics, victim/culprit write-wait analysis, and command-activity plots into text and HTML under .p4diagnostics/ for viewing in a browser. Interactive mode provides a TTY menu and starts a small local web server for output files.

See p4diag -h for requirements and usage.

See: P4 Server Log Analysis for details on using p4diag.

Integration History Slice Capture

  • IntegHistory.py
  • IntegHistoryRebuild.py

These companion scripts are for extracting detailed revision history from a tiny slice of a P4 Server and (IntegHistory.py) and reconstructing that integration history in a new test server instance (IntegHistoryRebuild.py).

See: Integration/Merge First Response for details on using IntegHistory.py.