# Diagnostics

The main diagnostic command is:

```bash
sudo bin/defcon-helper doctor
```

It checks:

- safety policy and wallet detection
- Docker and Docker Compose availability
- daemon/network info
- sync and block status
- block height and hash
- peer count
- v22.1.2 and v22.1.3 peer ratio
- `mnsync status`
- `masternode status`
- PoSe/protx info when `proTxHash` is available
- DKG/quorum/ChainLock/conflicting-header log patterns
- NTP status
- disk/RAM/CPU
- listening ports for `8192` and `8193`

## Focused Commands

```bash
sudo bin/defcon-helper peers
sudo bin/defcon-helper pose
sudo bin/defcon-helper logs --errors
sudo bin/defcon-helper report
```

`report` writes a full diagnostic report under:

```text
/opt/defcon/reports/report-YYYY-MM-DD-HHMMSS.txt
```
