Discovery Pattern

Shree Harshini
Tera Contributor

Hi Experts,

 

I am using Snmp query to fetch the data from the MIB, When i get the data i am receiving the data in the table form. So i used table instead of scalar to get the data. How can i populate the data in the cmdb_ci_storage_server table in a particular attribute.

 

Please help!

 

 

2 REPLIES 2

pratiksha5
Mega Sage

I belive you are creating an extension to the pattern. (if not then please delete it and create an extension) 

 

Once you are getting the data from the mib you should check how they are inserting (servicenow) inserting data in the table.

 

I have done a similar thing when I have to populate an alias in the network switch. 

1) You need to do the merge option (the value you are getting from mib and the target table) here the target table will be mostly an already created temp table in the discovery  section of oob pattern)

2)Transform option between the temp table  and target table (CMDB table)

3)Remove duplicate and filter empty record

 Ps Check the discovery section (of oob pattern) you will get an idea of how to do it. 

 

Best of luck. Do mark my reply as helpful if it helps. 

 

 

 

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @Shree Harshini  

 

Try this way once and see if it sets the specific field you need without overriding the whole table.

 

In a new step select "Set Parameter Value" option and give "cmdb_ci_storage_server[1].<put CI field name you would push>" [Ex: cmdb_ci_storage_server[1].name like this] in "Name" field and provide the "Value" field with the variable holding it per your logic.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.