ieisystem / ieisystem.inmanage / 1.1.1 / module / system_log_info Get BMC system log information | "added in version" 1.0.0 of ieisystem.inmanage" Authors: WangBaoshan (@ieisystem)ieisystem.inmanage.system_log_info (1.1.1) — module
Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1
collections: - name: ieisystem.inmanage version: 1.1.1
Get BMC system log information on ieisystem Server.
- name: Bmc system log info test hosts: inmanage connection: local gather_facts: no vars: inmanage: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: "Get bmc system log information" ieisystem.inmanage.system_log_info: level: "alert" log_time: "2020-06-01T12:30+08:00" provider: "{{ inmanage }}" - name: "Get bmc system log information" ieisystem.inmanage.system_log_info: count: 30 provider: "{{ inmanage }}" - name: "Get bmc system log information" ieisystem.inmanage.system_log_info: system_file: "/home/wbs/wbs.log" provider: "{{ inmanage }}"
host: description: - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. type: str count: description: - Get the most recent log of a specified number. type: int level: choices: - alert - critical - error - notice - warning - debug - emergency - info default: alert description: - Log level. type: str log_time: description: - Get logs after the specified date, time should be YYYY-MM-DDTHH:MM+HH:MM, like 2019-06-27T12:30+08:00. type: str password: description: - Specifies the password to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD) will be used instead. type: str provider: description: - A dict object containing connection details. suboptions: host: description: - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. type: str password: description: - Specifies the password to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD) will be used instead. type: str username: description: - Configures the username to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME) will be used instead. type: str type: dict username: description: - Configures the username to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME) will be used instead. type: str system_file: description: - Store logs to a file. type: str
changed: description: Check to see if a change was made on the device. returned: always type: bool message: description: Messages returned after module execution. returned: always type: str state: description: Status after module execution. returned: always type: str