12345678910111213141516171819202122232425 |
- #!/usr/bin/env python
- '''
- This will run an ssh command successfully on an enterasys SSA and so SSH must
- be enabled on the device
- '''
- from __future__ import print_function
- from netmiko import ConnectHandler
- def main():
- '''
- This will run an ssh command successfully on an enterasys SSA and so SSH must
- be enabled on the device
- '''
- enterasyshandle = {
- 'device_type':'enterasys',
- 'ip' : '10.54.116.175',
- 'username':'admin',
- 'password':''}
- net_connect = ConnectHandler(**enterasyshandle)
- output = net_connect.send_command('show config policy')
- print(output)
- if __name__ == "__main__":
- main()
|