No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

HUAWEI CLOUD Stack 6.5.0 Alarm and Event Reference 04

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Asynchronous Audit

Asynchronous Audit

Procedure

  1. Use Secure Shell (SSH) to log in to an OpenStack host. For details, see Using SSH to Log In to a Host.
  2. Import environment variables. For details, see Importing Environment Variables.

    Please enter 1, enable Keystone V3 authentication with the built-in DC administrator.

  3. Run the following command to query an asynchronous audit:

    infocollect audit --type async

    Information similar to the following is displayed:

    +--------------+--------------------------------------+  
    | Property     | Value                                |  
    +--------------+--------------------------------------+  
    | audit_result |                                      |  
    | hostname     | CCCC8175-8EAC-0000-1000-1DD2000011D0 |  
    | metadata     | {}                                   |  
    | path         |                                      |  
    | progress     | 0                                    |  
    | task_id      | 923a1ee2-c0da-11e5-8eff-cccc81758eac |  
    | task_status  | auditing                             |  
    +--------------+--------------------------------------+

    In the preceding command, hostname indicates the ID of the board where the audit report is located. path indicates the directory where the audit report is stored. task_id indicates the audit task ID which is used for querying the asynchronous audit status. progress indicates the asynchronous audit progress whose initial value is 0. task_status indicates the audit status whose initial value is auditing.

  4. Run the following command to query the status of an asynchronous audit:

    infocollect audit-status-get --task-id TASK-ID

    Table 18-199 describes the parameter in the command.

    Table 18-199 Parameter description

    Parameter

    Mandatory or Optional

    Description

    task-id

    Mandatory

    This is an additional parameter and specifies the audit task to be queried.

    For example, run the following command to query the status of the specified asynchronous audit:

    infocollect audit-status-get --task-id 923a1ee2-c0da-11e5-8eff-cccc81758eac

    Information similar to the following is displayed:

    +--------------+--------------------------------------+  
    | Property     | Value                                |  
    +--------------+--------------------------------------+  
    | audit_result |                                      |  
    | hostname     | CCCC8175-8EAC-0000-1000-1DD2000011D0 |  
    | metadata     | {}                                   |  
    | path         |                                      |  
    | progress     | 15                                    |  
    | task_id      | 923a1ee2-c0da-11e5-8eff-cccc81758eac |  
    | task_status  | auditing                             |  
    +--------------+--------------------------------------+

    In the command output, if the value of task_status is failed, which indicates that an error occurs in the asynchronous audit, contact technical support for assistance. If the value of task_status is finished, the asynchronous audit is complete.

    After the audit is complete, information similar to the following is displayed:

    +--------------+---------------------------------------------------------------------------------+  
    | Property     | Value                                                                           |  
    +--------------+---------------------------------------------------------------------------------+  
    | audit_result | {u'message': u'', u'code': 0, u'id': 1004, u'name': u'audit_nova_service'}      |  
    |              | {u'message': u'', u'code': 0, u'id': 1206, u'name': u'audit_volume_attachment'} |  
    |              | {u'message': u'', u'code': 0, u'id': 1001, u'name': u'uncontrolled_instances'}  |  
    |              | {u'message': u'', u'code': 0, u'id': 1204, u'name': u'audit_fake_snapshot'}     |  
    |              | {u'message': u'', u'code': 0, u'id': 1005, u'name': u'audit_migrations'}        |  
    |              | {u'message': u'', u'code': 0, u'id': 1201, u'name': u'audit_fake_volume'}       |  
    |              | {u'message': u'', u'code': 0, u'id': 1202, u'name': u'audit_res_volume'}        |  
    |              | {u'message': u'', u'code': 0, u'id': 1203, u'name': u'audit_wild_volume'}       |  
    |              | {u'message': u'', u'code': 0, u'id': 1003, u'name': u'audit_zombie_process'}    |  
    |              | {u'message': u'', u'code': 0, u'id': 1205, u'name': u'audit_wild_snapshot'}     |  
    |              | {u'message': u'', u'code': 0, u'id': 1002, u'name': u'auditimage'}              |  
    |              | {u'message': u'', u'code': 0, u'id': 1207, u'name': u'audit_volume_status'}     |  
    |              | {u'message': u'', u'code': 0, u'id': 1102, u'name': u'audit_dhcp_namespace'}    |  
    |              | {u'message': u'', u'code': 0, u'id': 1301, u'name': u'audit_ironic_nodes'}      |  
    | hostname     | CCCC8175-8EAC-0000-1000-1DD2000011D0                                            |  
    | metadata     | {}                                                                              |  
    | path         | /var/log/audit/2016-01-22_073429                                                |  
    | progress     | 100                                                                             |  
    | task_id      | 923a1ee2-c0da-11e5-8eff-cccc81758eac                                            |  
    | task_status  | finished                                                                        |  
    +--------------+---------------------------------------------------------------------------------+

Translation
Download
Updated: 2019-08-30

Document ID: EDOC1100062365

Views: 36033

Downloads: 31

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next