|
The first step in simulating an SNMP agent, is to load the MIB file and simulate default values for the MIB. MIBs are specifications containing definitions of management information so that network systems can be remotely monitored, configured and controlled. The rules for writing MIBs are defined in a collection of documents called the Structure of Management Information (SMI).
In this topic, you will learn to create a basic simulation by loading MIB(s) in SNMP Agent Simulator and simulating default values for the MIB. If you already have a saved configuration of the simulated SNMP agent, refer to Loading Agent Configuration.
You can load any MIB which follows the SMI standards to simulate a new SNMP agent with default values. To load a MIB file(s),
Choose File -> Load MIB File option from the menu bar. The Choose MIB file dialog appears displaying all the MIB files.
Select the MIB file(s). To load more than one file, select the files that you want to load with the Ctrl and Shift key depressed.
Click on Load MIBs to load the MIB file in simulator. If the MIB is loaded successfully, you will find the MIB added to the MIB tree. This completes the MIB loading operation. If the MIB file cannot be loaded, the message "Error in loading MIBs" will be displayed and the MIB will not be added in the MIB tree.
When you have completed loading the MIBs, the next step is to simulate default values for the MIB nodes.
On successful loading of the MIB(s), the simulator comes up with a dialog prompting if you would like to simulate default values for the loaded MIB(s). To simulate values, Click Yes. (or)
You can also choose Operations -> Simulate values from the menu bar or Simulate default values icon from the toolbar, to simulate default values for the loaded MIB.
The simulator prompts another dialog asking where you like to store the simulated values.
You can provide any desired table name. Example : sim_table1
The simulated values will be stored in the table.
Now, you have created a basic simulation of an SNMP agent with default values. A 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.
Starting and Testing the Agent
To test the simulated agent ,
Start the Agent. Refer to the topic, Starting and Stopping the Agent.
Query the agent from the Mib Browser or any SNMP Manager application. Refer to the topic, Testing the Agent.
The simulated agent will respond with default values.
Any variation on this basic simulation can be created for use with the SNMP Agent Simulator. Refer to section Configuring Values, to learn more.
The option Load Agent Configuration can be used, if you already have a saved configuration of the SNMP agent and you want to make changes to the existing configuration file.
To load an existing configuration file in the simulator,
Choose File -> Load Agent Configuration from the menu bar or click on the Load Configuration icon . This will bring up the configuration loading dialog. Browse to select the configuration file. Example : The configuration file would be saved as < yourfilename_main.xml >
Click Load to have the configuration loaded.
|