Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68683
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <sadzak@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; 'api.': 0.05; 'subject:Python': 0.06; '21,': 0.07; 'subject:help': 0.08; 'kumar': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'operational': 0.16; 'switch.': 0.16; 'switches': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'module': 0.19; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'cheers,': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'switch': 0.26; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'use?': 0.31; 'thanks!': 0.32; 'run': 0.32; 'url:python': 0.33; 'running': 0.33; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'bought': 0.36; 'executing': 0.36; 'manufacturer': 0.36; 'url:listinfo': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'should': 0.36; 'somebody': 0.38; 'skip:- 60': 0.39; 'url:mail': 0.40; 'commands': 0.60; 'connecting': 0.64; 'subject:Need': 0.64; 'to:addr:gmail.com': 0.65; 'mar': 0.68; 'commands.': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=x2sKONaVCim/SJB0rI5iOMah/5Olu59PmbmtnVYC0/c=; b=hFxIBTk1W5oFoto8KBtL753EwRZOMzWzFdmn4JYKdWxGqF5NrE/XeyCbkR9cI8UIFF mtb2GUpKnjLqEOFlcEkZhWvpWdtzU+GJqF5O474P+rSR1CGFsh7TOoXUUoBlbMohQHiQ 0kKXzS56nzY5CJyhoGtAmWNBPZ+B0z9GaOtsHwZPzk2tZJqbvMzEp22cABY4iZrb4Y7w GH7xc+gV4GrLCR4C6zSg/S4XIDyYgJNHwTlphtkkQC0uvYMWgyvAfTXQDiCHtPrMrXOs 9hGS6SHsGmMl4RoZaoPqnvpSP/FbNJUzY8t0xwbOODPa4EbmpnBgwblvGRLKwZiBflhi +nUQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.14.206.137 with SMTP id l9mr47685861eeo.40.1395397357844; Fri, 21 Mar 2014 03:22:37 -0700 (PDT) |
| In-Reply-To | <277bdaaa-b05e-4fbe-a2e2-4c142a207ea6@googlegroups.com> |
| References | <277bdaaa-b05e-4fbe-a2e2-4c142a207ea6@googlegroups.com> |
| Date | Fri, 21 Mar 2014 11:22:37 +0100 |
| Subject | Re: Need help in Python automation |
| From | Adnan Sadzak <sadzak@gmail.com> |
| To | Anil Kumar A <401anil@gmail.com> |
| Content-Type | multipart/alternative; boundary=047d7b3a7fc6d5bf0004f51b43ca |
| Cc | python-list <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8351.1395397360.18130.python-list@python.org> (permalink) |
| Lines | 83 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1395397360 news.xs4all.nl 2977 [2001:888:2000:d::a6]:35116 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:68683 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Hi, there should be manufacturer documentation or API. What switch do You use? Any other info? Cheers, Adnan On Fri, Mar 21, 2014 at 9:14 AM, Anil Kumar A <401anil@gmail.com> wrote: > ------------------------------------------------------------- > Hi All, > > I work for an ISP. Currently we bought few switches and routers. Python is > available in that switches. So I would like to write some scipts which I > can run inside switch. > > I tried module 'os, system', but It is not executing the commands in > operational and configurational mode. Those modes' prompts are '*>' and > '*#'. > > Can somebody suggest me, if there is any module which I can use to execute > commands inside a switch. > > I don't want to use 'socket' module as I am not connecting the box and > executing commands. I am running the script inside switch. > > Please give some clue to start my automation. > > Thanks! > > Anil Kumar A > > ------------------------------------------------------------- > -- > https://mail.python.org/mailman/listinfo/python-list >
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Need help in Python automation Anil Kumar A <401anil@gmail.com> - 2014-03-21 01:14 -0700 Re: Need help in Python automation Adnan Sadzak <sadzak@gmail.com> - 2014-03-21 11:22 +0100
csiph-web