|
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.
Select the Table Node in the MIB tree.
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 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
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:
|
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.
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.
To configure values for a specific row, refer to section, Modify a Row.
To configure a column value for all rows in the table, refer to section Modifying all Rows.
To configure a column value for selected rows in the table, refer to section Modifying Selected Rows.
|
|
Note:
|
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:
While doing a GETNEXT/SNMP WALK, the simulator will skip the node which has an empty value.
While doing a GET request, the simulator will throw a relevant error message.
You can also modify the Simulation type and value in the column nodes. To modify an existing row.
Select the row you want to modify and click Modify Row button.
All the columnar nodes' Simulation type and value come up in the dialog. You can make the desired changes.
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
Click Modify Multiple Rows, a Modify Multiple rows dialog appears with all the columnar nodes present in the row.
Select a column that you want to modify. Example. ifDescr.
To modify all the rows of the table, select Modify All Rows.
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.
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
To modify only selected rows in the table, select the rows to be modified in the table.
Click Modify Multiple Rows, a Modify Multiple rows dialog appears with all the columnar nodes present in the row.
Select a column that you want to modify. Example, ifDescr.
Select Modify Selected Rows option.
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.
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 " |
When you no longer require the row(s) you can delete them. To delete rows.
Select the row to be deleted. You can also select multiple rows ( use shift up/down arrow keys )
Click Delete Row button. This will delete all the selected row(s)
You can find a row in the table, either by providing the row number or the Instance value.
In the Table Configuration dialog, select the Find Row button. The Find Row dialog is displayed.
Select Find by Instance or Find by Row Number and specify the corresponding instance value or row number.
Press OK .
|
|
Note:
Finding a row by instance is applicable only for tables having numeric indices, (i.e.) index of type Integer, Counter etc.
Finding a row by row number is applicable for all Data types. |
|