hitachivantara.vspone_block.sds_block.hv_sds_block_dump_log_file module – Dumps log information from SDS Block storage system.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.6.1).
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 hitachivantara.vspone_block.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hitachivantara.vspone_block.sds_block.hv_sds_block_dump_log_file.
New in hitachivantara.vspone_block 4.6.0
Synopsis
Retrieve and dump log information from SDS Block storage system
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/sds_block_direct/sdsb_dump_log_file.yml
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9
Parameters
Parameter |
Comments |
|---|---|
Information required to establish a connection to the storage system. |
|
IP address or hostname of the storage system. |
|
Type of connection to the storage system. Choices:
|
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Specification for dumping log information. |
|
The name of the log file. |
|
The path where the log file will be saved. |
|
The label of the log file. |
|
The mode of the log file, options are “Base”, “Memory”,”Monitor” and “All” , case insensitive. |
|
The index of the split file. |
|
The desired state of the storage pool. Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Dump log information with a specific label
hitachivantara.vspone_block.hv_sds_block_dump_log_file:
connection_info:
address: 10.10.10.10
username: admin
password: password
spec:
label: "log_label_001"
- name: Download a log file with specific configuration
hitachivantara.vspone_block.hv_sds_block_dump_log_file:
connection_info:
address: 10.10.10.10
username: admin
password: password
state: download
spec:
file_path: "/tmp/"
file_name: "sds_log_dump.tgz"
split_files_index: 1
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Log message content. Returned: always Sample: |