Collect and archive the reports

Collect and archive the reports

Note

This feature is available starting from the MCP 2019.2.7 maintenance update. Before using the feature, follow the steps described in Apply maintenance updates.

Once you obtain the data from the required nodes as described in Generate a sosreport starting from 2019.2.7, create a common archive with the obtained data and attach it to a Salesforce case.

To collect and archive the reports:

  1. Log in to the Salt Master node.

  2. Run the following command specifying the options as required:

    salt -C 'I@salt:master' state.sls linux.system.sosreport.collect pillar='{ \
    "sosreport_collect" : { "target": "<target>", "archiveName": "sosreport_<env_name>_<customer_name>_<SF_ticket_ID>" } }'
    

    Additionally, you can specify the following options:

    • nodeIp - to use an IP from another interface on the node. The IP must be available from the Salt minions.

    • port - to use NetCat in case the default 31337 port is busy.

    • reportWorkDir- to specify the directory to keep all reports for a specific case.

    As a result, the tool creates one common archive named sosreport_<env_name>_<customer>_<ticket>.tar.gz for all <target> nodes based on the parameters set through the model or pillar override and attaches it to the specified Salesforce ticket.