python3 ssh module for Cisco ASA
Project description
python3/python2 SSH module for ssh session management for multivendor network devices (Juniper, Cisco IOS, Cisco ASA, Arista). This module is entirely based on Netmiko
sshASA 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 sshASA 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 FIREWALL01 Username: olivierif Password: Enable password: Session established with Hostname:FIREWALL01 IP:10.10.10.93 Cisco Adaptive Security Appliance Software Version 9.1(7)23 Device Manager Version 7.5(2)153 [...]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sshASA-2.0.tar.gz
(2.2 kB
view details)
File details
Details for the file sshASA-2.0.tar.gz
.
File metadata
- Download URL: sshASA-2.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e682d8d5eeb1a6f1e8639a263c8069e44852cbfd3fa2e26f18682eaab6b9cdac |
|
MD5 | 9dc11e4cd40f28a67b9d8b6861d51675 |
|
BLAKE2b-256 | a777ba72836ab4f2b6f31005108b0f95e43ef17efefeb7550de63f34419289ca |