snmp_write_view_create
Add one allowed writable SNMP column to a write view, with dry-run prechecks and rollback validation; the change is not saved.
Instructions
Add one writable column to an SNMP write view. Does not save.
Gate this in the hub with unlock. subtree must be ifAdminStatus
(1.3.6.1.2.1.2.2.1.7), ifAlias (1.3.6.1.2.1.31.1.1.1.18) or
pethPsePortAdminEnable (1.3.6.1.2.1.105.1.1.1.3, PoE on/off); whole
MIB subtrees are never allowed in a write view. There are no per-port
exclusions: anyone with a community bound to this view can write
these columns for every port, including SWITCH_PROTECTED_PORTS. The
command is sent with a "%" error check and verified in show snmp
viewtree; on any failure the column is removed again
(no snmp view <view> <oid>) and the viewtree must equal the state
before. The CLI syntax is not live-confirmed.
dry_run=true (default) runs the read-only prechecks and returns the commands the
first configuration step would send; nothing is sent.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_write_view_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| subtree | Yes | ||
| view_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |