snmp_write_view_create
Adds one writable column to an SNMP write view, enabling community write access to permitted columns; configuration 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.
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 |
|---|---|---|---|
| subtree | Yes | ||
| view_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |