项目作者: robertcsapo

项目描述 :
Cisco Thousand Eyes Agents on Cisco Catalyst 9000
高级语言: Python
项目地址: git://github.com/robertcsapo/cat9kthousandeyesctl.git
创建时间: 2021-04-13T19:07:28Z
项目社区:https://github.com/robertcsapo/cat9kthousandeyesctl

开源协议:Other

下载


cat9kthousandeyesctl

Cisco ThousandEyes is a digital experience monitoring platform to see, understand, and improve digital experiences over any network. ThousandEyes offers global vantage points from which users can run a variety of tests to gain more insights and to monitor the performance of their business-critical applications or the network itself.

Deploy Cisco ThousandEyes agent on Cisco Catalyst 9000 with cat9kthousandeyesctl

  1. cat9kthousandeyesctl deploy -c config.yaml
  2. Deploying Thousand Eyes Agents
  3. 100.118.1.71: Thousand eyes agent deployed ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:02:15
  4. 100.118.1.69: Thousand eyes agent deployed ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:02:13
  5. 100.118.1.81: Thousand eyes agent deployed ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:02:14
  1. cat9kthousandeyesctl status -c config.yaml
  2. Collecting status of Thousand Eyes Agents
  3. 100.118.1.71: Status completed ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:03
  4. 100.118.1.69: Status completed ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:03
  5. 100.118.1.81: Status completed ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:03
  6. Status Thousand Eyes Agents
  7. ┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
  8. Host Hardware Subscription Version Iox Apps
  9. ┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
  10. 100.118.1.71 C9300-24UX dna-advantage 17.03.03 True thousandeyes_enterprise_agent
  11. 100.118.1.69 C9300-24UX dna-advantage 17.03.03 True thousandeyes_enterprise_agent
  12. 100.118.1.81 C9300-24UX dna-advantage 17.03.03 True thousandeyes_enterprise_agent
  13. └──────────────┴────────────┴───────────────┴──────────┴──────┴───────────────────────────────┘

Prerequisites

  • Network connectivity
    • Internet
    • DNS
    • DHCP
  • Cisco ThousandEyes Account (Free trial)
    • Token
  • Cisco Catalyst 9000
    • C9300
    • C9400
  • Cisco IOS-XE Software
    • 17.3.3+
  • netconf-yang enabled
  • Python 3
    • Version: 3.7+

Installation

Python Package Index (PyPI)

pip install cat9kthousandeyesctl

cat9kthousandeyesctl --help

Config

Download config.yaml sample config

  • Edit settings in config.yaml
    • Username
    • Password
    • VLAN
    • ThousandEyes Token
    • Hosts (Catalyst 9300/9400 devices)

Deploy

cat9kthousandeyesctl deploy --config config.yaml

Status

cat9kthousandeyesctl status --config config.yaml

Undeploy (remove)

cat9kthousandeyesctl undeploy --config config.yaml

Features

Include a succinct summary of the features/capabilities of your project.

  • Deploy
  • Status
  • Undeploy
  • YAML Config
    • VLAN
    • Agent Download URL
  • Interactive mode (prompt)

Technologies & Frameworks Used

Cisco Products & Services:

  • Cisco Catalyst 9000
  • Cisco ThousandEyes

Tools & Frameworks:

  • Python
    • click
    • ncclient
    • rich
  • Docker

Usage

  1. Usage: cat9kthousandeyesctl [OPTIONS] COMMAND [ARGS]...
  2. Manage ThousandEyes Agent on Catalyst 9000
  3. Options:
  4. --version Show the version and exit.
  5. --debug Enable logging
  6. --help Show this message and exit.
  7. Commands:
  8. deploy Deploy ThousandEyes Agent
  9. interactive Interactive TTY mode
  10. status Status of Application Hosting on the devices
  11. undeploy Remove ThousandEyes Agent

Config

  1. # Netconf Settings
  2. username: admin
  3. password: password
  4. port: 830
  5. timeout: 600
  6. # Thousand Eyes Agent Settings
  7. download_url: https://downloads.thousandeyes.com/enterprise-agent/thousandeyes-enterprise-agent-3.0.cat9k.tar
  8. appid: thousandeyes_enterprise_agent
  9. vlan: 1
  10. token: thousandeyes_token
  11. # Devices to manage
  12. hosts:
  13. 192.168.1.1:
  14. 192.168.1.2:
  15. vlan: 100 # Override global vlan
  16. 10.0.0.1:
  17. vlan: 200
  18. 10.0.0.2:
  19. vlan: 200

Authors & Maintainers

License

This project is licensed to you under the terms of the Cisco Sample
Code License
.