cpm_snmp_config
Set network SNMP parameters in WTI OOB and PDU devices
Collection: wti.remote
Full Name: wti.remote.cpm_snmp_config
Synopsis
Set network SNMP parameters in WTI OOB and PDU devices
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| cpm_url | string | yes | WTI device host or host:port | |
| cpm_username | string | yes | WTI username; an empty username selects an API token | |
| cpm_password | string | yes | WTI password or API token | |
| interface | string | yes | Ethernet port | |
| protocol | int | 0 for IPv4 and 1 for IPv6 | ||
| clear | int | Clear SNMP users before applying changes | ||
| enable | int | Enable SNMP | ||
| version | int | SNMP version selector | ||
| readonly | int | Read-only mode | ||
| systemname | string | SNMP system name | ||
| contact | string | SNMP contact | ||
| location | string | SNMP location | ||
| rocommunity | string | Read-only community | ||
| rwcommunity | string | Read-write community | ||
| index | list | One-based SNMP user indexes | ||
| username | list | SNMP usernames | ||
| authpriv | list | Authentication and privacy selectors | ||
| authproto | list | Authentication protocol selectors | ||
| privproto | list | Privacy protocol selectors | ||
| authpass | list | SNMP authentication passwords | ||
| privpass | list | SNMP privacy passwords | ||
| use_https | bool | true | Use HTTPS instead of HTTP | |
| validate_certs | bool | true | Validate the device TLS certificate | |
| use_proxy | bool | false | Observe HTTP proxy environment variables |
Example
yaml
- name: Enable SNMPv2 on eth0 of a WTI device
wti.remote.cpm_snmp_config:
cpm_url: nonexist.wti.com
cpm_username: super
cpm_password: super
interface: eth0
protocol: 0
enable: 1
version: 1
readonly: 0
use_https: true
validate_certs: false