Resending the deleted configuration items

The resendExpiredDLAItems.sh script is used to resend CI data that was identified earlier by the DetectExpiredDLAItems.sh script. If CI data is missing or partially available, you can use the resendExpiredDLAItems.sh script to resend CIs previously marked for deletion.

Before you begin

  • When deploying and setting up the Discovery Agent, ensure that you have created the dataset and copied the ZAGDEL and ZAGREDEL files to the newly created dataset. For more information, see Deploying and configuring the Discovery Agent.
  • Ensure that you have specified EXPIRED_INTERVAL in the discovery-agent-<version>/config/CONFIG.YML configuration file.
  • Ensure that you have run the script to detect the CI items eligible for removal. See Marking the configuration items for deletion.

Procedure

  1. Open the ZAGREDEL file.
  2. Modify the following parameters in the ZAGREDEL file:
    • SCPATH: Specify the absolute path to the resendExpiredDLAItems.sh script.
    • JAVAHOME: Specify the directory where Java 21 is installed.
    • COMMPARM: Specify the name of the file that contains the agent settings.
    • OTHPARM: Specify the start and end dates in yyyy-mm-dd format. The first date represents the start date, the second date represents the end date, and the two dates must be separated by a single white space.
    Resending the deleted configuration items input
    The configuration items that are marked for deletion are resent to ServiceNow.