python3/python2 SSH module for session management for multivendor network devices (Juniper, Cisco IOS, Cisco ASA, Arista). Based on Netmiko
sshJUNOS provides a ready-to-go ssh module, asking for Username, Password and Enable Password. Error handling and promt information are also provided to facilitate the user in case of wrong username or password.
All netmiko commands are available with this module
Example:
#!/usr/bin/env python3
import sys
from sshJUNOS import sshHost as ssh
def showVersion(host):
out = host.send_command("show version")
print(out)
showVersion(ssh(sys.argv[1]))
How to run it:
federico@federico:~/git/github/python/modules/python3 $ python3 importTest.py srx00.sw11.lab Username: root Password: Session established with Hostname: Hostname: srx00.sw11.lab IP: 192.168.1.1 Hostname: srx00.sw11.lab Model: srx300 Junos: 15.1X49-D120.3 JUNOS Software Release [15.1X49-D120.3] [...]
Metadata
Release files for sshJUNOS 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sshJUNOS-2.0.tar.gz | 2.1 kB | Without provenance | Details for sshJUNOS-2.0.tar.gz |
Release files / sshJUNOS-2.0.tar.gz
| Download URL | sshJUNOS-2.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c81c52dc133a30f22296374fa05a00b0895709d4cf7df5cfcb6635819b63684b
|
|
BLAKE2b-256 checksum How to use checksums |
faf16a598290eb1117d3cd7bacc903da5932de4d80a7baba8ceed5c465cfd17a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sshJUNOS 2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.