snmp_view_create
Adds one allow-listed subtree (OID or alias such as interfaces or power-ethernet) to an SNMP read view on the switch. It does not save the config, so apply changes after.
Instructions
Add one allow-listed included subtree to an SNMP read view. Does not save.
Gate this in the hub with unlock. subtree must be an OID or alias from the fixed allowlist (interfaces / ifmib / power-ethernet). Refused for any view used as a write view, holding a writable column or an excluded entry; build write views with snmp_write_view_create. The CLI syntax is not live-confirmed; see the README.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"view_name": "<view_name>",
"subtree": "<subtree>"
},
"name": "snmp_view_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subtree | Yes | ||
| view_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |