Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- from netmiko import ConnectHandler
- device = {
- "device_type": "cisco_xe",
- "ip": "x.x.x.x",
- "username": "USERNAME",
- "password": "PASSWORD",
- }
- net_connect = ConnectHandler(**device)
- commands = ["dspfarm profile 4 mtp", "shutdown", "yes\n", "no codec g711ulaw", "no codec pass-through", "codec g729r8", "codec pass-through", "no shutdown"]
- output = net_connect.send_config_set(
- commands,
- cmd_verify=False
- )
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement