Populating the SNMP table

 



Overview

 

In the previous topic, you learnt to configure values and simulation types for Scalar and Table nodes in the MIB. In this topic, you will learn about the operations that can be performed on a table. The table operation will be useful when you have large number of rows in the table. You can populate the table, view existing rows in the table, modify existing values in the table , delete rows in the table and display the Number of rows present in the table.

 

Adding Rows

  1. Select the Table Node in the MIB tree.

  2. Click on the Configure Table button. The Table Configuration dialog opens listing the default rows available in the table. A maximum of 15 rows will be displayed in the table at a time. You can use the navigate button to navigate the table.

To add single row

Note:

  1. If the index field is of type "Integer", the index column will be automatically incremented by 1, with other column values as default. (or)

  2. If the index field is of type "string", the index value must be manually modified with a new unique value. Now, click OK to add the row to the table.

  3. For nodes of type TimeTicks, you can configure the sysuptime macro ($sysuptime) as the node value, to get the agent uptime in the time format "0 hours, 0 minutes, 00 seconds "

 

To add multiple rows

Note:

  • If the index column is of type "Integer", an integer value must be specified as the starting index. The index values of the other rows will be incremented, based on this value.

  • If the index column is of type "Object Identifier", an OID value must be specified as the starting index. The index values of other rows will be incremented based on the given OID. Click OK to add the rows to the table.

  • If the index column is of type "display string", the starting index value must be a string. For example: "public". The index values of the new rows will be created as public0, public1, public2 etc. Click OK to add the rows to the table.

  • For nodes of type TimeTicks, you can configure the sysuptime macro ($sysuptime) as the node value, to get the agent uptime in the time format "0 hours, 0 minutes, 00 seconds "

 

Simulating Holes in SNMP Tables

 

The SNMP Agent Simulator, supports to simulate holes in SNMP Tables. This enables you to add empty column values while populating the SNMP tables. While querying the simulated agent values, the simulator handles the empty values as given below:

Modifying Rows

 

To modify a single row

 

You can also modify the Simulation type and value in the column nodes. To modify an existing row.

To modify a column value for all rows

 

You can modify the Simulation type and value of a column for all the rows in the table. At a time, only one column can be modified in all/selected rows

A general procedure in table operation is that, when you want to simulate an agent with large number of rows, you can add say 1000 rows in a single shot and modify few column values in the added rows to suit your requirement.

 

To modify a column value for selected rows

 

You can modify the Simulation type and value of a column in multiple rows. At a time, only one column can be modified in all/selected rows

A general procedure in table operation is that, when you want to simulate an agent with large number of rows, you can add say 1000 rows in a single shot and modify few column values in the added rows to suit your requirement.

Deleting row(s)

 

When you no longer require the row(s) you can delete them. To delete rows.

  1. Select the row to be deleted. You can also select multiple rows ( use shift up/down arrow keys )

  2. Click Delete Row button. This will delete all the selected row(s)

 



Copyright © 2009, ZOHO Corp. All Rights Reserved.