|
When a MIB is loaded in the SNMP Agent Simulator and default values are simulated, a basic simulation is created. The default value is assigned to every scalar node depending on the syntax of the node. In case of SNMP Tables, a single row will be simulated by default for every SNMP table present in the loaded MIB.
In this topic, you will learn to configure values and simulation types for each type of scalars and tables present in the MIB.
Configuring Values for Scalars and Tables
Configuring values for the MIB with default simulation types is very simple as explained below.
To configure values for a scalar node,
Click on the scalar node. The default value of the node and other properties will be displayed on the right-side top panel. The description of the selected node will be displayed, by selecting the Description button, available at the right-side top panel.
Provide any value to the node. Press Enter Key to save the value of the node. Traversing to another node will also save the value of the node previously changed.
To configure values for a table,
Select the table node, for example adiskTable, aaplicationTable. The properties of the selected table node will be displayed on the right-side top panel. The description of the selected table column will be displayed, by selecting the Description button, available at the right-side top panel. The Configure Table button will be enabled on the right-side. Click this button to display all the existing rows in the table.
To configure row values, select a particular row and click on Modify Row option. Now, you will be able to configure values for each column of the row, by modifying the existing default values. Press OK to save the values.
For scalar/table nodes of type TimeTicks, you can configure the sysuptime macro as the node value, to get the agent uptime. For example: configuring $sysuptime as the value for the sysUpTime node in the system group, will return the agent uptime in the time format "0 hours, 0 minutes, 00 seconds "
Press Enter Key to save the value of the node. Traversing to another node will also save the value of the node previously changed.
The SNMP Agent Simulator provides the following simulation types for configuring the value of a node. The value simulated for a node will depend upon its simulation type. If no simulation type is specified then the simulator will assume a default value consistent with the syntax of the node. You can associate the following simulation type to the MIB nodes. The MIB nodes will take the values of the simulation type.
The following table provides details about the Simulation Types supported for each Syntax type.
| Syntax Type | Simulation Types Supported |
|---|---|
|
CONST RANDOM |
|
CONST RANDOM Exponential Wave Linear Sine Wave |
Constant : The agent will always respond with the given constant value.
RANDOM : The agent will respond with a randomly selected value from the given set of values. For e.g. if the values given for the DisplayString sysLocation are I floor, II floor, III floor and IV floor, then the agent for every GET will randomly select one of the four values. Multiple ranges can be given.
Random can be classified into three types
| Syntax Type | Simulation Types Supported |
|---|---|
|
Type I : Simple Range |
DISPLAY STRING OBJECT ID IP ADDRESS |
|
Type II : Delta varied ranges |
COUNTER & COUNTER64 |
|
Type III : Enumerated range |
GAUGE INTEGER COUNTER |
LINEAR : The Linear type is generated using the formula [y = m * x + c ] The required input values being m and c. For each request the value will be incremented linearly.
WAVE : The wave type is generated using the formula [y = a * cos ( w * t ) ] The required input values are a and w. The response if plotted will take the form of a wave
SINE WAVE:The sine wave would generate using the formula [a * sin ( w * t )]
The required input values would be a and w .
EXPONENTIAL The exponential type is generated using the formula [y = a * e ^ ( b * x ) ] The required input values are a and b. For each request , the value will be incremented exponentially.
Configuring Simulation Types for Scalar Node
The SNMP Agent Simulator will assign a value to every scalar node present in the loaded MIB(s). This value will depend upon the syntax of the node. The simulation type will be by default CONST (except in the case of nodes of type COUNTER or COUNTER64 where the default is LINEAR). The MIB nodes will take the values of the configured simulation type Refer table for details on simulation types supported for a particular syntax type.
Configure values for Simulation Type Constant
You can associate the simulation type CONST to a MIB node, the value that you specify will be associated with the MIB node.
Choose a Scalar Node
from the MIB loaded. When the scalar node is selected, the main screen
displays the properties of the Node.
Object ID : This field displays the corresponding OID of the selected
Node.
Max-Access: The field shows the Maximum Access allowed on the MIB node.
Syntax : This specifies the data type and the type of value it can
accept
Description : This gives a small description about the node
The simulation types
available are listed in a drop down list. Select CONST from the list.
You can provide any value to this MIB Node like simulatortest.
Example : You can associate the MIB node sysDescr
with simulatortest. Whenever
the MIB node is queried it will constantly respond with the configured
value simulatortest.
Configure values for Simulation Type Linear
You can associate the simulation type Linear to the MIB node. The value that you specify will be associated with the MIB node.
Choose a Scalar Node
from the MIB loaded. When the scalar node is selected, the main screen
displays the properties of the Node.
Object ID : This field displays the corresponding OID of the selected
Node.
Max-Access: The field shows the Maximum Access allowed on the MIB node.
Syntax : This specifies the data type and the type of value it can
accept
Description : This gives a small description about the node /p>
The simulation types available are listed in a drop down list. Select Linear from the list.
The linear type simulation is based on the formula [y = m * x + c ]
You will have to provide the values for m and c.
The response when plotted would be a straight line.
Configure values for Simulation Type Wave
You can associate the simulation type Wave to the MIB node, the value that you specify will associated with the MIB node.
Choose a Scalar Node
from the MIB loaded. When the scalar node is selected, the main screen
displays the properties of the Node.
Object ID : This field displays the corresponding OID of the selected
Node.
Max-Access: The field shows the Maximum Access allowed on the MIB node.
Syntax : This specifies the data type and the type of value it can
accept
Description : This gives a small description about the node Select
the a MIB node from the tree.
The simulation types available are listed in a drop down list. select Wave from the list.
The wave type simulation is based on the formula [y = a * cos ( w * t ) ]
You will have to provide the values for a and w.
The response when plotted would be in the form of a wave.
Configure values for Simulation Type Sine wave
You can associate the simulation type Sine Wave to the MIB node, the value that you specify will associated with the MIB node.
Choose a Scalar Node
from the MIB loaded. When the scalar node is selected, the main screen
displays the properties of the Node.
Object ID : This field displays the corresponding OID of the selected
Node.
Max-Access: The field shows the Maximum Access allowed on the MIB node.
Syntax : This specifies the data type and the type of value it can
accept
Description : This gives a small description about the node Select
the a MIB node from the tree.
The simulation types available are listed in a drop down list. select Sine wave from the list.
The Sine wave type simulation is based on the formula [a * sin ( w * t )]
You will have to provide the values for a and w.
The response when plotted would be in the form of a Sin wave.
Configure values for Simulation Type Exponential
You can associate the simulation type Exponential to the MIB node, the value that you specify will associated with the MIB node.
Choose a Scalar Node
from the MIB loaded. When the scalar node is selected, the main screen
displays the properties of the Node.
Object ID : This field displays the corresponding OID of the selected
Node.
Max-Access: The field shows the Maximum Access allowed on the MIB node.
Syntax : This specifies the data type and the type of value it can
accept
Description : This gives a small description about the node Select
the a MIB node from the tree.
The simulation types available are listed in a drop down list. select Exponential from the list.
The Exponential type simulation is based on the formula [ y = a * e ^ ( b * x ) ]
You will have to provide the values for a and b.
The response when plotted would be in the form of a Exponential curve.
Configure values for Simulation Type Random
Whenever the simulation type is selected as RANDOM the " Range " button below the "Value" text field is enabled. The dialog that is displayed on clicking this button will depend on the type of the selected node.
Select the a MIB node from the tree of any one of the syntax types DISPLAY STRING, OBJECT ID, IP ADDRESS.
The simulation types available are listed in a drop down list. select Random from the list.
Click Range to specify the Random simulation type
In this type you have two fields value and values specifed. Provide a string eg. If the MIB node is sysLocation, you can provide a value " I floor " , in this manner you can specify as many values as you want.
When queried it will respond with any one value from the list.
Example : If the values for sysLocation are specified as Floor I, Floor II and Floor III, The values in the list {Floor I ; Floor II ; Floor III} will be associated with the node randomly.
Select a MIB node from the tree with syntax type COUNTER or COUNTER64.
The simulation types available are listed in a drop down list. Select Random from the list.
Click Range to specify the Random simulation type
Specify a starting value say 10 and ending value say 100.
In this case you have to provide a delta variable . A Delta Variable is a random number generated between zero and the delta value, and this value is used as difference value in any one of the ranges that is again selected at random.
Click Add to add to Ranges specified list.
You can add as many ranges as you want. The MIB node would be randomly associated with a random value within the ranges specified.
Example:
If the Delta value is 5 and the Ranges Specified are: 10-20; 21-30, then every time a random number say 3,1,2 is generated between 0 and 5 that is used as difference value in the ranges, the output values would be 3,4,6 on Range 1 and 24,25,27 on range 2 and the ranges are again selected at random.
Select the a MIB node from the tree of any one of the syntax types GAUGE, INTEGER, COUNTER
The simulation types available are listed in a drop down list. Select Random from the list.
Click Range to specify the Random Simulation Type
Specify a starting value say 10 and ending value say 100.
Click Add to add to Ranges specified list.
You can add as many ranges as you want, the MIB node would be randomly associated with a random value within the ranges specified.
|
|
Note: You can also specify a starting value alone. |
Configuring Simulation Type for Tables
To configure simulation types for Tables,
Choose the Table node from the displayed MIB nodes in the MIB tree. The Configure Table button gets enabled denoting that you can perform the table operations.
Select the Configure Table Button. All the existing rows in the table will be displayed.
Selecting a row will display all the column names and values of that row. You can configure simulation type and value for each column of a row in the Table., add new row, Add multiple rows, modify multiple rows and delete rows from the Table.
Refer the topic, "Populating the SNMP Table" to know more about the table operations.
|