Jump to content

tnp1807

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

tnp1807's Achievements

Apprentice

Apprentice (3/14)

  • Dedicated
  • Conversation Starter
  • Week One Done
  • One Month Later
  • Reacting Well

Recent Badges

80

Reputation

  1. Hi all, i got ccie_restconf.py file which solution for task 3.2 from c4c team. I already verified in lab then it work fine. import requests import json import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) host = '10.3.11.1' port = '443' username = 'netadmin' password = 'CCIEInfr4' url = "[Hidden Content](host, port) headers = { 'Accept': 'application/yang-data+json', 'Content-Type': 'application/yang-data+json' } response = requests.get(url, auth=(username, password),headers=headers,verify=False) jsondata = response.json() print("-" * 100) print("{:<45} {:<30} {:<30}".format("Interface", "Ingress Octets", "Egress Octets")) print("-" * 100) for interface in jsondata['Cisco-IOS-XE-interfaces-oper:interface']: if interface['oper-status'] == "if-oper-state-ready" and interface['interface-type'] == "iana-iftype-ethernet-csmacd": interface_name = interface['name'] in_octets = interface['statistics']['in-octets'] out_octets = interface['statistics']['out-octets'] print("{:<45} {:<30} {:<30}".format(interface_name, in_octets, out_octets)) [Hidden Content]
  2. Hi all, Anyone get CCIE EIv1.1 VM from C4C teams. please share. i got the topo. it look good.
×
×
  • Create New...