Getting SNMP toolsΒΆ

The SNMP tools are provided under terms and conditions of BSD-style license, and can be freely downloaded from PyPI or GitHub (master branch).

The best way to obtain SNMP tools and dependencies is to pip install them all into a Python virtual environment:

$ python3 -m venv venv3
$ . venv3/bin/activate
$ pip install snmpclitools

or

$ easy_install snmpclitools

In case you do not have the easy_install command on your system but still would like to use the on-line package installation method, please install setuptools package by downloading and running ez_setup.pz bootstrap:

# wget https://bootstrap.pypa.io/ez_setup.py
# python ez_setup.py

In case you are installing SNMP tools on an off-line system, the following packages need to be downloaded and installed:

  • PyASN1, used for handling ASN.1 objects
  • PySNMP, SNMP engine implementation

Optional, but recommended:

  • PyCryptodomex, used by SNMPv3 crypto features
  • PySMI for automatic MIB download and compilation. That helps visualizing more SNMP objects
  • Ply, parser generator required by PySMI

The installation procedure for all the above packages is as follows (on UNIX-based systems):

$ tar zxf package-X.X.X.tar.gz
$ cd package-X.X.X
# python setup.py install
# cd ..
# rm -rf package-X.X.X

In case of any issues, please open a GitHub issue so we could try to help out.