Difference between revisions of "SNMP-NMS"
(.) |
(.) |
||
Line 28: | Line 28: | ||
== Turn MIBs file into JSON documentation == | == Turn MIBs file into JSON documentation == | ||
− | mibdump.py --generate-mib-texts --destination-format json YOUR_MIB_FILE | + | <span style="font-size:larger;">Because MIBS file is not good to load in application, EdgeSense SNMP-NMS use a tools from PySMI to turn MIBS file into json file.</span> |
+ | |||
+ | <span style="font-size:larger;">More about PySMI, please refer to [[#PySMI|this]].</span> | ||
+ | |||
+ | <span style="font-size:larger;">mibdump.py --generate-mib-texts --destination-format json YOUR_MIB_FILE</span> | ||
example: | example: |
Revision as of 08:42, 11 January 2019
Contents
Introduction
Simple Network Management Protocol (SNMP) is an Internet Standard protocol for collecting and organizing information about managed devices on IP networks and for modifying that information to change device behavior. Devices that typically support SNMP include cable modems, routers, switches, servers, workstations, printers, and more.
An SNMP-managed network consists of three key components:
- Managed devices
- Agent – software which runs on managed devices
- Network management station (NMS) – software which runs on the manager
EdgeSense SNMP-NMS
EdgeSense SNMP-NMS is a plug-in of RMM agent, aim to collect object data from SNMP managed device.
Feature:
- Support SNMPv1, SNMPv2c.
- support object type: OCTET STRING, Integer32
How to
Turn MIBs file into JSON documentation
Because MIBS file is not good to load in application, EdgeSense SNMP-NMS use a tools from PySMI to turn MIBS file into json file.
More about PySMI, please refer to this.
mibdump.py --generate-mib-texts --destination-format json YOUR_MIB_FILE
example:
mibdump.py --generate-mib-texts --destination-format json ./advantech-IOcommon_V1.00_B03.mib
Software Requirements
Software Installation for Ubuntu 16.04
Install Steps:
1. Install OS - Ubuntu 16.04 (ex: ubuntu-16.04.5-desktop-amd64.iso)
2. Install MQTT Broker
- Copy MQTT Broker install package (ex: MQTTBrokerSetup-1.0.4-Ubuntu_16.04-x86_64.run) to gateway.
- Execute "sudo chmod +x MQTTBrokerSetup-1.0.4-Ubuntu_16.04-x86_64.run".
- Execute "sudo ./MQTTBrokerSetup-1.0.4-Ubuntu_16.04-x86_64.run" to install.
3. Install EdgeSense SNMP-NMS
- Copy SNMP-NMS install package (ex: SNMP-NMS-1.0.0-Ubuntu_16.04-x86_64.run) to gateway.
- Execute "sudo chmod +x SNMP-NMS-1.0.0-Ubuntu_16.04-x86_64.run".
- Execute "sudo ./SNMP-NMS-1.0.0-Ubuntu_16.04-x86_64.run" to install.
After installation, service will be autorun.
NOTE: Please wire the gateway to Internet with Network cable before install, it is necessary to install the dependencies.
Uninstall Steps:
1. Execute "sudo /usr/local/EdgeSense/SNMP-NMS/uninstall.bash" in terminal.
Configuration
Service control
In Ubuntu
Check if service is running:
$ sudo systemctl status SNMP-NMS.service
Restart service:
$ sudo systemctl restart SNMP-NMS.service
Start service:
$ sudo systemctl start SNMP-NMS.service
Stop service:
$ sudo systemctl stop SNMP-NMS.service
Tools
PySMI
PySMI is a open source tool, we use it to turns MIBs into JSON documents.
For more detailed information, please refer to PySMI official website.