Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matheusphalves/snmp
Simple management network protocol implementation.
https://github.com/matheusphalves/snmp
management network protocol
Last synced: 4 days ago
JSON representation
Simple management network protocol implementation.
- Host: GitHub
- URL: https://github.com/matheusphalves/snmp
- Owner: matheusphalves
- License: gpl-3.0
- Created: 2022-03-27T14:10:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-25T13:51:24.000Z (over 2 years ago)
- Last Synced: 2023-03-07T22:48:33.320Z (over 1 year ago)
- Topics: management, network, protocol
- Language: Python
- Homepage:
- Size: 367 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# smnp
Simple management network protocol implementation.# How to run
Install the following packages
```
pip install virtualenv
```Then create a folder and activate a virtual environment.
```
virtualenv snmp snmp/Scripts/activate
```Install the dependencies running
```
pip install -r requirements.txt
```# What's is SNMP?
Simple Network Management Protocol (SNMP) is an Internet Standard protocol used to monitor and manage the network devices connected over an IP. We create one API that handle SNMP Get requests. The results are showed using a react app. If you don't want to use an API for this, just use the ```SnmpManager``` class; that provides a atomic use of each SNMP protocolo's request.
# **Open endpoints**
## Get oid info
```GET URL_API/get_request?ip_address=127.0.0.1&community=public&oid=1.3.6.1.2.1.2.2.1.5.20```
### **Response body (example)**
HTTP Status Code: **200 OK**
```
{
"response": {
"community": "public",
"error_index": "0",
"error_status": "noError",
"name": "1.3.6.1.2.1.2.2.1.1.11",
"request_id": "1",
"type": "number",
"value": "11",
"version": "version-1"
},
"status": true
}
```