cpm_serial_port_action_set
Set Serial port connection commands in WTI OOB and PDU devices
Collection: wti.remote
Full Name: wti.remote.cpm_serial_port_action_set
Synopsis
Set Serial port connection commands 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 | Local serial port | |
| portremote | int | Remote serial port | ||
| action | int | 1 connects and 2 disconnects | ||
| 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: Connect serial port 2 to port 3 on a WTI device
wti.remote.cpm_serial_port_action_set:
cpm_url: nonexist.wti.com
cpm_username: super
cpm_password: super
port: 2
portremote: 3
action: 1
use_https: true
validate_certs: false