Open mipxman opened 3 years ago
Hi guys
when i use the telemetry in real switch the telemtery connction was refused. but in the vs I can get data without any configuration . do you know what I am to do ?
root@sonic:/# gnmi_get -xpath_target COUNTERS_DB -xpath COUNTERS_PORT_NAME_MAP -target_addr 127.0.0.1:8080 -insecure true == getRequest: prefix: < target: "COUNTERS_DB" > path: < elem: < name: "COUNTERS_PORT_NAME_MAP" > > encoding: JSON_IETF F0201 09:38:25.407921 328 gnmi_get.go:137] Get failed: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:8080: connect: connection refused"
in the vs :
admin@sonic:~$ docker exec -it telemetry bash root@sonic:/# gnmi_get -xpath_target COUNTERS_DB -xpath COUNTERS_PORT_NAME_MAP -target_addr 127.0.0.1:8080 -insecure true == getRequest: prefix: < target: "COUNTERS_DB" > path: < elem: < name: "COUNTERS_PORT_NAME_MAP" > > encoding: JSON_IETF == getResponse: notification: < timestamp: 1612172008754845246 prefix: < target: "COUNTERS_DB" > update: < path: < elem: < name: "COUNTERS_PORT_NAME_MAP" > > val: < json_ietf_val: "{\"Ethernet0\":\"oid:0x1000000000002\",\"Ethernet100\":\"oid:0x100000000001b\",\"Ethernet104\":\"oid:0x100000000001c\",\"Ethernet108\":\"oid:0x100000000001d\",\"Ethernet112\":\"oid:0x100000000001e\",\"Ethernet116\":\"oid:0x100000000001f\",\"Ethernet12\":\"oid:0x1000000000005\",\"Ethernet120\":\"oid:0x1000000000020\",\"Ethernet124\":\"oid:0x1000000000021\",\"Ethernet16\":\"oid:0x1000000000006\",\"Ethernet20\":\"oid:0x1000000000007\",\"Ethernet24\":\"oid:0x1000000000008\",\"Ethernet28\":\"oid:0x1000000000009\",\"Ethernet32\":\"oid:0x100000000000a\",\"Ethernet36\":\"oid:0x100000000000b\",\"Ethernet4\":\"oid:0x1000000000003\",\"Ethernet40\":\"oid:0x100000000000c\",\"Ethernet44\":\"oid:0x100000000000d\",\"Ethernet48\":\"oid:0x100000000000e\",\"Ethernet52\":\"oid:0x100000000000f\",\"Ethernet56\":\"oid:0x1000000000010\",\"Ethernet60\":\"oid:0x1000000000011\",\"Ethernet64\":\"oid:0x1000000000012\",\"Ethernet68\":\"oid:0x1000000000013\",\"Ethernet72\":\"oid:0x1000000000014\",\"Ethernet76\":\"oid:0x1000000000015\",\"Ethernet8\":\"oid:0x1000000000004\",\"Ethernet80\":\"oid:0x1000000000016\",\"Ethernet84\":\"oid:0x1000000000017\",\"Ethernet88\":\"oid:0x1000000000018\",\"Ethernet92\":\"oid:0x1000000000019\",\"Ethernet96\":\"oid:0x100000000001a\"}" > > > root@sonic:/#
Can you provide the SONiC versions?
Hi guys
when i use the telemetry in real switch the telemtery connction was refused. but in the vs I can get data without any configuration . do you know what I am to do ?
in the vs :