Configuring MIB Values

 



 

Overview

 

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.

Configuring sysUpTime

 

Supported Simulation Types

 

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
  • OCTET STRING

  • OBJECT ID

  • IPADDRESS

CONST

RANDOM

  • Counter and Counter64

  • Gauge

  • Integer

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.

  1. 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

  1. 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.

  1. 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>

  1. The simulation types available are listed in a drop down list. Select Linear from the list.

  2. The linear type simulation is based on the formula [y = m * x + c ]

  3. You will have to provide the values for m and c.

  4. 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.

  1. 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.

  2. The simulation types available are listed in a drop down list. select Wave from the list.

  3. The wave type simulation is based on the formula [y = a * cos ( w * t ) ]

  4. You will have to provide the values for a and w.

  5. 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.

  1. 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.

  2. The simulation types available are listed in a drop down list. select Sine wave from the list.

  3. The Sine wave type simulation is based on the formula [a * sin ( w * t )]

  4. You will have to provide the values for a and w.

  5. 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.

  1. 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.

  2. The simulation types available are listed in a drop down list. select Exponential from the list.

  3. The Exponential type simulation is based on the formula [ y = a * e ^ ( b * x ) ]

  4. You will have to provide the values for a and b.

  5. 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.

 

Type I : Simple Range

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.

 

Type II : Delta varied ranges

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.

 

Type III Enumerated Range

Configuring Simulation Type for Tables

 

To configure simulation types for Tables,

Refer the topic, "Populating the SNMP Table" to know more about the table operations.



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