Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Johannes Findeisen Newsgroups: comp.lang.python Subject: Re: snmpset Date: Fri, 5 Feb 2016 18:20:27 +0100 Lines: 40 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de zQqDDGHnZ5hhnT4Sjl3cWAFQ4skRoU7gFUWLxonZkEZA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'url:sourceforge': 0.03; '-0500': 0.07; 'api': 0.09; 'behavior,': 0.09; 'subclass': 0.09; 'url:)': 0.14; '2016': 0.16; 'all...': 0.16; 'pythonic': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'python?': 0.18; 'am,': 0.23; 'seems': 0.23; 'feb': 0.23; 'header :In-Reply-To:1': 0.24; 'example': 0.26; 'equivalent': 0.27; 'fri,': 0.27; 'too.': 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'url:listinfo': 0.34; 'skip:. 20': 0.35; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset :us-ascii': 0.37; 'test': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'received:network': 0.61; 'success': 0.62; 'effective.': 0.66; 'received:195.42': 0.84; 'homepage': 0.91; 'joel': 0.91; 'ware': 0.91 In-Reply-To: X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; x86_64-unknown-linux-gnu) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102536 On Fri, 5 Feb 2016 12:12:58 -0500 Joel Goldstick wrote: > On Fri, Feb 5, 2016 at 11:10 AM, Zachary Ware > wrote: > > > On Fri, Feb 5, 2016 at 9:16 AM, Matt wrote: > > > How do I do the equivalent of this in Python? > > > > > > snmpset -v 2c -c $community $ip .1.3.1.1.4.1.1.1.1.1.1.1.0 s test > > > > > > and > > > > > > snmpset -v 2c -c $community $ip .1.3.1.1.4.1.1.1.1.1.1.1.0 i 123 > > > > > > and > > > > > > snmpbulkget -v2c -c $community -m ALL $ip .1.3.1.1.4.1.1.1.1.1.1.1.1 > > > > > > and > > > > > > snmpget -v2c -c $community -m ALL $ip .1.3.1.1.4.1.1.1.1.1.1.1.2 > > > > I have had success with pysnmp (http://pysnmp.sourceforge.net/). It > > is far from a shining example of a Pythonic API and I don't envy you > > if you should need to subclass something to change its behavior, but > > it is effective. > > > > -- > > Zach > > -- > > https://mail.python.org/mailman/listinfo/python-list > > > > That page 404s for me SourceForge seems to have problems at all... The Homepage is down too. Johannes