Slot/Interface Naming Pattern in Models
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 03:51 AM
Hi,
Please help to get documentations for "Slot" & "Interface naming pattern".
Want to add equipment name instead of "Slot" during instance creation.
Current name: - Slot-1
Expected name: -XXXX/ASR 9006/0/Slot-1
Thanks.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2023 05:10 AM
Hi, It can be achieved through fix script or background script.
var grName = new GlideRecord('Table_name');
grName.addNotNullQuery('FieldName of the ServerName');
grName.query();
while(grName.next())
{
var x = grName.name; // Which field you want to modify
grName.FieldName = 'XXXX/ASR 9006/0/'+x; // Which field you want to modify
grName.update();
}
Regards,
Suresh.
Suresh.