Python Forum
Connect to device without paramiko/netmiko modules
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect to device without paramiko/netmiko modules
#1
Hi All,

I am new to networking python programming. I am currently working with a Telcom company.

We are working with multiple customers on a different domains.
Can anyone help me provide an example python config on how to connect to a network device with the Paramiko/netmiko/Pexpect modules. As the built in python in our CMDS does not have the mentioned modules..

Can anyone help me and show me how to do it?
Reply
#2
use pip to install modules. (All from command line)
first you must have a minimum of python 3.3 installed, also packages:
pyserial: pip install pyserial
textfsm: pip install textfsm
then:
from command line: pip install paramiko
netmiko: pip install netmiko

some of these may already be installed, to find out, from command line, type:
pip list
and see if they are listed.
Reply
#3
(Jun-04-2020, 04:35 PM)Larz60+ Wrote: use pip to install modules. (All from command line)
first you must have a minimum of python 3.3 installed, also packages:
pyserial: pip install pyserial
textfsm: pip install textfsm
then:
from command line: pip install paramiko
netmiko: pip install netmiko

some of these may already be installed, to find out, from command line, type:
pip list
and see if they are listed.

Hi Larz60+

The modules are already installed in my machine. my problem is the module is not install in our company CMDS to where we perform the telnet/ssh to the device.
Reply
#4
call your admin
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  netmiko: print out specific line matches with 'Cisco IOS Software' in sh ver output sabrina 1 3,359 Nov-28-2022, 10:05 AM
Last Post: carstenlp
  Netmiko Program ssh from the Jumpssh ( host -> Jumphost -> Network Device matya0403 3 6,768 Jul-31-2020, 08:22 AM
Last Post: dtw
  Netmiko timing out after sending command c7borg 0 9,407 Mar-25-2020, 04:53 PM
Last Post: c7borg
  netmiko connecting to arista devices. dan1962 0 4,069 Feb-07-2020, 09:23 PM
Last Post: dan1962
  Copy data from 1 blk device in machine A to another blk device in machine B AbhishekV 2 3,398 Feb-01-2018, 11:40 AM
Last Post: DeaD_EyE
  SSH to a device using paramiko fails MikeHill 0 3,373 Aug-07-2017, 08:12 PM
Last Post: MikeHill

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020