Deactivate CIs using GRLOADER

book

Article ID: 109693

calendar_today

Updated On:

Products

CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

How can the CIs be deactived using GRLOADER?

Environment

SDM 14.1 and higher

Resolution

The field CI can be deactivated using the GRLoader.

To do this the field "delete_flag" must be added in the xml file, i.e.:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<GRLoader>
  <ci>
    <id>uuid</id>
    <delete_flag>1</delete_flag>
  </ci>
</GRLoader>


Where

value 1 = is inactive
value 0 = Active.
uuid= The UUID of the CI to deactivate

Example:

Customer needs to inactive CI called "CI_test":

1. select the UUID from CI_test

 select own_resource_uuid from ca_owned_resource where resource_name like 'CI_test'
 



2. Build the xml with the value gotten from step 1, called load.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<GRLoader>
  <ci>
    <id>64A20F2717D1A043A68FBA4740A4216B</id>
    <delete_flag>1</delete_flag>
  </ci>
</GRLoader>

 

3. Execute the update
grloader -u <username> -p <password> -s http://localhost:8080 -i load.xml -a
 

Additional Information

-Information about GRLoader Command:

14.1:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/business-management/ca-service-management/14-1/reference/ca-service-desk-manager-reference-commands/cmdb-technical-reference/general-resource-loader-grloader/the-grloader-command.html

17.3:
https://techdocs.broadcom.com/us/en/ca-enterprise-software/business-management/ca-service-management/17-3/reference/ca-service-desk-manager-reference-commands/cmdb-technical-reference/general-resource-loader-grloader.html

-To check for duplicated records and recognize which record have to be deactivated please check the cora matrix that explain how the application check records to update or create new records, following this documentation regarding CORA:

https://ftpdocs.broadcom.com/phpdocs/0/common/impcd/r11/MDBMain/Doc/CORA_MDB_and_Assets_SC.pdf


 

Attachments

1558698153392000109693_sktwi1f5rjvs16j86.png get_app