[Dxspider-support] WHO info

Brian n1uro at n1uro.com
Tue Sep 26 19:30:22 BST 2006


> >> anybody can help me? I'll use this field to control if there are users 
> >> on a specific port to share it with a dx beacon spot robot (experimental 
> >> version).
> > 
> > AFAIK ax25d and its friends don't provide this information. Mind you,
> > neither am I expecting it. Therefore it isn't available and there is not
> > much I can do about it unless something sends it to me.

netstat --ax25 will show just ax25 connects which would reflect user
callsigns -> local node services

ex:
Active AX.25 sockets
Dest       Source     Device  State        Vr/Vs    Send-Q  Recv-Q
*          N1URO-6    ax1     LISTENING    000/000  0       0
*          UROHUB-0   ax1     LISTENING    000/000  0       0
*          N1URO-3    ax1     LISTENING    000/000  0       0
*          LINUX-0    ax0     LISTENING    000/000  0       0
*          N1URO-11   ax0     LISTENING    000/000  0       0
*          SPGMA-0    ax0     LISTENING    000/000  0       0
*          UROHUB-0   ax0     LISTENING    000/000  0       0
*          N1URO-3    ax0     LISTENING    000/000  0       0
N1URO-14   N1URO-3    ax0     ESTABLISHED  005/002  0       0
*          N1URO-4    ax0     LISTENING    000/000  0       0
N1URO-10   N1URO-3    ax1     ESTABLISHED  005/004  0       0
*          N1URO-2    ax0     LISTENING    000/000  0       0

The same can be done for netrom connects:
n1uro at schlitz:~$ netstat --netrom
Active NET/ROM sockets
User       Dest       Source     Device  State        Vr/Vs    Send-Q
Recv-Q
N1VHB-0    N1URO-14   N1URO-3    nr0     ESTABLISHED  000/003  0       0
*          *          N1URO-11   nr3     LISTENING    000/000  0       0
*          *          N1URO-3    nr0     LISTENING    000/000  0       0
*          *          N1URO-4    nr1     LISTENING    000/000  0       0
*          *          N1URO-2    nr2     LISTENING    000/000  0       0

You could make a simple script that could simplify this for you if you
wished and cleaned up the display some by doing:

#!/bin/sh

# show AX.25 only:
echo "AX25 links"; /bin/netstat --ax25|grep ESTA

# show NetRom only:
echo "NetRom links"; /bin/netstat --netrom|grep ESTA

exit 0


call it something like "hamwho":
root at schlitz:~# hamwho
AX25 links
N1URO-14   N1URO-3    ax0     ESTABLISHED  001/006  0       0
N1URO-10   N1URO-3    ax1     ESTABLISHED  000/004  0       0
NetRom links
N1VHB-0    N1URO-14   N1URO-3    nr0     ESTABLISHED  000/003  0       0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20060926/c4862251/attachment-0001.pgp 


More information about the Dxspider-support mailing list