How do I display the status of a particular protocol in solaris 10?



  • $ /usr/bin/netstat protocol_name
    

    protocol_name can be tcp, udp, sctp.

    $ /usr/bin/netstat -P udp
    
    Active UNIX domain sockets
    Address  Type          Vnode     Conn  Local Addr      Remote Addr
    d6ce5750 stream-ord 0000000 d6803d80                /tmp/.X11-unix/X0
    d6ce59c0 stream-ord 0000000 0000000 /tmp/.X11-unix/X0
    d6ce5af8 stream-ord 0000000 0000000 /tmp/.X11-unix/X0
    d6ce5c30 stream-ord 0000000 d6803d80                /tmp/.X11-unix/X0
    d6ce5d68 stream-ord 0000000 0000000 /var/tmp/orbit-root/linc-40c-0-4a6ee3f0767d8
    d6ce5ea0 stream-ord 0000000 d5881600                /var/tmp/orbit-root/linc-40c-0-4a6ee3f0767d8
    d6cca008 stream-ord 0000000 0000000 /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca140 stream-ord 0000000 d5881d80                /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca278 stream-ord 0000000 0000000 /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca3b0 stream-ord 0000000 d5881d80                /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca4e8 stream-ord 0000000 0000000 /var/tmp/orbit-root/linc-3b7-0-4a6eb233c2d19
    d6cca620 stream-ord 0000000 d5881480                /var/tmp/orbit-root/linc-3b7-0-4a6eb233c2d19
    d6cca758 stream-ord 0000000 0000000 /tmp/.ICE-unix/890
    d6cca890 stream-ord 0000000 d68790c0                /tmp/.ICE-unix/890
    
    $ /usr/bin/netstat -P tcp
    
    TCP: IPv4
       Local Address        Remote Address    Swind Send-Q Rwind Recv-Q    State
    -------------------- -------------------- ----- ------ ----- ------ -----------
    jupiter.ssh          192.168.1.69.62260   65268    103 49640      0 ESTABLISHED
    
    Active UNIX domain sockets
    Address  Type          Vnode     Conn  Local Addr      Remote Addr
    d6ce5750 stream-ord 00000000     d6803d80                /tmp/.X11-unix/X0
    d6ce59c0 stream-ord 00000000     00000000        /tmp/.X11-unix/X0
    d6ce5af8 stream-ord 00000000     00000000        /tmp/.X11-unix/X0
    d6ce5c30 stream-ord 00000000     d6803d80                /tmp/.X11-unix/X0
    d6ce5d68 stream-ord 00000000     00000000        /var/tmp/orbit-root/linc-40c-0-4a6ee3f0767d8
    d6ce5ea0 stream-ord 00000000     d5881600                /var/tmp/orbit-root/linc-40c-0-4a6ee3f0767d8
    d6cca008 stream-ord 00000000     00000000        /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca140 stream-ord 00000000     d5881d80                /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca278 stream-ord 00000000     00000000        /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    
    $ /usr/bin/netstat -P sctp
    
    Active UNIX domain sockets
    Address  Type          Vnode     Conn  Local Addr      Remote Addr
    d6ce5750 stream-ord 0000000 d6803d80                /tmp/.X11-unix/X0
    d6ce59c0 stream-ord 0000000 0000000 /tmp/.X11-unix/X0
    d6ce5af8 stream-ord 0000000 0000000 /tmp/.X11-unix/X0
    d6ce5c30 stream-ord 0000000 d6803d80                /tmp/.X11-unix/X0
    d6ce5d68 stream-ord 0000000 0000000 /var/tmp/orbit-root/linc-40c-0-4a6ee3f0767d8
    d6ce5ea0 stream-ord 0000000 d5881600                /var/tmp/orbit-root/linc-40c-0-4a6ee3f0767d8
    d6cca008 stream-ord 0000000 0000000 /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca140 stream-ord 0000000 d5881d80                /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca278 stream-ord 0000000 0000000 /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    d6cca3b0 stream-ord 0000000 d5881d80                /var/tmp/orbit-root/linc-4a1-0-4a6eb65181825
    


© Lightnetics 2024