[plug] what port is xfs running on?

Russell Steicke r.steicke at bom.gov.au
Sat Jul 24 22:38:40 WST 2004


On Sun, Jul 25, 2004 at 12:12:10AM +1000, Rob Dunne wrote:
> 
> 
> 
> HI list,
>            how do I tell what port xfs is running on?
> 
> $ ps ax|grep xfs
>  3299 ?        S      0:04 [xfs]

Well, it should be 7100, if it's listening for external connections:

  $ grep xfs /etc/services 
  font-service    7100/tcp        xfs             # X Font Service
  font-service    7100/udp        xfs
  $ 

But you could try this:

  # lsof | grep xfs
  xfs         532     root  cwd    DIR        8,5     4096          2 /
  xfs         532     root  rtd    DIR        8,5     4096          2 /
  xfs         532     root  txt    REG        8,5   456696     570170 /usr/X11R6/bin/xfs
  xfs         532     root    0u   CHR        1,3              539213 /dev/null
  xfs         532     root    1u   CHR        1,3              539213 /dev/null
  xfs         532     root    2u   CHR        1,3              539213 /dev/null
  xfs         532     root    3u  unix 0xdbb0d040                1704 /tmp/.font-unix/fs7100
  xfs         532     root    4u  unix 0xdbb0d400                1710 socket
  xfs         532     root    5u  unix 0xdd8b2820           106328157 /tmp/.font-unix/fs7100
  # 

Mine's not listening for tcp connections, so there are no "TCP *:xfs"
entries there, but yours may be different.

There are probably niftier ways to use lsof (or netstat) but this works
for me.





-- 
Russell Steicke

-- Fortune says:
October 12, the Discovery.

It was wonderful to find America, but it would have been more wonderful to miss
it.
		-- Mark Twain, "Pudd'nhead Wilson's Calendar"



More information about the plug mailing list