Preface¶
When performing DM8 operations and maintenance in DeepSeek Harness (DSH), the common approach is to handwrite SQL or scripts to check instances, tablespaces, logs, and performance item by item, and then compile the results into documentation. These steps are scattered, the criteria are inconsistent, and it is inconvenient for the agent to directly provide graded conclusions within the conversation. Below is an introduction to the community plugin dsh-plugin-dm8-inspect (Repository: Shiyuedong-Jade/DM-inspect): It registers the dm8_inspect tool on the DSH Web side, executes 85 read-only inspection items, outputs an HTML report and a JSON file with identical content in the same directory, and supports configurations for single instances, Shared Storage Clusters (DMDSC), and Data Guard primary-standby environments.
The maintainer is Shiyuedong-Jade, and the category is Client Plugin. The current package version is 0.1.2, and the license is MIT. Plugin directory page: skillhub.cn/plugins/Shiyuedong-Jade/DM-inspect.
What is this¶
dsh-plugin-dm8-inspect is a DSH inspection plugin for DM8: It connects to the target database via JDBC (or uses the built-in demo sample) to run a fixed set of inspection items. It does not execute any statements that modify database configurations. Results are graded by Severity / Warning / Normal / Info / N/A / Not Retrieved, and are written into an openable HTML report.
The environment requires Node.js ≥ 20, Java 8+ (for JDBC bridging), a manually placed DmJdbcDriver8.jar, and DeepSeek Harness 0.1.x.
Core Features¶
There are 85 inspection items in total, all of which are query-based SQL statements, covering:
- Instance & version, tablespaces & data files, logs & archives
- Memory & buffer pools, SQL performance, objects & statistics
- Users & security, jobs & backups
Optionally, after filling in SSH account details, it can collect database server OS metrics: CPU / Memory / Disk IO, kernel parameters, and DM log alarms.
Regarding deployment forms, it supports Single Instance, DMDSC (set via card or 2 or more nodes in targets), and Data Guard Primary-Standby (README notes that 5 items related to dw.* have not been verified on real machines yet).
In terms of reporting and interaction: Tablespace usage can be color-coded by threshold; the number of items for Top-type lists is adjustable; each inspection generates an HTML + identical JSON content in the same directory; report file names include timestamps, so multiple inspections in the same directory will not overwrite each other.
Installation & Activation¶
1. Install Plugin¶
Execute under the DSH Web profile (command from official README):
dsh plugin --profile web add github:Shiyuedong-Jade/DM-inspect
When installing from a local directory, use the file: prefix, and the absolute path must not contain spaces:
dsh plugin --profile web add file:/path/to/dsh-plugin-dm8-inspect
2. Place JDBC Driver¶
The driver is not distributed with the plugin. Copy dmdbms/drivers/jdbc/DmJdbcDriver8.jar from the DM installation directory to the drivers/ directory in the working directory:
| Platform | Path |
|---|---|
| Linux | ~/.dsh/dm8-inspect/drivers/ |
| Windows | %USERPROFILE%\.dsh\dm8-inspect\drivers\ |
The default working directory is ~/.dsh/dm8-inspect, which can be modified via the plugin config home; drivers/, java/, and runtime/ will be created automatically upon first load.
3. Restart DSH Web¶
Restart dsh web after the initial installation and refresh any open browser pages.
Typical Usage¶
Invoke the tool named dm8_inspect in the conversation. All parameters are optional; target, account, and password can be pre-filled in the settings card.
A settings card will appear for each invocation; after saving, you can say “Run an inspection” in the conversation to trigger execution. The tool returns graded conclusions and the report path.
Common invocation parameters (excerpt, see README for the full table):
| Parameter | Default Value | Description |
|---|---|---|
targets |
Target from card | [{host, port, user, label}], 1 for single instance, multiple for cluster |
user |
SYSDBA |
Database account |
port |
5236 |
Port |
driver |
jdbc |
demo is a built-in sample, does not connect to DB |
topN |
10 |
Number of Top-type entries, 5~50 |
tsWarnPct / tsCritPct |
80 / 90 |
Tablespace warning / critical threshold (%) |
slowSqlMs |
1000 |
Slow SQL threshold (milliseconds) |
sshUser / sshPassword |
— | OS-level checks only performed if filled in |
outDir |
<conversation working dir>/dm8-inspect-reports |
Report directory |
Value priority: Current Invocation Parameters > Settings Card > Credentials Store. Database passwords can also be passed via environment variables DM8_INSPECT_PASSWORD, DM8_INSPECT_SSH_PASSWORD, or referenced via refs in ~/.dsh/.credentials.yaml; passing password directly in parameters will be written to the conversation log, so the official recommendation is to use the card or credentials store instead.
The settings card is isolated by conversation and stored in the dsh process memory; it needs to be re-filled after restarting dsh.
Long-term configurations for the plugin can be written into the profile’s cordis.patch.yml, such as working directory, default driver, credential reference names, thresholds, and clusterConcurrency (cluster node concurrency, default 3, max 8), etc. See the “Configuration” section in the README for details.
Scenarios & Notes¶
Who it is for: Teams already using DSH Web who need to perform standardized read-only health checks on DM8 periodically or on-demand; those who want to get graded conclusions and HTML reports directly in the conversation rather than piecing together SQL on the fly.
Permissions & Security: The plugin runs with the current dsh process privileges; you should review the GitHub Source Code and the MIT license yourself before installation. All inspection SQLs are read-only queries, but connections and SSH still involve production credentials, so configure the credentials store or environment variables according to intranet standards.
Capability Boundaries (Key points from README):
- If connection fails, no report is generated; only the failure reason is returned.
- In a single instance, at least 11 items are “N/A”, corresponding to DMDSC / Data Guard specific items; to cover all 85 items, an SSH account must be filled in the card; without SSH, OS-related items are “N/A”.
- Data Guard form and
dw.*five items are not verified on real machines; DM9, Windows DM, ARM, and enabled archive environments are also not verified. - Reports default to the conversation working directory, not the dsh startup directory.
Uninstall:
dsh plugin --profile web remove dsh-plugin-dm8-inspect
And delete the working directory (including the driver jar). Linux example: rm -rf ~/.dsh/dm8-inspect.
Summary¶
dsh-plugin-dm8-inspect consolidates 85 read-only DM8 inspection items into the DSH dm8_inspect tool: after configuring targets and thresholds, a single call yields graded conclusions and HTML/JSON reports, accommodating both single instances and cluster node lists. The DeepSeek Harness ecosystem follows the “Everything is a Plugin” philosophy. The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer; refer to the repository README for details.
- Directory Page: https://www.skillhub.cn/plugins/Shiyuedong-Jade/DM-inspect
- GitHub: https://github.com/Shiyuedong-Jade/DM-inspect