SONiC icon indicating copy to clipboard operation
SONiC copied to clipboard

Query: bcmcmd with Broadcom ASIC

Open mdivyamohan opened this issue 6 years ago • 3 comments

Could anyone explain how bcmcmd communicates with ASIC.

From command line, it looks bcmcmd connects to sswsyncd socket; and dsserve (parent of syncd) is listening on this socket.

        # USAGE: bcmcmd [-f <sun_path>] -v <cmd>
          -v                         verbose mode
          -f                         domain socket filename, default /var/run/sswsyncd/sswsyncd.socket
root@syncd:/# netstat -alpn | grep dsserv
unix  2      [ ACC ]     STREAM     LISTENING     267222   20/dsserve          /var/run/sswsyncd/sswsyncd.socket

So is dsserve directly communicating with ASIC? I'm trying to understand whether communication is like: bcmcmd <--> dsserve <--> SDK/ASIC or bcmcmd <--> dsserve <--> syncd <--> SDK/ASIC

mdivyamohan avatar Jun 04 '19 11:06 mdivyamohan

the second one is correct.

lguohan avatar Jun 04 '19 12:06 lguohan

@lguohan Thanks for the response.

Could you please help me understand this flow: bcmcmd <--> dsserve <--> syncd <--> SDK/ASIC. I assume syncd <--> SDK/ASIC means syncd <--> SAI library <--> SDK/ASIC.

Does this mean the ASIC specific SAI library has to support a mechanism to run bcm shell commands? Are there generic SAI APIs for this purpose?

mdivyamohan avatar Jun 06 '19 04:06 mdivyamohan

@qiluo-msft @lguohan could you share dsserve and bcmcmd code ?

119064273 avatar Jul 27 '22 03:07 119064273

@qiluo-msft @lguohan could you share dsserve and bcmcmd code ?

Have you received the source code? Can you share it?

melodyforyou avatar Jan 09 '24 03:01 melodyforyou