This section introduces how to create an SNMP parser to extract key metrics of device data with OIDs.
Example: Parse the free and used memory of a Cisco Router with the corresponding OIDs.
2.Keep the default Legacy Device node type and select Cisco Router from the Device Type list. By default, the All Device Types option is selected.
3.Select SNMP from the Parser Type drop-down menu.
4.Select an SNMP method (SNMPGet in this sample) from the drop-down menu.
5.Enter the following two OIDS in the command field and separate them with ||.
▪Free memory OID: 22.214.171.124.126.96.36.199.188.8.131.52.6.1
7.The Keyword Parser dialog prompts with the following fields auto-identified. Click Save Variable.
▪Sample — the sample command line where the variable stays.
▪Parser — defines keywords and where a variable is located. The keyword parser GAUGE32: $int:var1$ is created automatically. To locate the variable exactly and differentiate it with the used memory value, modify the parser to 184.108.40.206.220.127.116.11.18.104.22.168.6.1 = GAUGE32: $int:var1$. It contains the keyword 22.214.171.124.126.96.36.199.188.8.131.52.6.1 = GAUGE32: that always stays the same, and the variable $var1 that varies in different devices.
▪Variable — the variable defined in the parser. To change the auto-created variable name to a more meaningful name, rename the variable such as from var1 to free_memory.
8.Highlight the used memory value exactly in the sample data, and then follow the step 6 to 8 to add the variable used_memroy. The free_memory and used_memory variables are both displayed in the variable tree.
9.Click Save on the upper right corner of the page. The parser will be saved in the Parser Library.