SNMP (Simple Network Management Protocol) is a network protocol for monitoring and control of network elements, such as routers, servers, switches, computers, etc., from a central station.

You’ll find an example for monitoring of various router values via SNMP in the following. The tool used to simulate the central station is just an example. This can be used as an example for the configuration of the software actually used.

Situation

Router values are to be read using SNMP.

Solution

An SNMP agent will be activated and configured on the router, which responds to SNMP Get requests received from the central station. The values and parameters are contained as objects in the MIB (Management Information Base). The MIB will be downloaded from the router and imported into the software of the central station.
Ensure that you have access to the web interface of the router.

Activating the SNMP agent and downloading the MIB

  1. Open web interface of the router using a browser: 192.168.1.1 [1]

  2. Click on (Display help text) in the title bar to show helpful information regarding the configuration options in the Inline Help.

  3. In the ServicesSNMP agent menu, check the checkbox Activate SNMP agent and configure the SNMP agent:

    • Port: 161 (default)

    • Use SNMP v1/2c:

    • Community: commstring [2]

  1. Click on Save settings.

  2. Download the Private SNMP MIB ().
    cg en m3 snmp monitoring 01

Since the free available MIB browser used for this example only supports the SNMP v2 protocol, this is used here. It is recommended to use the SNMP v3 protocol with authentication and encryption using sufficiently strong passwords or protect the SNMP communication using a VPN tunnel for productivity use.
  1. Click on the blinking gear in the title bar () to activate the profile.

Creating a Firewall rule

If a Firewall is enabled on the router, an exception rule must be created that permits SNMP Get requests.

  1. In the NetfilterIP filter menu add a new Firewall rule () and edit it ():

    • Description: Access to SNMP agent

    • Packet direction: INPUT

    • IP version: select used IP version

    • Protocol: UDP

    • Input interface: check all interfaces over which the SNMP agent is to be accessed

    • Destination port: above configured UDP port (default 161)

  2. Click on Save settings.
    cg en m3 snmp monitoring 02

  3. Click on the blinking gear in the title bar () to activate the profile.

Retrieving the SNMP objects by the central station

The iReasoning MIB Browser is used in this Configuration Guide for retrieving the values from the router. The software of your central station will differ from this and must be configured individually using this as an example.

  1. Download the iReasoning MIB Browser and install it.

  2. Start the MIB Browser.

    • Select FileUnLoad MIBs in the menu and delete the standard MIBs for reasons of clarity.

    • Select FileLoad MIBs in the menu and load the MIB downloaded from the router above.

  3. Enter the IP address of the router in the Address field (default: 192.168.1.1), click on Advanced…​ and configure the properties of the SNMP Agent:

    • Port: above configures UDP port (default 161)

    • Read Community: above configured Community String

    • Write Community: above configured Community String

    • SNMP Version: 2

  4. Click on OK.
    cg m3 snmp monitoring mib 01

  5. Highlight the desired value in the MIB Tree and select Get under Operations. [3]
    cg m3 snmp monitoring mib 02
    In this example, the Value column of the result table returns the value of input 1 - low, i.e. open.

  6. Highlight another value and click on Go.

Troubleshooting

  • You may disable the netfilters in the NetfilterIP filter menu temporarily to find out, whether wrong filter settings are the reason for access issues.


Back to the Configuration Guides for icom OS Smart Devices

Back to overview


1. Login depending on configuration; default for past firmware versions: User name: insys, Password: icom
2. Use an individual Community String instead of this example.
3. No further click in Go is necessary following a change under Operations.