After making a connection to a cisco device using python, and executing a command I get a output as shown below,
Basically I want to get only one value, that the value for Services
which is shown as 1
below and store it in a variable.
#show ethernet cfm domain brief
Domain Name Index Level Services Archive(min)
EVC 2 4 1 100
I'm not sure how to parse this, I tried converting to a list, but the list became very huge something like this and I dont know if the same will work on another cisco ios-xe device.
['Domain', 'Name', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'Index', 'Level', 'Services', 'Archive(min)\r\nEVC', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '2', '', '', '', '', '4', '', '', '', '', '', '', '', '1', '', '', '', '', '100']
Is there any other reliable way to get the value of services
which is 1
?