UNIX查看端口状态onstat -an |grep 端口号

netstat -an | grep 9100
tcp        0      0  10.1.85.73.9100        *.*                     LISTEN
tcp        0      0  10.1.85.73.56056       10.1.85.73.9100         FIN_WAIT_2
tcp        0      0  10.1.85.73.9100        10.1.85.73.56056        CLOSE_WAIT
tcp        0      0  10.1.85.73.55998       10.1.85.73.9100         TIME_WAIT
tcp        0      0  10.1.85.73.56002       10.1.85.73.9100         TIME_WAIT

 

查看tcp参数:

ndd -get /dev/tcp /?
?                             (read only)
tcp_time_wait_interval        (read and write)
tcp_conn_request_max          (read and write)
tcp_debug                     (read and write)
tcp_smallest_nonpriv_port     (read and write)
tcp_ip_abort_cinterval        (read and write)
tcp_ip_abort_interval         (read and write)
tcp_ip_notify_cinterval       (read and write)
tcp_ip_notify_interval        (read and write)
tcp_ip_ttl                    (read and write)
tcp_ip6_hop_limit             (read and write)
tcp_keepalive_interval        (read and write)
tcp_mss_def                   (read and write)
tcp_mss_max                   (read and write)
tcp_mss_min                   (read and write)
tcp_naglim_def                (read and write)
tcp_old_urp_interpretation    (read and write)
tcp_rexmit_interval_initial   (read and write)
tcp_rexmit_interval_max       (read and write)
tcp_rexmit_interval_min       (read and write)
tcp_wroff_xtra                (read and write)
tcp_deferred_ack_interval     (read and write)
tcp_deferred_ack_max          (read and write)
tcp_snd_lowat_fraction        (read and write)
tcp_sth_rcv_hiwat             (read and write)
tcp_sth_rcv_lowat             (read and write)
tcp_dupack_fast_retransmit    (read and write)
tcp_rwin_credit_pct           (read and write)
tcp_rcv_push_wait             (read and write)
tcp_keepalives_kill           (read and write)
tcp_smallest_anon_port        (read and write)
tcp_largest_anon_port         (read and write)
tcp_keepalive_detached_interval(read and write)
tcp_text_in_resets            (read and write)
tcp_xmit_hiwater_def          (read and write)
tcp_xmit_lowater_def          (read and write)
tcp_recv_hiwater_def          (read and write)
tcp_xmit_hiwater_lfp          (read and write)
tcp_xmit_lowater_lfp          (read and write)
tcp_recv_hiwater_lfp          (read and write)
tcp_xmit_hiwater_lnp          (read and write)
tcp_xmit_lowater_lnp          (read and write)
tcp_recv_hiwater_lnp          (read and write)
tcp_rexmit_interval_initial_lnp(read and write)
tcp_syn_rcvd_max              (read and write)
tcp_tw_cleanup_interval       (read and write)
tcp_do_conn_options           (read and write)
tcp_fin_wait_2_timeout        (read and write)
tcp_ts_enable                 (read and write)
tcp_sack_enable               (read and write)
tcp_xmit_hiwater_max          (read and write)
tcp_recv_hiwater_max          (read and write)
tcp_cwnd_initial              (read and write)
tcp_early_conn_ind            (read and write)
tcp_spec_port                 (read and write)
tcp_smoothed_rtt              (read and write)
tcp_status                    (read only)
tcp_discon                    (write only)
tcp_discon_by_addr            (write only)
hatcp_enable                  (read and write)
tcp_isn_passphrase            (read and write)

 

ndd -get /dev/tcp tcp_time_wait_interval
60000

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值