Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67085

Re: SSH/Telnet program to Router/switch

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rodrick.brown@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'python.': 0.02; 'that?': 0.05; 'automate': 0.07; 'here?': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; 'ssh': 0.16; 'subject:program': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'module': 0.19; 'feb': 0.22; '>>>': 0.22; 'programming': 0.22; 'shell': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'script': 0.25; 'logging': 0.26; 'subject:/': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'url:mailman': 0.30; 'linux.': 0.31; 'received:192.168.1.3': 0.31; 'another': 0.32; 'url:python': 0.33; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'opposed': 0.36; 'url:listinfo': 0.36; 'method': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'list': 0.37; 'message-id:@gmail.com': 0.38; 'ahead': 0.38; 'expect': 0.39; 'does': 0.39; 'mailing': 0.39; 'url:mail': 0.40; 'even': 0.60; 'commands': 0.60; 'devices': 0.61; 'equipment': 0.61; 'new': 0.61; 'header:Message-Id:1': 0.63; 'iphone': 0.65; 'to:addr:gmail.com': 0.65; 'benefit': 0.68; '20,': 0.68; '8bit%:92': 0.71; '8bit%:100': 0.72; '2014,': 0.84; 'br,': 0.84; 'commands.': 0.84; 'dispatching': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BiK9fYAdef4dAsH4viPMWTGdWfvUQiXIfpZ2f/7oKq0=; b=swA6Oc6UVVP+grKEb5/GOC1DMOcwjEV3f2MYNC/yZagJnCj8IfwimK3kn4ZzY4f0nI zgaNxi+orTdheQ0gTRpt5d1/TPx/PEitchYNCz/JYNnB2owWLOHhl22ddNYJSsXCyNHS Y8pD6p3sjz9mCn45/Op37WaSS1u4GD+P059Waz+h9SFUptFdaWGq0eJzc5Phxm9WBdTO SnRmXGNmjj9eom9G6QQD5Fo1TC3HnacOEekKRIP1WfdQAD4lE0ehb+zDyCTKsPgs/fcW /ct/RGNAxX/JwETD5t8/+6tdsk/iAlNuwp/n1eEJLYK8Atgq4W+Bjn+QKhbl9lJMdHg+ 6rTw==
X-Received by 10.224.168.203 with SMTP id v11mr14990330qay.57.1393332827480; Tue, 25 Feb 2014 04:53:47 -0800 (PST)
Content-Type text/plain; charset=utf-8
Mime-Version 1.0 (1.0)
Subject Re: SSH/Telnet program to Router/switch
From Rodrick Brown <rodrick.brown@gmail.com>
X-Mailer iPhone Mail (11B554a)
In-Reply-To <ff9a792c-c430-4d3a-be00-1fb15b3394ea@googlegroups.com>
Date Tue, 25 Feb 2014 07:53:46 -0500
Content-Transfer-Encoding quoted-printable
References <d343f9af-54f2-4709-9a99-1ad5708c1f34@googlegroups.com> <mailman.7142.1392800008.18130.python-list@python.org> <ff9a792c-c430-4d3a-be00-1fb15b3394ea@googlegroups.com>
To Ferrous Cranus <nikos.gr33k@gmail.com>
X-Mailman-Approved-At Wed, 26 Feb 2014 08:43:13 +0100
Cc "python-list@python.org" <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.7385.1393400594.18130.python-list@python.org> (permalink)
Lines 58
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1393400594 news.xs4all.nl 2882 [2001:888:2000:d::a6]:48447
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:67085

Show key headers only | View raw



Sent from my iPhone

> On Feb 20, 2014, at 5:59 AM, Ferrous Cranus <nikos.gr33k@gmail.com> wrote:
> 
> Τη Τετάρτη, 19 Φεβρουαρίου 2014 10:45:53 π.μ. UTC+2, ο χρήστης Wojciech Łysiak έγραψε:
>>> On 19.02.2014 09:14, Sujith S wrote:
>>> 
>>> Hi,
>> 
>> 
>>> I am new to programming and python. I am looking for a python script to do ssh/telnet to a network equipment ? I know tcl/perl does this using expect/send.
>> 
>> 
>>> Do we have expect available in python as well or need to use some other method ?
>> 
>> 
>> 
>> Hello,
>> 
>> If you are looking for a way to connect to your netdevices and then
>> 
>> execute some shell commands (with output) via ssh then google for
>> 
>> paramiko module for python.
>> 
>> 
>> 
>> It works on windows and linux.
>> 
>> 
>> 
>> -- 
>> 
>> BR,
>> 
>> Wojtek
> 
> Hello,
> 
> What will benefit the OP to go ahead and use paramiko opposed to just use "Putty" or another perhaps even Chrome based ssh client?
> 
> Is there an advantage to that?
This is a Python mailing list so obviously the OP wants to use python to automate logging into his devices and dispatching some commands. Why else would they ask here? 

> -- 
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

SSH/Telnet program to Router/switch Sujith S <sujiths80@gmail.com> - 2014-02-19 00:14 -0800
  Re: SSH/Telnet program to Router/switch Chris Angelico <rosuav@gmail.com> - 2014-02-19 19:45 +1100
  Re: SSH/Telnet program to Router/switch Wojciech Łysiak <wojciech.lysiak@hotmail.com> - 2014-02-19 09:45 +0100
    Re: SSH/Telnet program to Router/switch Ferrous Cranus <nikos.gr33k@gmail.com> - 2014-02-20 02:59 -0800
      Re: SSH/Telnet program to Router/switch Rodrick Brown <rodrick.brown@gmail.com> - 2014-02-25 07:53 -0500
  Re: SSH/Telnet program to Router/switch Johannes Schneider <johannes.schneider@galileo-press.de> - 2014-02-19 11:36 +0100
  Re: SSH/Telnet program to Router/switch Roy Smith <roy@panix.com> - 2014-02-19 08:35 -0500
    Re: SSH/Telnet program to Router/switch Chris Angelico <rosuav@gmail.com> - 2014-02-20 00:58 +1100
    Re: SSH/Telnet program to Router/switch Roy Smith <roy@panix.com> - 2014-02-19 09:13 -0500
  Re: SSH/Telnet program to Router/switch William Ray Wing <wrw@mac.com> - 2014-02-19 09:27 -0500

csiph-web