Sign inSign up

wagoautomation/python

By wagoautomation

Updated about 3 years ago

Python with pysnmp and pymodbus.

Image
1

1.7K

wagoautomation/python repository overview

Variables

  • SNMP_VERSION=2c — snmp version 1,2c,3

SNMP Version 1 or 2c specific

  • SNMP_COMMUNITY="public" — default community string

SNMP Version 3 specific

  • SNMP_APROTOCOL="MD5" — default authentication protocol (MD5|SHA)
  • SNMP_APASSPHRASE="pass" — default authentication protocol pass - phrase
  • SNMP_SENGINE-ID="00000000" — default security engine ID (e.g. - 800000020109840301)
  • SNMP_CENGINE-ID="00000000" — default context engine ID (e.g. - 800000020109840301)
  • SNMP_LEVEL="noAuthNoPriv" — default security level (noAuthNoPriv|- authNoPriv|authPriv)
  • SNMP_CONTEXT="backup" — default context name (e.g. bridge1)
  • SNMP_USER-NAME="backup" — default security name (e.g. bert)
  • SNMP_PPROTOCOL="DES" — default privacy protocol (DES|AES)
  • SNMP_PPASSPHRASE="pass" — default privacy protocol pass phrase
  • SNMP_BOOTS="" — default destination engine boots/time

Volumes

  • /usr/local/lib/python — folder for python modules

Usage

The working directory inside the container defaults to /app

To execute a python script directly from the host system cd into the directory containing the python script and enter:
docker run --rm -it -v $(pwd):/app wagoautomation/python:3.8-pysnmp-pymodbus-alpine-98 <mypythonscript.py>

For convinience you could create a permanent alias by adding following line in ~.profile in your host system:
alias python="docker run --rm -it -v $(pwd):/app wagoautomation/python:3.8-pysnmp-pymodbus-alpine-98"

and just call
python <mypythonscript.py>
to execute a python script or simply call
python
to open python interactively.

Tag summary

Content type

Image

Digest

Size

168.9 MB

Last updated

about 5 years ago

docker pull wagoautomation/python:3.8-scipy-sklearn-influxdb