Slot/Interface Naming Pattern in Models

ambadaspotdar
Tera Contributor

 

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  

 

ambadaspotdar_0-1701949296394.png

 

Thanks.

1 REPLY 1

ersureshbe
Giga Sage
Giga Sage

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.