Forum Discussion

Caio_178191's avatar
Caio_178191
Icon for Nimbostratus rankNimbostratus
Jan 15, 2015

How to show time_wait connections with the ip address

Hi.

 

I need to get all connections that are in time_wait with bigip... I know there is a way to do that with netstat... but is there anyway to do by tmsh?

 

thanks.

 

9 Replies

  • from a bash prompt,

    netstat | grep TIME_WAIT
    . From tmsh,
    run util bash -c "netstat | grep TIME_WAIT"

    • Brad_Parker_139's avatar
      Brad_Parker_139
      Icon for Nacreous rankNacreous
      add -n to prevent resolution of names if you want IP addresses. netstat -n | grep TIME_WAIT or run util bash -c "netstat -n | grep TIME_WAIT"
  • from a bash prompt,

    netstat | grep TIME_WAIT
    . From tmsh,
    run util bash -c "netstat | grep TIME_WAIT"

    • Brad_Parker's avatar
      Brad_Parker
      Icon for Cirrus rankCirrus
      add -n to prevent resolution of names if you want IP addresses. netstat -n | grep TIME_WAIT or run util bash -c "netstat -n | grep TIME_WAIT"
  • Thanks for you answer Brad. But as I said, I would like to do that without netstat.

     

    I already try to find a solution for that but I'm seeing I will have to use netstat. TMSH does not give me this option.

     

    Thanks.

     

    • Caio_178191's avatar
      Caio_178191
      Icon for Nimbostratus rankNimbostratus
      there is no issue... I'm in a customer that would like to have the data by tmsh... don't ask me why he want that... =S
  • You may find you prefer the

    ss
    command, here's two examples;

    ss state time-wait
    ss -t4 state time-wait only IPv4 connections
    
  • Hi. Here is some new information.

     

    The netstat doesn't get the connections in VS. I need to know the connections that are in time_wait in a VS and netstat doesn't give me that. Does I have another way to do that?

     

    I'm using v11.4.1 version.

     

    Thanks.