跳转到主要内容

Cisco NSO(之前为tail-f)的Python客户端库

项目描述

Build PyPI1 PyPI2 PyPI3 Documentation Status Coverage

概述

Cisco NSO(之前为tail-f)的Python客户端库

安装

使用pip安装

$ pip install pynso

或克隆仓库

$ git clone https://github.com/DimensionDataCBUSydney/pynso.git
$ python setup.py install

用法

from pprint import pprint

from pynso.client import NSOClient
from pynso.datastores import DatastoreType

# Setup a client
client = NSOClient('10.123.92.12', 'admin', 'admin')

# Get information about the API
print('Getting API version number')
pprint(client.info()['version'])

# Get the information about the running datastore
print('Getting the contents of the running datastore')
pprint(client.get_datastore(DatastoreType.RUNNING))

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面