Hi Nikhil, 

There are a couple of things conflated here. First, the cli is vpp’s cli which 
can be connected to through a socket. That’s the “/run/vpp/cli.sock” and it’s 
created by vpp at startup so remove the one you’ve created.

The binary api also exposes a socket and you’ve configured it to use the 
default socket name (in the socksvr stanza). If gid is set to vpp (although you 
have it commented out) it should be "/run/vpp/api.sock”. If vcl is configured 
to use the binary api to attach to vpp, that’s the socket it should be 
configured to use. To avoid surprises, instead of using default, use an 
explicit path instead of default, i.e., “socksvr { sock-name /path/to/file” }"

Regards, 
Florin

> On Feb 13, 2021, at 10:36 AM, nikhil subhedar <subhedarnik...@gmail.com> 
> wrote:
> 
> Hi All,
> 
> 
> I am trying to integrate echo_server.c with some changes in my box.After 
> deployment of this plugin i am getting below error.
> Failed: vppctl show cpu: clib_socket_init: connect (fd 3, 
> '/run/vpp/cli.sock'): Connection refused
> 
> what i have done is earlier i got an error message that  file does not exist 
> for /run/vpp/cli.sock').
> To fix this i created a file and after that i am getting the error.
> Typically when we use socket api's provided by VPP what config we should 
> consider which will be part of startup.conf?
> 
> For e.g. i added below changes in my startup.conf.
> 
> unix {
>   nodaemon
>   log /var/log/vpp/vpp.log
>   full-coredump
>   cli-listen /run/vpp/cli.sock
> 
> ###  gid vpp
> }
> 
> session { evt_qs_memfd_seg  }
> socksvr {
>   default
> }
> 
> 
> Thanks in advance.
> 
> Regards,
> Nikhil
> 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18746): https://lists.fd.io/g/vpp-dev/message/18746
Mute This Topic: https://lists.fd.io/mt/80615043/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to