Some tools of network automated operation for multiple vendors
Project description
Hello, Network-Operation is aimed at providing some tools or modules for network automated operation. If you are interested in it, find bugs or have any requirement, feel free to contact me via zc8131868@gmail.com. You may also find more useful methods in some_methods folder. For more details please check examples.docx for reference.
import getpass
pwd = getpass.getpass("pls input your password::")
a = autonet.autonet(
username="chengzheng",
password = pwd,
device_ios= "cisco_ios",
url="/Users/zhengcheng/Desktop/result.txt",
url_error_ip="/Users/zhengcheng/Desktop/error_ip.txt"
)
b = a.PING_IP(["1.1.1.1", "2.2.2.2)]
b = a.PING_Subnet("1.1.1.0/24")
b = a.get_version("30.31.190.94")
b = a.get_serial_number("30.31.190.94")
a.auto_show("1.1.1.1", ["show ntp status"])
a.auto_config("2.2.2.2", ["hostname test", "interface g0/1", "switchport mode trunk"])
a.auto_config_file("1.1.1.1", "commands.txt")
a.close_logging()
For now, autonet has been tested on cisco_ios, cisco_nxos, rg_os. It's no double other OS can use PING_IP or PING_Subnet which is independent on OS command. Autnonet will support more OS later.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file autonet-0.2.0.tar.gz
.
File metadata
- Download URL: autonet-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5afa8e82527236b9ad333505a79339822a597e2759667ada1e9de6f2e4c8494c |
|
MD5 | 14959bd124ef62cbb8a5f521eeca3e46 |
|
BLAKE2b-256 | a192169440a1be8c06e49e7fceda2724120b65ed350d193df5d905088fd927f5 |