Skip to Main Content
Mastering Python Networking - Second Edition
book

Mastering Python Networking - Second Edition

by Eric Chou
August 2018
Intermediate to advanced content levelIntermediate to advanced
466 pages
10h 23m
English
Packt Publishing
Content preview from Mastering Python Networking - Second Edition

Screen scraping versus API structured output

Imagine a common scenario where we need to log into the network device and make sure all the interfaces on the devices are in an up/up state (both the status and the protocol are showing as up). For the human network engineers getting into a Cisco NX-OS device, it is simple enough to issue the show IP interface brief command in the Terminal to easily tell from the output which interface is up:

    nx-osv-2# show ip int brief    IP Interface Status for VRF "default"(1)    Interface IP Address Interface Status    Lo0 192.168.0.2 protocol-up/link-up/admin-up    Eth2/1 10.0.0.6 protocol-up/link-up/admin-up    nx-osv-2#

The line break, white spaces, and the first line of the column title are easily distinguished from ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Python Networking

Mastering Python Networking

Eric Chou
Learning Python Networking - Second Edition

Learning Python Networking - Second Edition

José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington

Publisher Resources

ISBN: 9781789135992Supplemental Content