Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Netstat for VxWorks?

4,084 views
Skip to first unread message

TH...@orcon.dnet.ge.com

unread,
Jun 5, 1992, 9:42:42 AM6/5/92
to
Is any sort of netstat-like function (or any other means of getting port
status) available for VxWorks?

John E. Thier
GE Defense Systems Dept.
th...@orcon.dnet.ge.com

Jayne F. Johnson

unread,
Jun 5, 1992, 11:00:16 AM6/5/92
to


Is any sort of netstat-like function (or any other means of getting port
status) available for VxWorks?

Yes there's a function in Vxworks 5.0.3 called "inetstatShow()" which
displays the following:

-> inetstatShow

Active Internet connections (including servers)
PCB Proto Recv-Q Send-Q Local Address Foreign Address (state)
-------- ----- ------ ------ ------------------ ------------------ -------
7f328c TCP 0 0 139.85.108.1.23 139.85.212.1.1968 ESTABLISHED
7f388c TCP 0 0 0.0.0.0.111 0.0.0.0. LISTEN
7f348c TCP 0 0 0.0.0.0.21 0.0.0.0. LISTEN
7f360c TCP 0 0 0.0.0.0.1008 0.0.0.0. LISTEN
7f370c TCP 0 0 0.0.0.0.23 0.0.0.0. LISTEN
7f390c TCP 0 0 0.0.0.0.513 0.0.0.0. LISTEN
7f338c UDP 0 0 0.0.0.0.111 0.0.0.0.
value = 10 = 0xa
->

This is most useful!! There are other utilities in the I/O driver system
like iosDevShow() which show the FDs active.
-> iosDevShow
drv name
0 /null
1 /tyCo/0
1 /tyCo/1
7 sys6:
8 /pty/rlogin.S
9 /pty/rlogin.M
8 /pty/telnet.S
9 /pty/telnet.M
10 //
value = 0 = 0x0
->

It would really be nice if there was a way to map the FD with a particular
socket descriptor, but I haven't such a tool.

Hope this helps.

Jayne Johnson
Hughes Network Systems

email: jjoh...@hns.com

Geoff Espin

unread,
Jun 5, 1992, 12:03:31 PM6/5/92
to
jjoh...@hns.com (Jayne F. Johnson) writes:

>This is most useful!! There are other utilities in the I/O driver system
>like iosDevShow() which show the FDs active.
>-> iosDevShow

>It would really be nice if there was a way to map the FD with a particular
>socket descriptor, but I haven't such a tool.

What about iosFdShow?

-> iosFdShow
fd name drv
3 /tyCo/0 1 in out err
4 (socket) 7
5 (socket) 7
6 (socket) 7
7 (socket) 7
8 (socket) 7
9 A:test.x 4
10 main.c 3


value = 0 = 0x0
->

Perhaps, what you meant was sockShow() which would display:
domain, type, name (from bind), port number, and options.

No such routine is provided, but all the data structures are "public"
so it should be straight forward to add it to your own usrLib...

For those who don't crack the reference manual too often, try:

-> lkup "Show"

Which will list all routines with the pattern "Show" in them... likely
candidates for user diagnositics.

Geoff
--

---
Geoff Espin ge...@wrs.com (510)748-4100
Wind River Systems

0 new messages