Changes

no edit summary
Line 18: Line 18:     
===RUT9xx===
 
===RUT9xx===
To setup SNMP first make sure that SNMP package is installed, more information here [[RUT955 Packages]] and [[RUT950 Packages]].
+
To setup SNMP first make sure that SNMP package is installed, more information here [[RUT955 Packages]] and [[RUT950_Package_Manager|RUT950 Packages]].
    
==OID codes==
 
==OID codes==
Line 69: Line 69:  
     </tr>
 
     </tr>
 
<table>
 
<table>
 
+
----
 
To communicate with Teltonika router the start of the OID code, in this case, will be 1.3.6.1.4.1.48690.
 
To communicate with Teltonika router the start of the OID code, in this case, will be 1.3.6.1.4.1.48690.
   Line 116: Line 116:  
     </tr>
 
     </tr>
 
<table>
 
<table>
 +
----
 
To access variable values, after enterprise number add field number and then specify variable number. For example: .1.3.6.1.4.1.48690.1.7.0 represents router name (48690.1.7.0: Enterprise (48690) - Teltonika, Field (1) - static, Variable (7.0) - routerName). All OID codes can be generated from MIB file, basic OID codes can be found here [[RUT955 SNMP#SNMP Variables list]].
 
To access variable values, after enterprise number add field number and then specify variable number. For example: .1.3.6.1.4.1.48690.1.7.0 represents router name (48690.1.7.0: Enterprise (48690) - Teltonika, Field (1) - static, Variable (7.0) - routerName). All OID codes can be generated from MIB file, basic OID codes can be found here [[RUT955 SNMP#SNMP Variables list]].
    
==MIB File==
 
==MIB File==
 
MIB File can be used with MIB browsers for easier access to configuration and status information variables of the device. Download the MIB file and upload/load it in MIB browser.  
 
MIB File can be used with MIB browsers for easier access to configuration and status information variables of the device. Download the MIB file and upload/load it in MIB browser.  
In this example '''iReasoning MIB browser''' was used.
+
In this example '''iReasoning MIB browser''' was used '''only for testing purpose'''.
   −
[[File:Networking device configrationexample snmp mib browser v1.png]]
+
[[File:Networking device configrationexample snmp mib browser v2.png]]
 
===Generating OID code from MIB File===
 
===Generating OID code from MIB File===
 
MIB File contains all OID codes.  
 
MIB File contains all OID codes.  
 
Line containing numbers needed for OID code can be identified by this marking "::=".
 
Line containing numbers needed for OID code can be identified by this marking "::=".
   −
[[File:Networking device configurationexample snmp mib file oid codes v1.png|middle]]
+
[[File:Networking device configurationexample snmp mib file oid codes v1.png]]
    
All that is left, is to add the numbers together. Example from given MIB File: 1.3.6.1.4.1.48690.1.1.0.
 
All that is left, is to add the numbers together. Example from given MIB File: 1.3.6.1.4.1.48690.1.1.0.
Line 134: Line 135:     
==SNMP Configuration==
 
==SNMP Configuration==
To configure SNMP, first enable SNMP service, leave or change the port, you can leave everything else as it is.
+
To configure SNMP, first enable SNMP service, leave or change the port, you can leave everything else as it is.
 +
 
 +
Press "Download" button to download MIB file.
    
[[File:Networking_device_configurationexample_snmp_snmpconfiguration_v1.png]]
 
[[File:Networking_device_configurationexample_snmp_snmpconfiguration_v1.png]]
    
===Testing SNMP with MIB browser===
 
===Testing SNMP with MIB browser===
Use MIB browser to test if SNMP works. Make sure to use same port and IP address of the router in MIB browser, upload/load MIB file. MIB browser lets you walk through all OID codes, or return a distinct variable value.
+
Use MIB browser to test if SNMP works. Make sure to use same port and IP address of the router in MIB browser. To enter port number in MIB browser press "Advanced" button '''(on the right of IP address field)'''.
   −
[[File:Networking device configurationexample snmp test example v1.png]]
+
[[File:Networking device configurationexample mib browser port v2.png]]
 +
 
 +
 
 +
To upload/load MIB file press "File" in menu bar '''(top left side of the window)''' and press "Load MIBs", '''make sure to select the MIB file you downloaded from the WebUI'''. MIB browser lets you walk through all OID codes, or return a distinct variable value. To walk through all OID codes select "walk" in Operation tab '''(top left of the window)'''. To iterate through OID codes manually, navigate to the desired folder on the left of the MIB browser window and select specific element '''(Double click)'''. The value of the variable will be printed in the '''Result Table'''.
 +
 
 +
[[File:Networking device configurationexample snmp test example v2.png]]
    
===Testing SNMP with console command===
 
===Testing SNMP with console command===
Line 154: Line 162:  
==Trap Configuration==
 
==Trap Configuration==
   −
First enable SNMP Trap, then enter '''Host/IP''', Hots/IP is the SNMP manager, computer to which SNMP agent will send Trap messages. If router is connected to PC via ethernet cable, enter the IP address of the interface the router is connected to. You can use '''ipconfig''' command on windows, '''ifconfig''' on linux to find IP address of the interface to which router is connected. Next choose '''port''', preferably choose port number higher than '''1024''' so SNMP manager could establish connection without root/admin rights.
+
First enable SNMP Trap, then enter '''Host/IP''', Hots/IP is the SNMP manager, computer to which SNMP agent will send Trap messages. If router is connected to PC via ethernet cable, enter the IP address of the interface the router is connected to. You can use '''ipconfig''' command on windows, '''ifconfig''' on linux to find IP address of the interface to which router is connected. Next choose '''port''', preferably choose port number higher than '''1024''' so SNMP manager could establish connection without root/admin rights. If you choose to leave default port '''162''' make sure to launch SNMP manager with admin/root permissions.
    
[[File:Networking device configurationexample trap configurations v1.png]]
 
[[File:Networking device configurationexample trap configurations v1.png]]
Line 222: Line 230:  
To test trap messages with MIB browser, open Trap receiver and configure the setting. Make sure to use the same port saved in WebUI configuration.
 
To test trap messages with MIB browser, open Trap receiver and configure the setting. Make sure to use the same port saved in WebUI configuration.
   −
[[File:Networking device configurationexample snmp trap receiver config v1.png]]
+
'''Note:''' Preferably open MIB browser with root/admin permissions.
 +
 
 +
[[File:Networking device configurationexample snmp trap receiver config v2.png]]
 
----
 
----
 
To test "Connection type trap" reboot mobile modem. You can reboot modem through Status -> Network window.
 
To test "Connection type trap" reboot mobile modem. You can reboot modem through Status -> Network window.
 
MIB browser should receive Trap message.
 
MIB browser should receive Trap message.
   −
[[File:Networking configurationexample received trap v1.png]]
+
[[File:Networking configurationexample received trap v2.png]]
 +
 
 +
===Testing Trap with Linux Terminal===
 +
To test Traps with Linux terminal extra configurations and packages are required. All information how to setup Trap listening service and how to test it can be found here [[Testing Trap With Linux Operating System]].
 +
[[Category:SNMP]]