Hi,
Is it possible to export a device list from SSH including the hostname and its IP address?
I'm planning to use netmiko to extract a list of device from certain type + status and use the filtered list to apply commands via python on that specific list.
example:
intended result:
This way I could use the list (with two columns separated by tabulation) in a 'for' statement in python
Is it possible to export a device list from SSH including the hostname and its IP address?
I'm planning to use netmiko to extract a list of device from certain type + status and use the filtered list to apply commands via python on that specific list.
example:
Code:
/dude device export-list where device-type=Cisco status=up
Code:
NameAddressesSW2-EDD-NNN-AAA10.1.1.55SW2-EDD-NNN-BBB10.1.1.252SW2-EDD-NNN-CCC10.1.1.249SW2-EDD-NNN-DDD10.1.1.72SW2-EDD-NNN-EEE10.1.1.163SW2-EDD-NNN-FFF10.1.1.170SW2-EDD-NNN-GGG10.1.1.248SW2-COR-NNN-HHH10.1.1.46
Statistics: Posted by tomasi — Mon Mar 25, 2024 5:31 pm