问题
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 */
来源:https://stackoverflow.com/questions/24094993/c-interp-unknown-symbol-name-inetstatshow