Line 114: |
Line 114: |
| 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|middle]] |
| + | |
| 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. |
| + | |
| '''Important note:''' Do not forget to add .0 at the end of the generated OID code. | | '''Important note:''' Do not forget to add .0 at the end of the generated OID code. |
| | | |
| ==SNMP Configuration== | | ==SNMP Configuration== |
− | To configure SNMP, first enable SNMP service, leave or change 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. |
| [[File:Networking_device_configurationexample_snmp_snmpconfiguration_v1.png]] | | [[File:Networking_device_configurationexample_snmp_snmpconfiguration_v1.png]] |
| + | |
| + | ===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. |
| + | |
| + | ===Testing SNMP with console command=== |
| + | We can use '''snmpget''' command to get information from router: |
| + | |
| + | $ snmpget -c public -v 2c IP_address:port OID_code |