Name | vicmiko JSON |
Version |
0.0.16
JSON |
| download |
home_page | https://github.com/Vicnz03/vicmiko |
Summary | Python library to interact with Junos devices. Based on jnpr-pyez and jsnapy |
upload_time | 2022-01-09 10:01:36 |
maintainer | |
docs_url | None |
author | Vic Chen |
requires_python | |
license | MIT |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# vicmiko
Python library to interact with Junos devices. Based on jnpr-pyez and jsnapy.
## Install
```
pip install vicmiko
```
## Feature supported
1. junos_get: get from junos box, support pipe
2. junos_compare: show diffs of config
3. junos_commit: commit config to box
4. jsnapy_pre
5. jsnapy_post
6. jsnapy_check
7. junos_rpc
8. junos_view
9. junos_ping
10. junos_traceroute
11. junos_commit_file
12. junos_compare_file
13. junos_install
## Example
```
from vicmiko.junos import JunOSDriver
from vicmiko import junos
jnpr = JunOSDriver(hostname='192.168.0.1',username="admin",password="admin")
jnpr.open()
jnpr.junos_get(['show version'])
jnpr.junos_rpc('get-software-information')
jnpr.junos_rpc('get-software-information',to_str=0)
jnpr.junos_compare(['set interfaces ge-0/0/0 description "to SRX300 port 01"'])
jnpr.load_junos_view('view.yml')
mem = junos.junos_routing_engine_table(jnpr.device)
jnpr.jsnapy_pre(['test_memory.yml'])
jnpr.junos_commit(mode='exclusive', commands=['set interfaces ge-0/0/0 description "to SRX300 port 00"'], commit_comments='vicmiko test')
jnpr.junos_ping(host= '111.69.2.29')
jnpr.junos_traceroute(host= '111.69.2.29')
jnpr.junos_scp(mode='put',local = 'test.txt', remote = '/var/tmp/')
jnpr.junos_scp(mode='get',local = '.', remote = '/var/tmp/test.txt')
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Vicnz03/vicmiko",
"name": "vicmiko",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Vic Chen",
"author_email": "vicnz03@hotmail.com",
"download_url": "https://files.pythonhosted.org/packages/4e/e1/e4b31bb0cb66d9ab157075f02f2359836be2f48e39ca130302f7ba7ac942/vicmiko-0.0.16.tar.gz",
"platform": "",
"description": "# vicmiko\nPython library to interact with Junos devices. Based on jnpr-pyez and jsnapy.\n\n## Install\n```\npip install vicmiko\n```\n\n## Feature supported\n1. junos_get: get from junos box, support pipe\n2. junos_compare: show diffs of config\n3. junos_commit: commit config to box\n4. jsnapy_pre\n5. jsnapy_post\n6. jsnapy_check\n7. junos_rpc\n8. junos_view\n9. junos_ping\n10. junos_traceroute\n11. junos_commit_file\n12. junos_compare_file\n13. junos_install\n\n## Example\n```\nfrom vicmiko.junos import JunOSDriver\nfrom vicmiko import junos\n\njnpr = JunOSDriver(hostname='192.168.0.1',username=\"admin\",password=\"admin\")\njnpr.open()\n\njnpr.junos_get(['show version'])\njnpr.junos_rpc('get-software-information')\njnpr.junos_rpc('get-software-information',to_str=0)\njnpr.junos_compare(['set interfaces ge-0/0/0 description \"to SRX300 port 01\"'])\njnpr.load_junos_view('view.yml')\nmem = junos.junos_routing_engine_table(jnpr.device) \njnpr.jsnapy_pre(['test_memory.yml'])\njnpr.junos_commit(mode='exclusive', commands=['set interfaces ge-0/0/0 description \"to SRX300 port 00\"'], commit_comments='vicmiko test')\njnpr.junos_ping(host= '111.69.2.29')\njnpr.junos_traceroute(host= '111.69.2.29')\njnpr.junos_scp(mode='put',local = 'test.txt', remote = '/var/tmp/')\njnpr.junos_scp(mode='get',local = '.', remote = '/var/tmp/test.txt')\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python library to interact with Junos devices. Based on jnpr-pyez and jsnapy",
"version": "0.0.16",
"project_urls": {
"Homepage": "https://github.com/Vicnz03/vicmiko"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4ee1e4b31bb0cb66d9ab157075f02f2359836be2f48e39ca130302f7ba7ac942",
"md5": "3f8fa21e7ac99f23c96336c2dcff1a8d",
"sha256": "ffa1071f06dc3a26171bc8e06ec62300cf57959d6e187299b0ab4994c0359166"
},
"downloads": -1,
"filename": "vicmiko-0.0.16.tar.gz",
"has_sig": false,
"md5_digest": "3f8fa21e7ac99f23c96336c2dcff1a8d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6419,
"upload_time": "2022-01-09T10:01:36",
"upload_time_iso_8601": "2022-01-09T10:01:36.459494Z",
"url": "https://files.pythonhosted.org/packages/4e/e1/e4b31bb0cb66d9ab157075f02f2359836be2f48e39ca130302f7ba7ac942/vicmiko-0.0.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-01-09 10:01:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Vicnz03",
"github_project": "vicmiko",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "vicmiko"
}