Pattern Design: SNMPv3 set name and serial number field

benjaminayo
Tera Contributor

Hello,

I am looking for guidance on how to work through the pattern designer for snmp devices.
ECC queue has name and serial number field in log and I am looking to set that info into the CI record field tobe created. I have already created snmp query steps for the two temp fields sysName(which contains the name) and sysDecr(which is optional as all logs dont contain serial number)

Please advise!

4 REPLIES 4

Vishnu-K
Mega Sage

Hi @benjaminayo ,

 

The OOTB pattern Network Switch has similar thing in it you can copy the steps. These are the examples :

 

1. Getting data using SNMP query 

VishnuK_0-1794377119291.png

 

VishnuK_1-1794377285836.png

 

2. Setting Value :

VishnuK_2-1794377316277.png


So the above pics show the getting and setting of data.

 

Hope this helps , if it did please do mark it as help full and accept solution.

 

Thanks,

Vishnu

Hello, thank you for the insight!

I was able to find these steps as well. I am wondering as this is my first time doing this is the serial number always withing the sysdescr? 

for example, I have a serial number within the sysdescr but also there is the sofrware model and maufacturer.. Is there a step to massage the data to only grab the serial number?

Hi @benjaminayo ,

 

The serial number is not always present in the sysDescr rather it hold the combination different information of device . And this will solely depend on the Switch or Router Manufacturer and their OIDs in the MIB field in generally for the CISCO company devices the Serial Number will be present in the OID name : entPhysicalSerialNum and OID : 1.3.6.1.2.1.47.1.1.1.1.11 .

 

Coming to the other question , you can extract the data from that variable using the parse variable  operation as shown below :

VishnuK_0-1794551394728.png

VishnuK_1-1794551408685.png

and you can choose different parsing strategies to extract the content you want i would suggest using the Regular Expression  or  Delimited Text  and get the data but instead of doing this whole process you can search in google about the OID of the serial number for that snmp device using model of that device if you find it, use it and do the SNMP query  Operation in pattern designer and get the data and populate it , if you could not find OID then use the above process .

Note : Donot modify the identification section of the existing pattern suggested to create a new extension section.

Hope this helps , if it did please do mark it as help full and accept solution.

 

Thanks,

Vishnu

 

Hello,

When I get to the "set parameter step, when testing the name within the sysName does not show up.