1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
.. _cpm_status_info_module:
cpm_status_info -- Get general status information from WTI OOB and PDU devices
==============================================================================
.. contents::
:local:
:depth: 1
Synopsis
--------
Get temperature general status from WTI OOB and PDU devices
Parameters
----------
cpm_url (True, str, None)
This is the URL of the WTI device to send the module.
cpm_username (True, str, None)
This is the Username of the WTI device to send the module.
cpm_password (True, str, None)
This is the Password of the WTI device to send the module.
use_https (False, bool, True)
Designates to use an https connection or http connection.
validate_certs (False, bool, True)
If false, SSL certificates will not be validated. This should only be used
on personally controlled sites using self-signed certificates.
use_proxy (False, bool, False)
Flag to control if the lookup will observe HTTP proxy environment variables when present.
Notes
-----
.. note::
- Use ``groups/cpm`` in ``module_defaults`` to set common options used between CPM modules.)
Examples
--------
.. code-block:: yaml+jinja
- 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
-------------
data (always, complex, )
The output JSON returned from the commands sent
vendor (success, str, wti)
Identifies WTI device as a WTI device.
product (success, str, CPM-800-1-CA)
Current Product Part Number of the WTI device.
totalports (success, str, 9)
Total serial ports of the WTI device.
totalplugs (success, str, 8)
Total Power Outlet plugs of the WTI device.
option1/2 (success, str, WPO-STRT-CPM8 / W4G-VZW-CPM8)
Various Identity options of the WTI.
softwareversion (success, str, 6.60 19 Feb 2020)
Expanded Firmware version of the WTI device.
serialnumber (success, str, 12345678901234)
Current Serial number of the WTI device.
assettag (success, str, ARTE121)
Current Asset Tag of the WTI device.
siteid (success, str, GENEVARACK)
Current Site-ID of the WTI device.
analogmodemphonenumber (success, str, 9495869959)
Current Analog Modem (if installed) Phone number of the WTI device.
modeminstalled (success, str, Yes, 4G/LTE)
Identifies if a modem is installed in the WTI device.
modemmodel (success, str, MTSMC-LVW2)
Identifies the modem model number (if installed) in the WTI device.
gig_dualphy (success, str, Yes, Yes)
Identifies dual ethernet port and gigabyte ethernet ports in the WTI device.
cpu_boardprogramdate (success, str, ARM, 4-30-2019)
Current Board and Program date of the WTI device.
ram_flash (success, str, 512 MB, 128 MB)
Total RAM and FLASH installed in the WTI device..
lineinputcount_rating (success, str, 1 , 20 Amps)
Identifies total power inlets and their power rating.
currentmonitor (success, str, Yes)
Identifies if the unit has current monitoring capabilites.
keylength (success, str, 2048)
Current key length of the WTI device.
opensslversion (success, str, 1.1.1d 10 Sep 2019)
Current OpenSSL version running on the WTI device.
opensshversion (success, str, 8.2p1)
Current OpenSSH running on the WTI device.
apacheversion (success, str, 2.4.41)
Current Apache Web version running on the WTI device.
apirelease (success, str, March 2020)
Current Date of the API release of the WTI device.
uptime (success, str, 259308.26)
Current uptime of the WTI device.
energywise (success, str, 1.2.0)
Current Energywise version of the WTI device.
restful (success, str, v1.0, v2 (Mar20))
Current RESTful version of the WTI device.
interface_list (success, str, eth0)
Current ethernet ports of the WTI device.
macaddresses (always, dict, {'mac': '00-09-9b-02-9a-26'})
Current mac addresses of the WTI device.
status (always, dict, {'code': '0', 'text': 'OK'})
Return status after module completion
Status
------
- This module is not guaranteed to have a backwards compatible interface. *[preview]*
- This module is maintained by community.
Authors
~~~~~~~
- Western Telematic Inc. (@wtinetworkgear)
|