cpm_serial_port_config
Set Serial port parameters in WTI OOB and PDU devices
Collection: wti.remote
Full Name: wti.remote.cpm_serial_port_config
Synopsis
Set Serial port 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 | |
| port | int | yes | Serial port number | |
| portname | string | Port label | ||
| baud | int | Baud selector | ||
| handshake | int | Handshake mode | ||
| stopbits | int | Stop bits | ||
| parity | int | Parity mode | ||
| mode | int | Port mode | ||
| cmd | int | Command echo mode | ||
| seq | int | Disconnect sequence | ||
| tout | int | Timeout selector | ||
| echo | bool | Echo input | ||
| break_allow | bool | Allow a serial break | ||
| logoff | string | Logoff character | ||
| 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: Rename serial port 2 on a WTI device
wti.remote.cpm_serial_port_config:
cpm_url: nonexist.wti.com
cpm_username: super
cpm_password: super
port: 2
portname: RouterLabel
baud: 7
use_https: true
validate_certs: false