Network Recorder

 



Overview

 

The network recorder allows to easily create simulations of actual devices on your network. It enables users to automatically simulate the behavior of actual devices on their network, by capturing a 'snapshot' of the device MIB in actual operation. Any number of target devices can be recorded simultaneously by providing the starting and ending IP address.

 

The recorded network can be saved and replayed instantly in the Network Designer. Any variation on the recorded data can be created for use with the Network Designer tool to recreate problems or to test configuration variations. Network recorder is supported both in UI and command line.

 

Recording a Network from UI

  1. Start the Network Recorder by invoking NetworkRecorder.bat/sh from <SimulatorHome>/bin directory.  

  2. Enter the following details in the UI.

  1. Click Record to record the SNMP devices running at the specified port with the specified IP address. When recording is completed, the following message is displayed.

 

The log file snmp_network_recorder_<num>.log in <SimulatorHome>/logs directory captures the log messages like details of the devices not recorded and the possible reasons. For example : "The device is not a snmp device or may be out of service 192.168.1.41.

 

Note: The DeviceOid.prop file in <SimulatorHome>/conf folder contains the sysObjectId variable and the name of the device. During network recording, the network device is assigned a name, based on the sysObjectId value specified in this file for the specific device.

 

 

Recording a Network from Command Line

 

Start the command line network recorder by executing NetworkRecorder.bat/sh from <SimulatorHome>/bin/cmdline directory, with the following options. The recorder connects to the PostgreSQL bundled with the product with the default settings as specified in the database_params.conf file in <SimulatorHome>/conf directory. The details of the database server, port, username, password and server path is stored in this conf file.

 

Mandatory Options:

    1. Options

      Explanation

       -start <starting IP address>

      The starting IP address of the network to be recorded

       -end  <ending IP address>

      The ending IP address of the network to be recorded

       -p  <port number>

      The port number at which the real devices of the network are running. The

       default port  is 161

       -dir  <MIBs dir>      

      The absolute path of the directory containing all the MIBs implemented by the devices in the network.

       -name  <network name>

      The name of the network to be recorded. The network will be recorded in <Simulator_Home>/networks/<network name> directory.

  Optional Options:

    1. Options

      Explanation

      -c  <community>

      The community of the SNMP device

      -timeOut

      The minimum time to wait for a reply from the agent (in microseconds).

       -v <v1 | v2c | v3>

         The version of SNMP agent running in the device. The v3 options will be taken from <SIM_HOME>/conf/v3recording.prop file

      -retries

      The number of retries to be made while discovering the device in the network.

 

Example

 

NetworkRecorder.bat -start 192.168.1.40 -end 192.168.1.50 -p 161 -dir C:\WebNMS\simulator4\mibs -name sampleNetwork -c public -retries 3

 

 

Directory Structure of the Recorded network

 

When you record a network, the following folders will be created in <Simulator_Home>/networks directory, with the following structure :

The database tables will be generated in <Simulator_Home>/pgsql/data/<network name>_1 directory.  If the data exceeds 500 tables, a new database will be created for the same network in <Simulator_Home>/pgsql/data/<network name>_2 directory.

 

Loading the Network in Simulator

 

The recorded network can be loaded in the network designer and any variation on the recorded data can be created in the network designer tool to recreate problems or to test configuration variations.

 

To load the recorded network,

Error Messages

 

The log messages are captured in snmp_network_recorder_<num>.log and error messages are captured in the snmp_network_recorder_<num>.err  in <SimulatorHome>/logs directory. Some of the error messages are given below :

  1. Problem in loading the MIBs in the directory provided

This message is displayed if the MIB file contains the .cmi and .cds extensions or if the required MIB file does not exist.

  1. The database server is not started with specified values

This message is displayed if the database server is not started at localhost with user name as root and empty password at port 3306.  The database path is <SimulatorHome>/pgsql/bin directory.

  1. No device discovered in the network

This message is displayed if the recorder is unable to discover any device specified in the starting and ending ip address range, at the specified port number.

Copyright © 2012, ZOHO Corp. All Rights Reserved.
Network Monitoring Software from ManageEngine