Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102528
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: snmpset |
| Date | Fri, 5 Feb 2016 10:10:51 -0600 |
| Lines | 24 |
| Sender | zachary.ware@gmail.com |
| Message-ID | <mailman.13.1454688679.19407.python-list@python.org> (permalink) |
| References | <CAAOM8FWHSa-kRZ9naaVK3L2g21oCcTXWj9iBua2mxwj+ENPqew@mail.gmail.com> |
| Reply-To | python-list@python.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de UehmTF2Kaj+NBBStsx0vwwrE3T5IpPOQu2X8eG7Trq9A== |
| Return-Path | <zachary.ware@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'url:sourceforge': 0.03; 'api': 0.09; 'behavior,': 0.09; 'subclass': 0.09; 'received:209.85.218': 0.10; 'url:)': 0.14; '2016': 0.16; 'pythonic': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'sender:addr:gmail.com': 0.18; 'python?': 0.18; 'cc:2**0': 0.20; 'to:name:python-list@python.org': 0.20; 'am,': 0.23; 'feb': 0.23; 'cc:addr:gmail.com': 0.24; 'header:In-Reply- To:1': 0.24; 'example': 0.26; 'equivalent': 0.27; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:google.com': 0.35; 'skip:. 20': 0.35; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'test': 0.39; 'to:addr:python.org': 0.40; 'success': 0.62; 'effective.': 0.66; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'reply- to:addr:python.org': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=HVp0XHRcjqLirJwIzDak49OQz3nht4DYHqaQVMEkn5I=; b=SXmHMqBghlxBZaPiPVSnbgE5imlUA2vBOBl5Z4ISL5dSJ00Dhz8FN9s+JRRtjegFm1 I8dVE3/4cpOtJCnO1DDhZxyFaBqs3kr+COo7DaHyL9evosDQG137+zw/IxeGQ4XmEWit lfxa+YVCqUB+QJX4twApGi/eLm/x9HikDc07r75RKUatOWRGzzgJatXkKGh133ZBTnzr WMmkvqmVFLvyKh9DpEr9dTbC+PZOX6Qli5FxF7j/WQp842a9F/iybu08Lr/3GKLIOFiC qntsbJhXBKRCWn1Eaub6gHEKuzujLzBrSZ448vvY1YPqVWLYicWwv6Vy62SyraqTXM3I WlJA== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:sender:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=HVp0XHRcjqLirJwIzDak49OQz3nht4DYHqaQVMEkn5I=; b=bXvm6OSaw5za3ZDrQE3epxg+vHAAQO5YKaMuACgMNYCynZ16xMiVpNgw5Osr0SG4xz ZK6UHkF8SDy7iFAP7csDxUm0IZXJ7jpOqwhjQD0zPKlckP8qwo64Mbt7C5DeSxfa75/h zKBJliAUepCFcfca5ifAPB+Gjy3vowCEELygqKtOQotvVFuUwyeLA2ObdP83HkZuR+cV 7H1bLfVWaC+xWvUpRUk4OT/XvzD+yELOVPe93e+eIgc6uuTw1U2sVqSxQrOfrpGqNbdz LP6W1CwvgkspfNVAObkqwxut/8uOk8hM1xFm02dZnwpjxDcXF8+1qOBrzDAjIRR7kwXP TJFQ== |
| X-Gm-Message-State | AG10YOQrOC+AdafrnZ5iitChvMTpYuq6UhDzvPO56JJ25MHQXgdItaCJ1ZAqqQ6PwxucYt4HFOIEBgWuhFmCfA== |
| X-Received | by 10.202.2.8 with SMTP id 8mr8002477oic.60.1454688670767; Fri, 05 Feb 2016 08:11:10 -0800 (PST) |
| In-Reply-To | <CAAOM8FWHSa-kRZ9naaVK3L2g21oCcTXWj9iBua2mxwj+ENPqew@mail.gmail.com> |
| X-Google-Sender-Auth | fJwJiV8oCHMqEm8PBpBzrjvnfTY |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21rc2 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:102528 |
Show key headers only | View raw
On Fri, Feb 5, 2016 at 9:16 AM, Matt <matt.mailinglists@gmail.com> 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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: snmpset Zachary Ware <zachary.ware+pylist@gmail.com> - 2016-02-05 10:10 -0600
csiph-web