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


Groups > comp.lang.python > #68680 > unrolled thread

Need help in Python automation

Started byAnil Kumar A <401anil@gmail.com>
First post2014-03-21 01:14 -0700
Last post2014-03-21 11:22 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  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

#68680 — Need help in Python automation

FromAnil Kumar A <401anil@gmail.com>
Date2014-03-21 01:14 -0700
SubjectNeed help in Python automation
Message-ID<277bdaaa-b05e-4fbe-a2e2-4c142a207ea6@googlegroups.com>
-------------------------------------------------------------
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

-------------------------------------------------------------

[toc] | [next] | [standalone]


#68683

FromAdnan Sadzak <sadzak@gmail.com>
Date2014-03-21 11:22 +0100
Message-ID<mailman.8351.1395397360.18130.python-list@python.org>
In reply to#68680

[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
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web