Purpose/Use Case
To update the ServiceNow Virtual Machine Instance with the vRA Request ID with SovLabs ServiceNow CMDB
Supported Versions
All
Pre-requisites
- Basic knowledge and setup of SovLabs ServiceNow CMDB module
- Basic knowledge and setup of SovLabs ServiceNow Connector
- Access to SerivceNow instance with "admin" level permissions
- Access to VMware's vRealize Automation tenant with SovLabs SA account permissions
Solution
Add Column to cmdb_ci Table
- Login with admin level permissions to the ServiceNow Instance
- Navigate to System Definition > Tables
- Search for Table Name: cmdb_ci
- Click on Configuration Item label to edit
- Click on New on Columns tab > Table Columns
- Fill out New Record > Dictionary Entry for Configuration Item Table
- Type: String
- Column label: vRA Request ID
- Note: This is a suggested Column label
- Column name: auto-populates to u_vra_request_id
- Note: Copy the Column name value for safe-keeping. This will be used later on
- Max length: 120
- Display: true
- Click Submit
Fig 1: Edit cmdb_ci System Definition Table
Fig 2: Add new table column to cmdb_ci System Definition Table
Fig 3: Create vRA Request ID Column
Create and/or Update SovLabs ServiceNow CMDB
- Login to the vRA tenant
- Create ServiceNow CMDB Configuration
- Pre-req: ServiceNow Endpoint
- Catalog > Add ServiceNow CMDB Configuration - SovLabs Modules
- Update ServiceNow CMDB Configuration
- Deployments > Filters: All owners and SovLabs ServiceNow CMDB
- Actions > Update ServiceNow CMDB Configuration
- Update the JSON template in the ServiceNow CMDB Configuration (either existing or new)
- Add in the appropriate column name (e.g. u_vra_request_id) with the value {{ __Cafe.Root.Request.Id }}
- Example:
- "u_vra_request_id": "{{ __Cafe.Root.Request.Id }}"
- Example:
- Please make sure that the JSON is valid
- Add in the appropriate column name (e.g. u_vra_request_id) with the value {{ __Cafe.Root.Request.Id }}
- Click Submit
By correlating the vRA VM Property __Cafe.Root.Request.Id to the appropriate column name in ServiceNow, it will populate the column with the vRA Request ID
Fig 4: Add ServiceNow CMDB Configuration
Fig 5: Update ServiceNow CMDB Configuration
Fig 6: Update JSON Template by adding new lines to associate Table Column to vRA Request ID
0 Comments