wti.remote.cpm_syslog_server_config 模块 – 在 WTI OOB 和 PDU 设备中设置网络 SYSLOG 服务器参数
注意
此模块是 wti.remote 集合(版本 1.0.10)的一部分。
如果您正在使用 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install wti.remote
。
要在剧本中使用它,请指定:wti.remote.cpm_syslog_server_config
。
wti.remote 2.11.0 中的新增功能
概要
在 WTI OOB 和 PDU 设备中设置网络 SYSLOG 服务器参数
参数
参数 |
注释 |
---|---|
设置要阻止消息记录的 IP 地址。 |
|
在设置新定义的条目之前,删除为正在定义的协议的所有 IP 阻止条目。 选择
|
|
这是 WTI 设备的密码,用于发送模块。 |
|
这是 WTI 设备的 URL,用于发送模块。 |
|
这是 WTI 设备的用户名,用于发送模块。 |
|
激活指定接口和协议的 SYSLOG 监听。 选择
|
|
正在修改的 IP 块的索引。 |
|
我们正在定义的 SYSLOG 的以太网端口。 选择
|
|
定义 SYSLOG 服务器使用的端口号 (1 - 65535)。 |
|
应应用 SYSLOG 条目的协议。0 = ipv4, 1 = ipv6。 选择
|
|
定义 SYSLOG 服务器是否使用安全连接(需要 TCP 传输)。 选择
|
|
定义 SYSLOG 服务器使用的传输协议类型。0=UDP, 1=TCP; 选择
|
|
指定使用 https 连接还是 http 连接。 选择
|
|
一个标志,用于控制在存在 HTTP 代理环境变量时是否会观察到查找。 选择
|
|
如果为 false,则不会验证 SSL 证书。这应该仅在 使用自签名证书的个人控制站点上使用。 选择
|
说明
注意
在
module_defaults
中使用groups/cpm
来设置 CPM 模块之间使用的通用选项。
示例
# Sets the device SYSLOG Server Parameters
- name: Set the an SYSLOG Server Parameter for a WTI device
cpm_iptables_config:
cpm_url: "nonexist.wti.com"
cpm_username: "super"
cpm_password: "super"
use_https: true
validate_certs: false
interface: "eth0"
protocol: 0
port: 514
transport: 0
secure: 0
clear: 1
# Sets the device SYSLOG Server Parameters
- name: Set the SYSLOG Server Parameters a WTI device
cpm_iptables_config:
cpm_url: "nonexist.wti.com"
cpm_username: "super"
cpm_password: "super"
use_https: true
validate_certs: false
interface: "eth0"
protocol: 0
port: 514
transport: 0
secure: 0
clear: 1
index:
- 1
- 2
block:
- "192.168.50.4"
- "72.76.4.56"
返回值
常见的返回值在此处记录,以下是此模块独有的字段
键 |
描述 |
---|---|
从发送的命令返回的输出 JSON 返回: 总是 |
|
模块执行后 WTI 设备的接口信息的当前键值对。 返回: 总是 示例: |