You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-7Lines changed: 23 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,29 @@
1
1
# pylogin
2
-
A python utility similar to RANCID's clogin.
2
+
A Python utility similar to RANCID's clogin.
3
3
4
4
I recently ran into an issue where I needed to push changes to a lot of devices that didn't have a prompt any
5
-
existing utility would recognize. After finding the paramiko-expect library by fgimian, I decided to make a utility similar
6
-
to clogin, but that would easily allow the user to specify different prompts to match. It does require a pythyon version
7
-
of at least 2.7.
5
+
existing utility would recognize. After finding the [paramiko-expect](https://github.com/fgimian/paramiko-expect) library by fgimian, I decided to make a utility similar to clogin, but that would easily allow the user to specify different prompts to match. It does require a python version of at least 2.7 due to the argparse requirement.
8
6
7
+
### Install
8
+
You will first need to verify that you have python version 2.7 installed. RHEL 6 for example still uses Python 2.6 and needs to remain that way. If you don't have version 2.7 you will need to do a local install.
9
+
```
10
+
[skoog@bounty pylogin]$ python -V
11
+
Python 2.6.6
12
+
[skoog@bounty pylogin]$ python2.7 -V
13
+
Python 2.7.10
14
+
[skoog@bounty pylogin]$ which python
15
+
/usr/bin/python
16
+
[skoog@bounty pylogin]$ which python2.7
17
+
/usr/local/bin/python2.7
18
+
```
19
+
Next you need to install the libary dependency for the install of python being used and dowload the script.
0 commit comments