cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
657
Views
0
Helpful
1
Replies

gRPC Dial-Out Configured Subscriptions IE3300 / IE3400 --> telegraf

matthias m
Level 1
Level 1

Hello...do try to get the subscription working on my two switches IE3300 and IE3400...version is 17.7.1 tried also the newest one ..

Goal ...set up a simple test getting the cpu uit. from the switch...and send it over port 57500 to my notebook which runs telegraf and a influxdb docker service....

My configuration i did

 

conf t
aaa new-model
aaa authentication login default local
aaa authorization exec default local 
aaa session-id common
username test privilege 15 password 0 topSecret!!
exit
conf t
gnxi
gnxi server
exit
!
conf t
no telemetry ietf subscription 1
telemetry ietf subscription 1
encoding encode-kvgpb
filter xpath /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds
source-address 192.168.20.220  -->is the address of the switch in the lab..
stream yang-push
update-policy periodic 500
receiver ip address 192.168.178.43 57500 protocol grpc-tcp   -->is the address of my computer where docker telegraf is run
exit
exit

 

my config in telegraf ....

 

[global_tags]
[agent]
  interval = "500ms"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  precision = "0s"
  hostname = ""
  omit_hostname = false
###############################################################################
#                            OUTPUT PLUGINS                                   #
###############################################################################
[[outputs.influxdb_v2]]
  urls = ["http://${DOCKER_INFLUXDB_INIT_HOST}:${DOCKER_INFLUXDB_INIT_PORT}"]
  token = "$DOCKER_INFLUXDB_INIT_ADMIN_TOKEN"
  organization = "$DOCKER_INFLUXDB_INIT_ORG"
  bucket = "$DOCKER_INFLUXDB_INIT_BUCKET"
###############################################################################
#                            AGGREGATOR PLUGINS                               #
###############################################################################

###############################################################################
#                            INPUT PLUGINS                                    #
###############################################################################
[[inputs.cisco_telemetry_mdt]]
  transport = "grpc"
  service_address = ":57500"

###############################################################################
#                            OUTPUT FILE                                      #
###############################################################################
  [[outputs.file]]
  ## Files to parse each interval.  Accept standard unix glob matching rules,
  ## as well as ** to match recursive files and directories.
    files = ["./tmp/metrics.out"]
    data_format = "influx"
    rotation_interval = "24h"
    rotation_max_archives = 10

 

Starting the container....everything looks ok..using my docker-compose file

 

version: '3'

services:

    #influxDB
    influxdb:
        build: ./influxdb
        hostname: influxdb
        container_name: influxdb
        env_file:
        - .env
        volumes:
        - influxdb-storage:/var/lib/influxdb2:rw
        entrypoint: ["./entrypoint.sh"]
        restart: 'always'
        ports:
        - ${DOCKER_INFLUXDB_INIT_PORT}:8086

    #cisco_netconf_influx
    cisco_netconf_influx:
        build: ./telegraf
        hostname: cisco_netconf_influx 
        container_name: cisco_netconf_influx
        ports:
        - 57500:57500
        restart: 'always'
        env_file:
        - .env
        volumes:
        - ./telegraf/configs/cisco_netconf_influx.conf:/etc/telegraf/telegraf.conf:rw
        depends_on:
        - influxdb  
    
volumes:
  influxdb-storage:

 

we get a successful launch..

 

cisco_netconf_influx    | 2022-09-28T16:36:14Z I! Using config file: /etc/telegraf/telegraf.conf
cisco_netconf_influx    | 2022-09-28T16:36:14Z I! Starting Telegraf 1.24.1
cisco_netconf_influx    | 2022-09-28T16:36:14Z I! Available plugins: 222 inputs, 9 aggregators, 26 processors, 20 parsers, 57 outputs
cisco_netconf_influx    | 2022-09-28T16:36:14Z I! Loaded inputs: cisco_telemetry_mdt
cisco_netconf_influx    | 2022-09-28T16:36:14Z I! Loaded aggregators: 
cisco_netconf_influx    | 2022-09-28T16:36:14Z I! Loaded processors: 
cisco_netconf_influx    | 2022-09-28T16:36:14Z I! Loaded outputs: file influxdb_v2
cisco_netconf_influx    | 2022-09-28T16:36:14Z I! Tags enabled: host=cisco_netconf_influx
cisco_netconf_influx    | 2022-09-28T16:36:14Z I! [agent] Config: Interval:500ms, Quiet:false, Hostname:"cisco_netconf_influx", Flush Interval:10s

 

on the switch ...checking for the connection

 

CB30#show telemetry ietf subscription 1 receiver
Telemetry subscription receivers detail:

  Subscription ID: 1
  Address: 192.168.178.43
  Port: 57500
  Protocol: grpc-tcp
  Profile: 
  Connection: 65535
  State: Connecting
  Explanation: 

 

checking wirehark....no response using filter

 

ip.addr == 192.168.20.220 && tcp.port == 57500

 

Checking with nmap

 

nmap -p 57500 192.168.20.220
Starting Nmap 7.80 ( https://nmap.org ) at 2022-09-28 19:00 CEST
Nmap scan report for 192.168.20.220
Host is up (0.00041s latency).

PORT      STATE  SERVICE
57500/tcp closed unknown

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds

 

What do i miss.....

 

 

 

1 Reply 1

matthias m
Level 1
Level 1

Problem could be reproduced by cisco..in the lab...will update once there is a solution...

Review Cisco Networking for a $25 gift card