Starting Multiple Network from Command Line

 



 

Overview

 

The command line Network Simulator is purely NON-GUI and uses only character user interface for obtaining various inputs for the simulator. It can be invoked by executing the StartNetwork.bat/sh in <Simulator Home>/bin/cmdline directory.  Using this utility, you can start a single network or multiple networks, from command line by specifying the name of the network created with the Network Designer tool.

 

Command Line Options

 

Command Line option : Mandatory

 

Options Explanation

-net <network name>

Specify the name of the network. To start multiple networks, specify the name of each network, separated by a comma.

 

Protocol Option : Optional

 

Options Explanation

- proto <snmp, cli, ssh, tl1, tftp, telnet>

To start a specific protocol present in all the devices. The protocol to be supported can be specified, separated by a comma. For example, if SNMP and Telnet are supported, specify the option as follows:  -proto snmp, telnet

 

Debug Options : Optional.

 

Options Explanation

 -m <debugLevel>

 The option to generate debug messages. Debug Level can be 1 or 2 or 3 or 4

 -l <logFile>

Log file name

 

Initialize Services Options : Optional.  The services are enabled by default.

 

Options Explanation

-trap or -ts <enable/disable>

Enable/Disable Trap Sending. If the service is disabled, the agent will not check for trap configurations.

-snmpbehavior or -bs <enable/disable>

Enable/Disable Script Execution. If the service is disabled, the agent will not check for script configurations. 

-scramblepdu or -ps <enable/disable>

Enable/Disable to scramble the PDU

-autonomous or -at <enable/disable>

Enable/Disable Autonomous Sending. If the service is disabled, the agent will not check for autonomous configurations. 

-tl1behavior or -tb <enable/disable>

Enable/Disable TL1 Script Execution. If the service is disabled, the agent will not check for script configurations. 

 

Miscellaneous Options : Optional

 

Options

Explanations

-v3

Starts the network with v3 agents.

-encoding

Starts the network with the encoding format specified. If the specified encoding format is not supported, then default encoding format is selected.

-rmi

To manage the network simulator remotely using RMI.

 

Global Manager Settings to send traps : Optional

 

Options

Explanation

-tms <Trap Manager Settings>

To specify the global manager details, if you want all the traps to be sent to the same set of Managers, specified in this option. It should be in the following format - mgr1:port1:community1,mgr2:port2,community

 

Starting Network Simulation in Windows

 

To start Network Simulation in windows, type the following command from the <SimulatorHome>/bin/cmdline directory.

 

StartNetwork.bat -net .\networks\samplenetwork -m <specify debug level as 1 or 2> -l <to log the messages>

 

Starting Network Simulation in Linux

 

To start Network Simulation in Linux OS, type the following command from the < SimulatorHome>/bin/commandline directory :

 

$ Sh StartNetwork.sh -net ./networks/samplenetwork -m <specify debug level as 1 or 2> -l <to log the messages>  

 

 

Note:

 

1. The details of the Database server name, Port number, User name, Password and the Server path is stored in database_params.conf file in <SimulatorHome>/conf  directory.  You can make the required database settings in this file.

 

2. To start multiple networks from command line, the name of each network must be specified with the -net option, separated by a comma. For example: StartNetwork -net test1, test2

 

3. If there is an IP clash while starting multiple networks, an error message will be displayed and the networks will not get started.


Listing the Started Networks


Using the utility, "GetStartedNetworks.bat/sh in <Simulator Home>/bin/cmdline directory", you can get the list of Started Networks.


For example:  sh GetStartedNetworks.sh

 

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