Skip to content

Commit

Permalink
pysnmp-apps renamed into snmpclitools
Browse files Browse the repository at this point in the history
  • Loading branch information
etingof committed Jan 7, 2018
1 parent bf2a99e commit b929758
Show file tree
Hide file tree
Showing 23 changed files with 87 additions and 81 deletions.
10 changes: 8 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

Revision 0.6.1, released 07-01-2018
-----------------------------------

- The pysnmp-apps project renamed into a hopefully more meaningful
snmpclitools

Revision 0.5.3, released 06-01-2018
-----------------------------------

Expand Down Expand Up @@ -66,7 +72,7 @@ Revision 0.3.4, released 05-10-2013
Revision 0.3.3, released 30-01-2013
-----------------------------------

- Tools will report pysnmp-apps package version along with pysnmp version
- Tools will report snmpclitools package version along with pysnmp version
being used.
- Package meta-information updated.
- Package version is now in __init__.__version__
Expand Down Expand Up @@ -213,4 +219,4 @@ Revision 0.0.1
- PySNMP-based applications split off the pysnmp package and re-released
on their own
- The command line interface to SNMP tools previously shipped along with PySNMP
not reworked for a more consistent design and re-released within pysnmp-apps.
not reworked for a more consistent design and re-released within snmpclitools.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@

Pure-Python SNMP management tools
---------------------------------
Command-line SNMP tools
-----------------------

[![PyPI](https://img.shields.io/pypi/v/pysnmp-apps.svg?maxAge=2592000)](https://pypi.python.org/pypi/pysnmp-apps)
[![Python Versions](https://img.shields.io/pypi/pyversions/pysnmp-apps.svg)](https://pypi.python.org/pypi/pysnmp-apps/)
[![Build status](https://travis-ci.org/etingof/pysnmp-apps.svg?branch=master)](https://secure.travis-ci.org/etingof/pysnmp-apps)
[![GitHub license](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/etingof/pysnmp-apps/master/LICENSE.txt)
[![PyPI](https://img.shields.io/pypi/v/snmpclitools.svg?maxAge=2592000)](https://pypi.python.org/pypi/snmpclitools)
[![Python Versions](https://img.shields.io/pypi/pyversions/snmpclitools.svg)](https://pypi.python.org/pypi/snmpclitools/)
[![Build status](https://travis-ci.org/etingof/snmpclitools.svg?branch=master)](https://secure.travis-ci.org/etingof/snmpclitools)
[![GitHub license](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/etingof/snmpclitools/master/LICENSE.txt)

Here is a set of SNMP applications written on top of
[pysnmp](http://snmplabs.com/pysnmp/) library. Some of these tools mimic
their famous [Net-SNMP](http://sourceforge.net/projects/net-snmp/)
counterparts, while the rest are designed to ease integration with
other Python applications.
This is a collection of command-line SNMP tools written in pure-Python.
The tools mimic their famous [Net-SNMP](http://sourceforge.net/projects/net-snmp/)
counterparts.

In the past this project was known as *pysnmp-apps*.

Features
--------
Expand All @@ -28,17 +28,17 @@ Features
Download
--------

The pysnmp-apps package is distributed under terms and conditions of 2-clause
BSD [license](http://snmplabs.com/pysnmp/license.html). Source code is freely
available as a Github [repo](https://github.com/etingof/pysnmp-apps).
The snmpclitools package is distributed under terms and conditions of 2-clause
BSD [license](http://snmplabs.com/snmpclitools/license.html). Source code is freely
available as a Github [repo](https://github.com/etingof/snmpclitools).

Installation
------------

Download pysnmp-apps from [PyPI](https://pypi.python.org/pypi/pysnmp-apps) or just run:
Download snmpclitools from [PyPI](https://pypi.python.org/pypi/snmpclitools) or just run:

```bash
$ pip install pysnmp-apps
$ pip install snmpclitools
```

How to use the tools
Expand Down Expand Up @@ -66,13 +66,13 @@ notWritable(17)
For more information, please, run any of these tools with --help option.

You can play with different security protocols against the publicly available SNMP
agent like [this one @snmplabs.com](http://snmplabs.com/snmpsim/public-snmp-agent-simulator.html>).
agent like [this one @snmplabs.com](http://snmplabs.com/snmpsim/public-snmp-agent-simulator.html).

Getting help
------------

If something does not work as expected, try browsing PySNMP
[mailing list archives](http://sourceforge.net/mail/?group_id=14735) or post
If something does not work as expected, please open up a
[GitHub issue](https://github.com/etingof/snmpclitools/issues/new) or post
your question [to Stack Overflow](http://stackoverflow.com/questions/ask).

Feedback and collaboration
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
'description': '<p align=left><i><b>Brewing free software for the greater good</i></b></p>',
'show_powered_by': False,
'github_user': 'etingof',
'github_repo': 'pysnmp-apps',
'github_repo': 'snmpclitools',
'fixed_sidebar': True,
}

Expand Down
8 changes: 4 additions & 4 deletions docs/source/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ of computing platforms and ease introducing new SNMP features
by leveraging the high-level programming language.

These SNMP tools are free and open-source. Source code is hosted in
a `GitHub repo <https://github.com/etingof/pysnmp-apps>`_ and
a `GitHub repo <https://github.com/etingof/snmpclitools>`_ and
distributed under 2-clause BSD-style license.

Quick start
-----------

If you understand SNMP and have some experience with the Net-SNMP tool set,
you do not need to learn much. Just install *pysnmp-apps* and run the
you do not need to learn much. Just install *snmpclitools* and run the
*.py*-suffixed version of the SNMP tool you want.

.. code-block:: bash
Expand Down Expand Up @@ -103,7 +103,7 @@ Best way is usually to

.. code-block:: bash
# pip install pysnmp-apps
# pip install snmpclitools
If that does not work for you for some reason, you might need to read the
following page.
Expand Down Expand Up @@ -133,5 +133,5 @@ Contact
-------

In case of questions or issues using these SNMP tools, please open up an
`issue <https://github.com/etingof/pysnmp-apps/issues>`_ at GitHub.
`issue <https://github.com/etingof/snmpclitools/issues>`_ at GitHub.
Or just fix it and send us a pull request. ;-)
10 changes: 5 additions & 5 deletions docs/source/download.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Getting SNMP tools

The SNMP tools are provided under terms and conditions of BSD-style
license, and can be freely downloaded from
`PyPI <http://pypi.python.org/pypi/pysnmp-apps/>`_ or
GitHub (`master branch <https://github.com/etingof/pysnmp-apps/archive/master.zip>`_).
`PyPI <http://pypi.python.org/pypi/snmpclitools/>`_ or
GitHub (`master branch <https://github.com/etingof/snmpclitools/archive/master.zip>`_).

The best way to obtain SNMP tools and dependencies is to *pip install*
them all into a Python virtual environment:
Expand All @@ -17,13 +17,13 @@ them all into a Python virtual environment:
$ python3 -m venv venv3
$ . venv3/bin/activate
$ pip install pysnmp-apps
$ pip install snmpclitools
or

.. code-block:: bash
$ easy_install pysnmp-apps
$ 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
Expand Down Expand Up @@ -63,7 +63,7 @@ The installation procedure for all the above packages is as follows
# cd ..
# rm -rf package-X.X.X
In case of any issues, please open a `GitHub issue <https://github.com/etingof/pysnmp-apps/issues/new>`_ so
In case of any issues, please open a `GitHub issue <https://github.com/etingof/snmpclitools/issues/new>`_ so
we could try to help out.


6 changes: 3 additions & 3 deletions scripts/snmpbulkwalk.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env python
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
# GETBULK command generator
#
import sys
import time
import traceback
from pysnmp_apps.cli import main, msgmod, secmod, target, pdu, mibview, base
from snmpclitools.cli import main, msgmod, secmod, target, pdu, mibview, base
from pysnmp.entity import engine
from pysnmp.entity.rfc3413 import cmdgen
from pysnmp.proto import rfc1902
Expand Down
6 changes: 3 additions & 3 deletions scripts/snmpget.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env python
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
# GET command generator
#
import sys
import traceback
from pysnmp_apps.cli import main, msgmod, secmod, target, pdu, mibview, base
from snmpclitools.cli import main, msgmod, secmod, target, pdu, mibview, base
from pysnmp.entity import engine
from pysnmp.entity.rfc3413 import cmdgen
from pysnmp import error
Expand Down
6 changes: 3 additions & 3 deletions scripts/snmpset.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env python
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
# SET command generator
#
import sys
import traceback
from pysnmp_apps.cli import main, msgmod, secmod, target, pdu, mibview, base
from snmpclitools.cli import main, msgmod, secmod, target, pdu, mibview, base
from pysnmp.entity import engine
from pysnmp.entity.rfc3413 import cmdgen
from pysnmp import error
Expand Down
6 changes: 3 additions & 3 deletions scripts/snmptranslate.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/usr/bin/env python
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
# Command-line MIB browser
#
import sys
import traceback
from pysnmp.entity import engine
from pysnmp_apps.cli import main, pdu, mibview, base
from snmpclitools.cli import main, pdu, mibview, base
from pysnmp.smi.error import NoSuchObjectError
from pysnmp import error
from pyasn1.type import univ
Expand Down
6 changes: 3 additions & 3 deletions scripts/snmptrap.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/usr/bin/env python
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
# Notificaton Originator
#
import sys
import socket
import traceback
from pysnmp_apps.cli import main, msgmod, secmod, target, pdu, mibview, base
from snmpclitools.cli import main, msgmod, secmod, target, pdu, mibview, base
from pysnmp.entity import engine, config
from pysnmp.entity.rfc3413 import ntforg
from pysnmp.proto.proxy import rfc2576
Expand Down
6 changes: 3 additions & 3 deletions scripts/snmpwalk.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/usr/bin/env python
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
# GETNEXT command generator
#
import sys
import time
import traceback
from pysnmp_apps.cli import main, msgmod, secmod, target, pdu, mibview, base
from snmpclitools.cli import main, msgmod, secmod, target, pdu, mibview, base
from pysnmp.entity import engine
from pysnmp.entity.rfc3413 import cmdgen
from pysnmp.proto import rfc1902
Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
"""SNMP command-line tools
Expand Down Expand Up @@ -80,18 +80,18 @@ def howto_install_setuptools():

params.update(
{
'name': 'pysnmp-apps',
'version': open('pysnmp_apps/__init__.py').read().split('\'')[1],
'name': 'snmpclitools',
'version': open('snmpclitools/__init__.py').read().split('\'')[1],
'description': doclines[0],
'long_description': ' '.join(doclines[1:]),
'maintainer': 'Ilya Etingof <[email protected]>',
'author': 'Ilya Etingof',
'author_email': '[email protected]',
'url': 'https://github.com/etingof/pysnmp-apps',
'url': 'https://github.com/etingof/snmpclitools',
'classifiers': [x for x in classifiers.split('\n') if x],
'platforms': ['any'],
'license': 'BSD',
'packages': ['pysnmp_apps', 'pysnmp_apps.cli'],
'packages': ['snmpclitools', 'snmpclitools.cli'],
'scripts': ['scripts/snmpget.py',
'scripts/snmpset.py',
'scripts/snmpwalk.py',
Expand Down
2 changes: 1 addition & 1 deletion pysnmp_apps/__init__.py → snmpclitools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# http://www.python.org/dev/peps/pep-0396/
__version__ = '0.5.3'
__version__ = '0.6.1'
File renamed without changes.
6 changes: 3 additions & 3 deletions pysnmp_apps/cli/base.py → snmpclitools/cli/base.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
import sys
from pysnmp_apps.cli import spark
from snmpclitools.cli import spark

# AST

Expand Down
8 changes: 4 additions & 4 deletions pysnmp_apps/cli/main.py → snmpclitools/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
import sys
from pysnmp.smi import view
from pysnmp_apps.cli import base
from snmpclitools.cli import base
from pysnmp import error
from pysnmp_apps import __version__ as pysnmpAppsVersion
from snmpclitools import __version__ as pysnmpAppsVersion

try:
from pysnmp import __version__ as pysnmpVersion
Expand Down
6 changes: 3 additions & 3 deletions pysnmp_apps/cli/mibview.py → snmpclitools/cli/mibview.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
# C/L interface to MIB variables. Mimics Net-SNMP CLI.
#
import os
from pyasn1.type import univ
from pyasn1.type import namedval
from pysnmp_apps.cli import base
from snmpclitools.cli import base
from pysnmp.proto import rfc1902
from pysnmp.smi import builder, compiler
from pysnmp import error
Expand Down
6 changes: 3 additions & 3 deletions pysnmp_apps/cli/msgmod.py → snmpclitools/cli/msgmod.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# This file is part of pysnmp-apps software.
# This file is part of snmpclitools software.
#
# Copyright (c) 2005-2018, Ilya Etingof <[email protected]>
# License: http://snmplabs.com/pysnmp/license.html
# License: http://snmplabs.com/snmpclitools/license.html
#
from pysnmp_apps.cli import base
from snmpclitools.cli import base
from pysnmp import error


Expand Down
Loading

0 comments on commit b929758

Please sign in to comment.