netstat

Report network information and statistics via the "netstat" operating system command.

Report important network usage information/statistics for the given member.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.

Syntax:
netstat [--member=value(,value)*] [--group=value] [--file=value] 
[--with-lsof(=value)?]
member Name/Id of the member(s) on which to run the netstat command.
group Group of members on which to run the netstat command.
file Text file to which output from the netstat command will be written. A ".txt" extension will be added if it's not already a part of the specified name.
with-lsof Whether lsof (list open files) command output should also be displayed. Not applicable for Microsoft Windows hosts.
Example Commands:
netstat
netstat --member=server1
netstat --member=server1 --file=server1_netstat.txt
Sample Output:
gfsh>netstat
####################################
Host: GemFireStymon
OS: Windows XP 5.1 x86
Member(s):
 server2, locator1, server1
####################################

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    GemFireStymon:epmap    GemFireStymon:0        LISTENING
  TCP    GemFireStymon:microsoft-ds  GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1034     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1069     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1099     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1134     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:3389     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:8080     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:8081     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:10334    GemFireStymon:0        LISTENING
  TCP    GemFireStymon:40404    GemFireStymon:0        LISTENING
  TCP    GemFireStymon:40405    GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1025     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:5152     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:netbios-ssn  GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1035     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1035     GemFireStymon:1081     ESTABLISHED
  TCP    GemFireStymon:1035     GemFireStymon:1086     ESTABLISHED
  TCP    GemFireStymon:1035     GemFireStymon:1147     ESTABLISHED
  TCP    GemFireStymon:1035     GemFireStymon:1156     ESTABLISHED
  TCP    GemFireStymon:1046     GemFireStymon:1099     ESTABLISHED
  TCP    GemFireStymon:1049     osdc-proxy-vip.vmware.com:http  CLOSE_WA
  TCP    GemFireStymon:1050     osdc-proxy-vip.vmware.com:3128  CLOSE_WA
  TCP    GemFireStymon:1071     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1071     GemFireStymon:1077     ESTABLISHED
  TCP    GemFireStymon:1071     GemFireStymon:1150     ESTABLISHED
  TCP    GemFireStymon:1071     GemFireStymon:1157     ESTABLISHED
  TCP    GemFireStymon:1077     GemFireStymon:1071     ESTABLISHED
  TCP    GemFireStymon:1078     GemFireStymon:24400    ESTABLISHED
  TCP    GemFireStymon:1081     GemFireStymon:1035     ESTABLISHED
  TCP    GemFireStymon:1086     GemFireStymon:1035     ESTABLISHED
  TCP    GemFireStymon:1099     GemFireStymon:1046     ESTABLISHED
  TCP    GemFireStymon:1136     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:1136     GemFireStymon:1143     ESTABLISHED
  TCP    GemFireStymon:1136     GemFireStymon:1151     ESTABLISHED
  TCP    GemFireStymon:1136     GemFireStymon:1201     ESTABLISHED
  TCP    GemFireStymon:1141     GemFireStymon:4247     ESTABLISHED
  TCP    GemFireStymon:1142     GemFireStymon:48640    ESTABLISHED
  TCP    GemFireStymon:1143     GemFireStymon:1136     ESTABLISHED
  TCP    GemFireStymon:1147     GemFireStymon:1035     ESTABLISHED
  TCP    GemFireStymon:1150     GemFireStymon:1071     ESTABLISHED
  TCP    GemFireStymon:1151     GemFireStymon:1136     ESTABLISHED
  TCP    GemFireStymon:1156     GemFireStymon:1035     ESTABLISHED
  TCP    GemFireStymon:1157     GemFireStymon:1071     ESTABLISHED
  TCP    GemFireStymon:1201     GemFireStymon:1136     ESTABLISHED
  TCP    GemFireStymon:1349     GemFireStymon:10334    TIME_WAIT
  TCP    GemFireStymon:1350     GemFireStymon:10334    TIME_WAIT
  TCP    GemFireStymon:1351     GemFireStymon:10334    TIME_WAIT
  TCP    GemFireStymon:1352     GemFireStymon:10334    TIME_WAIT
  TCP    GemFireStymon:1353     GemFireStymon:10334    TIME_WAIT
  TCP    GemFireStymon:1354     GemFireStymon:10334    TIME_WAIT
  TCP    GemFireStymon:4247     GemFireStymon:0        LISTENING
  TCP    GemFireStymon:4247     GemFireStymon:1141     ESTABLISHED
  TCP    GemFireStymon:24400    GemFireStymon:0        LISTENING
  TCP    GemFireStymon:24400    GemFireStymon:1078     ESTABLISHED
  TCP    GemFireStymon:48640    GemFireStymon:0        LISTENING
  TCP    GemFireStymon:48640    GemFireStymon:1142     ESTABLISHED
  UDP    GemFireStymon:microsoft-ds  *:*
  UDP    GemFireStymon:isakmp   *:*
  UDP    GemFireStymon:4500     *:*
  UDP    GemFireStymon:ntp      *:*
  UDP    GemFireStymon:1900     *:*
  UDP    GemFireStymon:ntp      *:*
  UDP    GemFireStymon:netbios-ns  *:*
  UDP    GemFireStymon:netbios-dgm  *:*
  UDP    GemFireStymon:1900     *:*
  UDP    GemFireStymon:32270    *:*
  UDP    GemFireStymon:42838    *:*
  UDP    GemFireStymon:47727    *:*