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

    1. To add a single row with default values, click Add Row button . Now, the "Add/Modify Entry" dialog displays the new row values. Click OK to add the row to the table

    2. To add a single row with configured and default values, click on Add Row button . Now, the "Add/Modify Entry" dialog displays the new row values. Configure values for all or any column .Click OK to add the row to the table

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

    1. To add multiple rows with default values, click Add Multiple Rows button. The Add Multiple Rows dialog will be displayed. Specify the total number of rows to be added and the starting index value. Click OK to add the rows to the table.

    2. To add multiple rows with configured and default values, click Add Multiple Rows option. The Add Multiple Rows dialog will be displayed. Specify the total number of rows to be added and the starting index value. Click OK to add the rows to the table.

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.

    1. Select the row you want to modify and click Modify Row button.

    2. All the columnar nodes' Simulation type and value come up in the dialog. You can make the desired changes.

    3. Click Ok to modify the 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

    1. Click Modify Multiple Rows, a Modify Multiple rows dialog appears with all the columnar nodes present in the row.

    2. Select a column that you want to modify. Example. ifDescr.

    3. To modify all the rows of the table, select Modify All Rows.

    4. Now you can change the value of this node to the desired value. Example : You can choose the Simulation type as Random and specify values like value1, value2 and Value3. These value will be associated at random with the MIB node.

    5. This change will be immediately reflected in all the rows in the table

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

    1. To modify only selected rows in the table, select the rows to be modified in the table.

    2. Click Modify Multiple Rows, a Modify Multiple rows dialog appears with all the columnar nodes present in the row.

    3. Select a column that you want to modify. Example, ifDescr.

    4. Select Modify Selected Rows option.

    5. Now you can change the value of this node to the desired value. Example : You can choose the Simulation type as Random and specify values like value1, value2 and Value3. These value will be associated at random with the MIB node.

    6. This change will be immediately reflected in all the selected rows in the table

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.

      Note:

       

      1. If the table has more than 15 rows, you can select only rows within the displayed 15 rows.

      2. 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 "

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)

Finding a row

 

You can find a row in the table, either by providing the row number or the Instance value.

  1. In the Table Configuration dialog, select the Find Row button. The Find Row dialog is displayed.

  2. Select Find by Instance or Find by Row Number and specify the corresponding instance value or row number.

  3. Press OK .

 



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.