Package com.oneandone.snmpman
Class Main
- java.lang.Object
-
- com.oneandone.snmpman.Main
-
public final class Main extends java.lang.ObjectThis is the main-class for this application.
A mandatory argument for execution of themain(String...)method is the path to the configuration file. SeeCommandLineOptionsfor information on available command line options.
Each configuration list item represents an instance of theAgentConfiguration. The constructorAgentConfiguration(String, java.io.File, java.io.File, String, int, String)lists all available properties, which may or may not be required.
An entry may look like the following:
You can find more example within the test resources of this project.- name: "example1" device: "src/test/resources/configuration/cisco.yaml" walk: "src/test/resources/configuration/example.txt" ip: "127.0.0.1" port: 10000
The configurationYAMLfile defines a list of all agents that should be simulated by theMain.
-
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String... args)The application entry-point.
-
-
-
Method Detail
-
main
public static void main(java.lang.String... args)
The application entry-point.
All available command-line arguments are documented in theCommandLineOptionsclass.
If illegal command-line options were specified for execution, a usage help message will be printed out on theSystem.errstream and the application will terminate. Otherwise the configuration will be read and used for execution.- Parameters:
args- the command-line arguments
-
-