June 2017
Intermediate to advanced
446 pages
10h 10m
English
Let's take a look at a network device example. We can take advantage of the fact that both IOSv and Arista EOS provide the output in JSON format in the show commands. For example, we can check the status of the interface:
arista1#sh interfaces ethernet 1/3 | json { "interfaces": { "Ethernet1/3": { "interfaceStatistics": { <skip> "outPktsRate": 0.0 }, "name": "Ethernet1/3", "interfaceStatus": "disabled", "autoNegotiate": "off", <skip> } arista1#
If we have an operation that we want to preform and it depends on Ethernet1/3 being disabled in order to have no user impact, such as when users are actively connected to Ethernet1/3. We can use the following tasks configuration in chapter5_3.yml, which is provided in the ...
Read now
Unlock full access