Python – Kirk Byers Course Week 4 Part 2
This post will describe the exercises and solutions for week two of Kirk Byers Python for Network Engineers.
Our next task is to parse data from show version from a device.
II. Parse the below 'show version' data and obtain the following items (vendor, model, os_version, uptime, and serial_number). Try to make your string parsing generic i.e. it would work for other Cisco IOS devices. The following are reasonable strings to look for: 'Cisco IOS Software' for vendor and os_version 'bytes of memory' for model 'Processor board ID' for serial_number ' uptime is ' for uptime Store these variables (vendor, model, os_version, uptime, and serial_number) in a dictionary. Print the dictionary to standard output when done. Note, "Cisco IOS Software...Version 15.0(1)M4...(fc1)" is one line. >>>>> show version data <<<<< Cisco IOS Software, C880 Software (C880DATA-UNIVERSALK9-M), Version 15.0(1)M4, RELEASE SOFTWARE (fc1) Technical Support: Copyright (c) 1986-2010 by Cisco Systems, Inc. Compiled Fri 29-Oct-10 00:02 by prod_rel_team ROM: System Bootstrap, Version 12.4(22r)YB5, RELEASE SOFTWARE (fc1) twb-sf-881 uptime is 7 weeks, 5 days, 19 hours, 23 minutes System returned to ROM by reload at 15:33:36 PST Fri Feb 28 2014 System restarted at 15:34:09 PST Fri Feb Continue reading
A vendor’s SDN solution ecosystem strategy and partnerships can make the difference between long term SDN success, including lifecycle ROI protection, and failure.
Pilot users in Denver will soon be able to take Verizon's 5G network for a spin.