Advertisement
Guest User

Untitled

a guest
Nov 12th, 2023
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #
  2. from netmiko import ConnectHandler
  3.  
  4. device = {
  5. "device_type": "cisco_xe",
  6. "ip": "x.x.x.x",
  7. "username": "USERNAME",
  8. "password": "PASSWORD",
  9. }
  10.  
  11. net_connect = ConnectHandler(**device)
  12.  
  13. commands = ["dspfarm profile 4 mtp", "shutdown", "yes\n", "no codec g711ulaw", "no codec pass-through", "codec g729r8", "codec pass-through", "no shutdown"]
  14.  
  15. output = net_connect.send_config_set(
  16. commands,
  17. cmd_verify=False
  18. )
  19.  
  20. print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement