Coder Social home page Coder Social logo

device-snmp's Introduction

Main Author: Anantha Boyapalle

Copyright 2016-17, Dell, Inc.

SNMP Micro Service - device service for connecting SNMP devices to EdgeX.

device-snmp's People

Contributors

chadbyoung avatar cloudxxx8 avatar feclare avatar jpwhitemn avatar jpwku avatar trcox avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

device-snmp's Issues

Where to change or fix the source port of SNMP microservice packet?

I got a strange problem. When I fellow the EdgeX document '5.3. SNMP - Adding a Device to EdgeX' to add my SNMP device. I couldn't get any data from my SNMP device. Originally, I thought it was because no one was listening to the response packet of SNMP agent. But it seems like there is another reason. Someone knows why the source port of SNMP microservice packet is arbitrary value, and how the SNMP microservice to listen this packet. Thanks a lot.

Tracking process:
(1) Use a command 'sudo docker logs -f edgex-device-snmp' to get information. the key information as bellow

[2018-11-28 01:51:30.959] boot - 8  INFO [Thread-190] --- SNMPDriver: ProcessCommand: get, interface: HTTP, address: 172.16.12.29, attributes: OID:1.3.6.1.4.1.10297.100.2.1.1.0:community:public, value: 1
[2018-11-28 01:51:36.961] boot - 8 ERROR [Thread-190] --- SNMPDriver: Exception in getValue():org.edgexfoundry.exception.DeviceNotFoundException: could not find device 'Connection timed out'.

(2) Use Wireshark to check the packet. There are request and response packets. But the soource port of request packet is 58477
edgex_snmp_source-port_issue

(3) Check listening ports with a command 'netstat'. No one cares about it.
$ netstat -l

(4) Download and trace the source code 'device-snmp' on the github edgexfoundry. There is no 58477.

(5) Modify the file 'docker-compose.yml' to add port listen on edgex-device-snmp and run 'docker-compose up -d device-snmp' to restart the container. Everything works fine now.

  device-snmp:
    image: edgexfoundry/docker-device-snmp:0.6.0
    ports:
      - "49989:49989"
      - "58477:58477"
    container_name: edgex-device-snmp
    hostname: edgex-device-snmp
    networks:
      - edgex-network
    volumes:
      - db-data:/data/db
      - log-data:/edgex/logs
      - consul-config:/consul/config
      - consul-data:/consul/data
    depends_on:
      - data
      - command

(6) The strangest thing is that I remove it later, and restart the SNMP container. It still works fine. And I restart the SNMP container everytime, the source port of packet will change to another number.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.