wti.remote.cpm_status_info lookup – Get general status information from WTI OOB and PDU devices
Note
This lookup plugin is part of the wti.remote collection (version 1.0.4).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install wti.remote
.
To use it in a playbook, specify: wti.remote.cpm_status_info
.
New in version 2.9.0: of wti.remote
Parameters
Parameter |
Comments |
---|---|
This is the Password of the WTI device to send the module. |
|
This is the URL of the WTI device to send the module. |
|
This is the Username of the WTI device to send the module. |
|
Designates to use an https connection or http connection. Choices:
|
|
Flag to control if the lookup will observe HTTP proxy environment variables when present. Choices:
|
|
If false, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. Choices:
|
Examples
- name: Get the Status Information for a WTI device
cpm_status_info:
cpm_url: "nonexist.wti.com"
cpm_username: "super"
cpm_password: "super"
use_https: true
validate_certs: false
- name: Get the Status Information for a WTI device
cpm_status_info:
cpm_url: "nonexist.wti.com"
cpm_username: "super"
cpm_password: "super"
use_https: false
validate_certs: false
Return Values
Common return values are documented here, the following are the fields unique to this lookup:
Key |
Description |
---|---|
The output JSON returned from the commands sent Returned: always |
|
Current Analog Modem (if installed) Phone number of the WTI device. Returned: success Sample: “9495869959” |
|
Current Apache Web version running on the WTI device. Returned: success Sample: “2.4.41” |
|
Current Date of the API release of the WTI device. Returned: success Sample: “March 2020” |
|
Current Asset Tag of the WTI device. Returned: success Sample: “ARTE121” |
|
Current Board and Program date of the WTI device. Returned: success Sample: “ARM, 4-30-2019” |
|
Identifies if the unit has current monitoring capabilites. Returned: success Sample: “Yes” |
|
Current Energywise version of the WTI device. Returned: success Sample: “1.2.0” |
|
Identifies dual ethernet port and gigabyte ethernet ports in the WTI device. Returned: success Sample: “Yes, Yes” |
|
Current ethernet ports of the WTI device. Returned: success Sample: “eth0” |
|
Current key length of the WTI device. Returned: success Sample: “2048” |
|
Identifies total power inlets and their power rating. Returned: success Sample: “1 , 20 Amps” |
|
Current mac addresses of the WTI device. Returned: always Sample: {“mac”: “00-09-9b-02-9a-26”} |
|
Identifies if a modem is installed in the WTI device. Returned: success Sample: “Yes, 4G/LTE” |
|
Identifies the modem model number (if installed) in the WTI device. Returned: success Sample: “MTSMC-LVW2” |
|
Current OpenSSH running on the WTI device. Returned: success Sample: “8.2p1” |
|
Current OpenSSL version running on the WTI device. Returned: success Sample: “1.1.1d 10 Sep 2019” |
|
Various Identity options of the WTI. Returned: success Sample: “WPO-STRT-CPM8 / W4G-VZW-CPM8” |
|
Current Product Part Number of the WTI device. Returned: success Sample: “CPM-800-1-CA” |
|
Total RAM and FLASH installed in the WTI device.. Returned: success Sample: “512 MB, 128 MB” |
|
Current RESTful version of the WTI device. Returned: success Sample: “v1.0, v2 (Mar20)” |
|
Current Serial number of the WTI device. Returned: success Sample: “12345678901234” |
|
Current Site-ID of the WTI device. Returned: success Sample: “GENEVARACK” |
|
Expanded Firmware version of the WTI device. Returned: success Sample: “6.60 19 Feb 2020” |
|
Return status after module completion Returned: always Sample: {“code”: “0”, “text”: “OK”} |
|
Total Power Outlet plugs of the WTI device. Returned: success Sample: “8” |
|
Total serial ports of the WTI device. Returned: success Sample: “9” |
|
Current uptime of the WTI device. Returned: success Sample: “259308.26” |
|
Identifies WTI device as a WTI device. Returned: success Sample: “wti” |
Authors
Western Telematic Inc. (@wtinetworkgear)
Hint
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.