How to access nic and nic.cmdb_ci field values using After BR?

venkat101
Tera Guru

Hi,

I want to create relationship record between ip address and network table after discovery is completed. So, I wrote an after insert BR rule on ip address table and create a relationship record. Before creating relationship record i want to verify if current.ip_address is same as ip address on its discovered CI. so, i am trying to get nic and nic.cmdb_ci field values from ip address record and i am failing capture them.

 

gs.info('current IP record nic: ' + current.name+ ' ' + current.nic);
i was able to see current.name value as "170.10.1.10" but nothing for current.nic, can you please help in suggesting the best way to capture nic and its associated ci details to the work i want to do?
7 REPLIES 7

Ok, when i run below log statement, why dont I get any value for current.nic? nic is a field on ip address record.

gs.info('current IP record nic: ' + current.name+ ' ' + current.nic);

Bhuvan
Kilo Patron

@venkat101 

 

Can you share the Business Rule you created to check which tables you are using and why it is not working.

 

Thanks,

Bhuvan

Added details in the above reply, can you please review?