Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gcmalloc/ciscotator
A cisco configuration library for ssh and serial connection
https://github.com/gcmalloc/ciscotator
Last synced: 5 days ago
JSON representation
A cisco configuration library for ssh and serial connection
- Host: GitHub
- URL: https://github.com/gcmalloc/ciscotator
- Owner: gcmalloc
- Created: 2016-01-28T00:12:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-26T13:20:47.000Z (about 8 years ago)
- Last Synced: 2024-08-01T19:52:48.441Z (3 months ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cisco ssh api
Wrapper around the ssh interface for cisco switches.
Simple usage:sw = Switch(hostname, username, password)
sw.send_command('bluh')## Support for context management
Enable context:
sw = Switch(hostname, username, password)
with sw.enable_context:
sw.send_command('reload')Configuration context:
sw = Switch(hostname, username, password)
with sw.configuration_context:
sw.send_command('errdisable detect cause gbic-invalid')