Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Configuration

Stephan Fuhrmann edited this page Oct 23, 2019 · 2 revisions

List of agents

The list of agents should be specified in a configuration file, that is either provided by a command line option or as a startup parameter by a method call.

The configuration contains a list of agent defintions in YAML. It might look like the following example:

- name: "example1"
  device: "src/test/resources/configuration/cisco.yaml"
  walk: "src/test/resources/configuration/example.txt"
  ip: "127.0.0.1"
  port: 10000

These are the available properties

Name Default Description
name address:port The name of the agent
device - The path to the device configuration or empty if not specified
walk - The path to the SNMP walk dump
ip - The IP the agent should bind to
port - The port the agent should run on
community public The SNMPv2c community

How to get walk dumps

Walk dumps can be created with the help of the "snmpwalk" command:

snmpwalk -On -v2c -cPUBLIC 172.20.1.1 > my-dump

Device configuration

A device has a name and a list of variable modifiers and might look like the following example:

name: "My Example device"
modifiers:
  - oid: ".1.3.6.1.4.1.9.2.1.56"
    class: "com.oneandone.snmpman.configuration.modifier.Integer32Modifier"
    properties:
       minimum: 0
       maximum: 100
       minimumStep: 0
       maximumStep: 100`

Have a look at the Modifier to find out more about the available modifiers and their properties.

Clone this wiki locally