Skip to main content

带有千眼代理的 Cisco Catalyst 9000

项目描述

cat9kthousandeyesctl

在 Cisco Catalyst 9000 上部署 Cisco Thousand Eyes 代理

cat9kthousandeyesctl deploy -c config.yaml  
Deploying Thousand Eyes Agents
100.118.1.71:   Thousand eyes agent deployed  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:02:15
100.118.1.69:   Thousand eyes agent deployed  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:02:13
100.118.1.81:   Thousand eyes agent deployed  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:02:14
cat9kthousandeyesctl status -c config.yaml            
Collecting status of Thousand Eyes Agents
100.118.1.71:   Status completed  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:03
100.118.1.69:   Status completed  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:03
100.118.1.81:   Status completed  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:03

                       Status Thousand Eyes Agents                       
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Host         ┃ Hardware   ┃ Subscription  ┃ Version  ┃ Iox  ┃ Apps                          ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 100.118.1.71 │ C9300-24UX │ dna-advantage │ 17.03.03 │ True │ thousandeyes_enterprise_agent │
│ 100.118.1.69 │ C9300-24UX │ dna-advantage │ 17.03.03 │ True │ thousandeyes_enterprise_agent │
│ 100.118.1.81 │ C9300-24UX │ dna-advantage │ 17.03.03 │ True │ thousandeyes_enterprise_agent │
└──────────────┴────────────┴───────────────┴──────────┴──────┴───────────────────────────────┘

先决条件

  • 网络连接
    • 互联网
    • 域名系统
    • DHCP
  • 思科千眼帐户
    • 令牌
  • 思科 Catalyst 9000
    • C9300
    • C9400
  • 思科 IOS-XE 软件
    • 17.3.3+
  • netconf-yang启用
  • 蟒蛇 3
    • 版本:3.7+

安装

Python 包索引 (PyPI)

pip install cat9kthousandeyesctl

cat9kthousandeyesctl --help

配置

下载config.yaml示例配置

部署

cat9kthousandeyesctl deploy --config config.yaml

地位

cat9kthousandeyesctl status --config config.yaml

取消部署(删除)

cat9kthousandeyesctl undeploy --config config.yaml

特征

包括对项目特性/功能的简要总结。

  • 部署
  • 地位
  • 取消部署
  • YAML 配置
    • VLAN
    • 代理下载地址
  • 交互模式(提示)

使用的技术和框架

思科产品和服务:

  • 思科 Catalyst 9000
  • 思科千眼

工具和框架:

  • Python
    • 点击
    • 客户端
    • 富有的
  • 码头工人

用法

Usage: cat9kthousandeyesctl [OPTIONS] COMMAND [ARGS]...

  Manage Thousand Eyes Agent on Catalyst 9000

Options:
  --version  Show the version and exit.
  --debug    Enable logging
  --help     Show this message and exit.

Commands:
  deploy       Deploy Thousand Eyes Agent
  interactive  Interactive TTY mode
  status       Status of Application Hosting on the devices
  undeploy     Remove Thousand Eyes Agent

配置

# Netconf Settings
username: admin
password: password
port: 830
timeout: 600

# Thousand Eyes Agent Settings
download_url: https://downloads.thousandeyes.com/enterprise-agent/thousandeyes-enterprise-agent-3.0.cat9k.tar
appid: thousandeyes_enterprise_agent
vlan: 1
token: thousand_eyes_token

# Devices to manage
hosts:
  192.168.1.1:
  192.168.1.2:
    vlan: 100 # Override global vlan
  10.0.0.1:
    vlan: 200
  10.0.0.2:
    vlan: 200

作者和维护者

执照

此项目根据Cisco 示例代码许可条款授予您许可。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

cat9kthousandeyesctl-0.0.2.tar.gz (11.8 kB 查看哈希

已上传 source

内置分布

cat9kthousandeyesctl-0.0.2-py3-none-any.whl (16.8 kB 查看哈希

已上传 py3