community.network.pn_connection_stats_settings module – CLI command to modify connection-stats-settings
Note
This module is part of the community.network collection (version 5.0.0).
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 community.network
.
To use it in a playbook, specify: community.network.pn_connection_stats_settings
.
Synopsis
This module can be used to modify the settings for collecting statistical data about connections.
Parameters
Parameter |
Comments |
---|---|
disk-space allocated for statistics (including rotated log files). |
|
Enable or disable statistics. Choices:
|
|
interval to collect statistics. |
|
maximum memory for client server statistics. |
|
Target switch to run the CLI on. |
|
Enable backup for connection statistics collection. Choices:
|
|
backup interval for connection statistics collection. |
|
maximum memory allowed for connection statistics. |
|
disk-space allocated for statistics (including rotated log files). |
|
enable or disable statistics. Choices:
|
|
interval to collect statistics. |
|
maximum memory allowed for connection statistics. |
|
Enable or disable collecting connections statistics. Choices:
|
|
enable backup for fabric connection statistics collection. Choices:
|
|
backup interval for fabric connection statistics collection. |
|
maximum memory allowed for fabric connection statistics. |
|
maximum memory allowed for service statistics. |
|
State the action to perform. Use Choices:
|
Examples
- name: "Modify connection stats settings"
community.network.pn_connection_stats_settings:
pn_cliswitch: "sw01"
state: "update"
pn_enable: False
pn_fabric_connection_max_memory: "1000"
- name: "Modify connection stats settings"
community.network.pn_connection_stats_settings:
pn_cliswitch: "sw01"
state: "update"
pn_enable: True
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
indicates whether the CLI caused changes on the target. Returned: always |
|
the CLI command run on the target node. Returned: always |
|
set of error responses from the connection-stats-settings command. Returned: on error |
|
set of responses from the connection-stats-settings command. Returned: always |