application_vnd.jupyter.stderr_output_1.png
from netmiko import ConnectHandler

import os

from netmiko import ConnectHandler
import os
os.environ['NET_TEXTFSM'] = '/opt/conda/lib/python3.7/site-packages/ntc_templates/templates'
linux = {'device_type': 'linux', 'host': '3.89.45.60', 'username': 'kevin', 'password': 'S!mpl312'}
c = ConnectHandler(**linux)
r = c.send_command('arp -a', use_textfsm=True)
print(r)
print(r[0]['ip_address'])
for item in r:
    print(item)
    print(item['ip_address'])
"\nEXPECTED OUTPUT:\n[{'rev_dns': '_gateway', 'ip_address': '172.30.1.1', 'mac_address': '0e:18:8d:7f:b8:65', 'hw_type': 'ether', 'interface': 'eth0'}]\n"
'\nChassis type: ASR1004 \nSlot: R0, ASR1000-RP1         \n  Running state               : ok, active\n  Internal state              : online\n  Internal operational state  : ok\n  Physical insert detect time : 00:00:45 (2w5d ago)\n  Software declared up time   : 00:00:45 (2w5d ago)\n  CPLD version                : 07062111\n  Firmware version            : 12.2(33r)XNC\nSlot: F0, ASR1000-ESP10       \n  Running state               : ok, active\n  Internal state              : online\n  Internal operational state  : ok\n  Physical insert detect time : 00:00:45 (2w5d ago)\n  Software declared up time   : 00:03:15 (2w5d ago)\n  Hardware ready signal time  : 00:00:46 (2w5d ago)\n  Packet ready signal time    : 00:04:00 (2w5d ago)\n  CPLD version                : 07091401\n  Firmware version            : 12.2(33r)XNC\nSlot: P0, ASR1004-PWR-AC\n  State                       : ok\n  Physical insert detect time : 00:03:08 (2w5d ago)\nSlot: P1, ASR1004-PWR-AC\n  State                       : ok\n  Physical insert d\n'