ppp_secrets
List configured PPP/PPPoE dial-in credentials on a MikroTik device, including service, profile, and status. Passwords are stripped and never exposed.
Instructions
List CONFIGURED PPP/PPPoE secrets (/ppp/secret): name, service (pppoe/pptp/l2tp/ovpn/sstp/any), profile, remote-address, local-address (if set), disabled, comment, last-logged-out (if set)
the dial-in credentials themselves, as opposed to
ppp_active's currently-CONNECTED sessions. See "PPP/PPPoE secrets" below.
SECURITY: RouterOS's own /ppp/secret reply carries each secret's
plaintext password - this is ALWAYS stripped before returning
(formatting.strip_sensitive_fields), the same mechanism
wireguard_interfaces uses for a tunnel interface's private-key. A
secret's password never leaves this process via this tool. See
test_ppp_secrets_never_exposes_password.
Returns an empty list (never an error) for a device with no PPP
package configured at all - same convention as ppp_active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |