C interp: unknown symbol name 'inetstatShow

2019-09-03 01:22发布

问题:

I have some Vxworks embedded os and I want to check the netstat.

This is what I tried:

-> inetstatShow

And the output is:

C interp: unknown symbol name 'inetstatShow'.

How can I have netstat command in this?

回答1:

inetstatShow is provided by netShow library - you need to be sure that your OS configuration includes netShow, or you can dynamically load it using ld.

The lkup function can be used to list symbols that are available to the shell. Try lkup "Show" to list all symbols that include the sub-string "Show" for example.



回答2:

VxWorks supports netstat command.

-> netstat "-n -a" /* state of sockets */
-> netstat "-n -r" /* routing table */