nokia / pygnmi

Python tools for gNMI
MIT License
28 stars 7 forks source link

failed to run gNMI_Subscribe.py #10

Open pperesbr opened 3 years ago

pperesbr commented 3 years ago

Hi.

Im trying use the python script, but i received this message:

python gNMI_Subscribe.py   --server 10.10.10.10:57400 --username username --password pass /state/port[port-id=1/1/1]/ethernet/statistics/out-utilization 
zsh: no matches found: /state/port[port-id=1/1/1]/ethernet/statistics/out-utilization

or

 python gNMI_Subscribe.py  .py  --server 10.10.10.10:57400 --username username --password pass /                                                             
20/12/17 02:15:56,445 No module named 'google'

My Timos version:

A:SR-GVS1A# show system grpc            

===============================================================================
gRPC Server
===============================================================================
Administrative State      : Enabled
Operational State         : Up

Supported services          Version      Admin State
-------------------------------------------------------------------------------
gNMI                        0.4.0        Enabled
RibApi                      1.0.0        Disabled
===============================================================================
*A:SR-GVS1A# 
*A:SR-GVS1A# 
*A:SR-GVS1A# 
*A:SR-GVS1A# This terminal has been idle for 2.5 minutes
It will be logged out if it remains idle for another 2.5 minutes
*A:SR-GVS1A# show version 
TiMOS-C-16.0.R9 cpm/hops64 Nokia 7750 SR Copyright (c) 2000-2019 Nokia.
All rights reserved. All use subject to applicable license agreements.
Built on Wed Aug 21 12:25:15 PDT 2019 by builder in /builds/c/160B/R9/panos/main
*A:SR-GVS1A# 

Tks,