8 ASSIGNMENT GlideRecord
8 ASSIGNMENT GlideRecord
0:
GlideRecord
GlideRecord docs
Incident :INC0000055
caller:Carol Coughlin
priority: 1 - Critical
State:In Progress
Short description: SAP Sales app is not accessible
Incident :INC0000016
caller:Bow Ruggeri
priority: 1 - Critical
State:In Progress
Short description: Can't launch 64-bit Windows 7
3. Create an incident manually in the system and display that incident number,caller,short
description same as in above format.
4. Display incidents(number,caller,category) which were opened in the last 6 months. NOTE:- last 6
months is not equal to 180 days .Print the number of records at the end
5. Query change table(change_request) and display change number,Requested
By,category,type,short description where change type is Normal in below format.
Change : CHG0040007
Requested By:Carol Coughlin
category: server reboot
Type : Normal
Short description: Please reboot ApplicationServerPeopleSoft
1. Create a new record via script on cmdb_ci_hardware that is hardware table. Inputs will
be as follows :-
NAME: Router
ASSIGNED TO: Abel Tuter
INSTALL STATUS: On Order
INSTALLED: 2024-03-12 11:05:34
In the same script once you created the incident ,create another incident with below
information:
HINT:- gr.insert returns sys_id of the incident. Store and use this as a parent for the next
incident.
TASK 8.3 Update:
1. Update the hardware record “router” created in 8.2.1 above. With help of background
script update the incident to category= Network ,install status = Installed
2. Update all the incidents where category = Hardware AND priority = 5 - Planning.
set impact = High and Urgency = Medium .Also copy the short description to description
of the incident .
3. Update all the incidents created last year AND category=hardware OR category=
software . set the state to closed and assignment group to Service Desk.
4. In the previous question 8.2.2 where parent incident is linked to child incident. Update
the parent incident service as Email and update the child incident service as Email also.
5. Query the cmdb_ci_server table and update all the CIs where class = windows server
OR class = Linux server AND status = installed AND created last year. You have to
update the status to retired for all those CIs.
1. Delete the hardware asset created from 8.2.1 via background script.
2. Delete All the servers from cmdb_ci_server where the manufacturer starts with dell OR
contains microsoft AND created after 31 dec 2019. Display the count of deleted records.
3. Delete the child incident from 8.2.2 as well as the parent incident record in one script
execution
4. Delete all change requests where Type= normal OR type = emergency AND created
before 3 months from now.