{"id":21498001,"url":"https://github.com/pippozq/netadmin-driver","last_synced_at":"2026-05-17T13:10:06.754Z","repository":{"id":144248945,"uuid":"114319934","full_name":"pippozq/netadmin-driver","owner":"pippozq","description":"Execute commands or scripts on juniper,cisco","archived":false,"fork":false,"pushed_at":"2017-12-15T09:07:28.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T22:19:18.889Z","etag":null,"topics":["ansible","cisco","juniper","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pippozq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-15T02:52:25.000Z","updated_at":"2021-07-27T06:43:15.000Z","dependencies_parsed_at":"2023-05-29T06:00:39.946Z","dependency_job_id":null,"html_url":"https://github.com/pippozq/netadmin-driver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippozq%2Fnetadmin-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippozq%2Fnetadmin-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippozq%2Fnetadmin-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pippozq%2Fnetadmin-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pippozq","download_url":"https://codeload.github.com/pippozq/netadmin-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244035733,"owners_count":20387379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","cisco","juniper","python3"],"created_at":"2024-11-23T16:33:33.145Z","updated_at":"2026-05-17T13:10:01.717Z","avatar_url":"https://github.com/pippozq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Netadmin-driver\r\n## What's This?\r\n- A service which send command or script to network device like Juniper or  Cisco ,then  get the results back to you when it's finished\r\n- Proivde HTTP service with [tornado](https://github.com/tornadoweb/tornado)\r\n- Multiple Execute Commands on devices\r\n- It's built for providing driver service to [netadmin](https://github.com/pippozq/netadmin)\r\n## Build  By\r\n\r\nPackage | Page\r\n---|---\r\nPython3.6|https://www.python.org/downloads/release/python-363/\r\nJunos-eznc | https://github.com/Juniper/py-junos-eznc\r\nAnsible | https://github.com/ansible/ansible\r\nTornado |https://github.com/tornadoweb/tornado\r\n\r\n\r\n## Build\r\nProvide Dockerfile, so you can build esaily using\r\n```\r\ndocker build -t \u003cyour docker repository url\u003e/netadmin-driver:\u003cyour version\u003e .\r\n\r\n```\r\n\r\n\r\n\r\n## Web Interface\r\n\r\n### Juniper\r\n#####  Command\r\n\r\n```\r\ndefine a JSON named \"json_data\" like\r\n{\r\n \"hosts\":[\"192.168.1.2\",\"192.168.1.3\".....],\r\n \"port\":22,\r\n \"user\": {\r\n    \"name\":\"ssh name\",\r\n    \"password\":\"ssh password\"\r\n    },\r\n \"command\": \"show version\"\r\n }\r\n```\r\n\r\n```\r\ncurl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d post_data 'http://netadmin-driver-url/juniper/command'\r\n```\r\n#####  Config\r\n\r\n```\r\ndefine a JSON named \"json_data\" like\r\n{\r\n \"hosts\":[\"192.168.1.2\",\"192.168.1.3\".....],\r\n \"port\":22,\r\n \"user\": {\r\n    \"name\":\"ssh name\",\r\n    \"password\":\"ssh password\"\r\n    },\r\n \"file_content\": \"line1\\nline2\\n\"\"\r\n }\r\n```\r\n```\r\ncurl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d post_data 'http://netadmin-driver-url/juniper/config'\r\n```\r\n\r\n\r\n\r\n### Cisco\r\n##### Command\r\n\r\n```\r\ndefine a JSON named \"json_data\" like\r\n{\r\n \"hosts\":[\"192.168.1.2\",\"192.168.1.3\".....],\r\n \"port\":22,\r\n \"user\": {\r\n    \"name\":\"ssh name\",\r\n    \"password\":\"ssh password\"\r\n    },\r\n \"command\": \"show version\"\r\n }\r\n```\r\n\r\n```\r\ncurl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d post_data 'http://netadmin-driver-url/cisco/command'\r\n```\r\n#### Config\r\n\r\n```\r\ndefine a JSON named \"json_data\" like\r\n{\r\n \"hosts\":[\"192.168.1.2\",\"192.168.1.3\".....],\r\n \"port\":22,\r\n \"user\": {\r\n    \"name\":\"ssh name\",\r\n    \"password\":\"ssh password\"\r\n    },\r\n \"file_content\": \"line1\\nline2\\n\",\r\n \"blob_id\":\"Forza_Milan\"\r\n }\r\n```\r\n```\r\ncurl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d post_data 'http://netadmin-driver-url/cisco/config'\r\n```\r\n\"blob_id\" is the gitlab file id,it's used for the temporary file name, so you can use any thing to rename it. I prefer \"Forza_Milan\"\r\n\r\n## License\r\nGNU General Public License v3.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpippozq%2Fnetadmin-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpippozq%2Fnetadmin-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpippozq%2Fnetadmin-driver/lists"}