On this page
community.network.pn_connection_stats_settings – CLI command to modify connection-stats-settings
Note
This plugin is part of the community.network collection (version 3.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 | Choices/Defaults | Comments |
---|---|---|
pn_client_server_stats_log_disk_space
string
|
disk-space allocated for statistics (including rotated log files).
|
|
pn_client_server_stats_log_enable
boolean
|
|
Enable or disable statistics.
|
pn_client_server_stats_log_interval
string
|
interval to collect statistics.
|
|
pn_client_server_stats_max_memory
string
|
maximum memory for client server statistics.
|
|
pn_cliswitch
string
|
Target switch to run the CLI on.
|
|
pn_connection_backup_enable
boolean
|
|
Enable backup for connection statistics collection.
|
pn_connection_backup_interval
string
|
backup interval for connection statistics collection.
|
|
pn_connection_max_memory
string
|
maximum memory allowed for connection statistics.
|
|
pn_connection_stats_log_disk_space
string
|
disk-space allocated for statistics (including rotated log files).
|
|
pn_connection_stats_log_enable
boolean
|
|
enable or disable statistics.
|
pn_connection_stats_log_interval
string
|
interval to collect statistics.
|
|
pn_connection_stats_max_memory
string
|
maximum memory allowed for connection statistics.
|
|
pn_enable
boolean
|
|
Enable or disable collecting connections statistics.
|
pn_fabric_connection_backup_enable
boolean
|
|
enable backup for fabric connection statistics collection.
|
pn_fabric_connection_backup_interval
string
|
backup interval for fabric connection statistics collection.
|
|
pn_fabric_connection_max_memory
string
|
maximum memory allowed for fabric connection statistics.
|
|
pn_service_stat_max_memory
string
|
maximum memory allowed for service statistics.
|
|
state
string / required
|
|
State the action to perform. Use update to modify the connection-stats-settings.
|
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 | Returned | Description |
---|---|---|
changed
boolean
|
always |
indicates whether the CLI caused changes on the target.
|
command
string
|
always |
the CLI command run on the target node.
|
stderr
list / elements=string
|
on error |
set of error responses from the connection-stats-settings command.
|
stdout
list / elements=string
|
always |
set of responses from the connection-stats-settings command.
|
Authors
- Pluribus Networks (@rajaspachipulusu17)
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/network/pn_connection_stats_settings_module.html