原文:shell 脚本检测端口状态

方法一: cat check port.sh bin bash cat ip.txt while read line do usr bin nc w z line gt dev null gt amp if eq then echo telnet line ok sleep else echo telnet line fail fi done cat ip.txt . . . . . . ...

2019-01-17 11:12 0 2393 推荐指数:

查看详情

[shell]通过ping检测整个网段IP的网络状态脚本

要实现Ping一个网段的所有IP,并检测网络连接状态是否正常,很多方法都可以实现,下面简单介绍两种,如下:脚本1#!/bin/sh# Ping网段所有IP# 2012/02/05ip=1 #通过修改初值while [ $ip != "254]; do #yes正常,no主机不存在或不正常ping ...

Wed Mar 30 21:42:00 CST 2016 0 6508
linux中检测服务器服务与端口shell脚本

https://yq.aliyun.com/ziliao/106027 https://yq.aliyun.com/ziliao/65927?spm=a2c4e.11155472.blogcont.23.7fe76988W6oBo9 linux中检测服务器服务与端口shell脚本 ...

Tue Mar 27 17:38:00 CST 2018 0 3770
批量检测网络端口状态

可以应用于域名证书检测和网络端口检测 for line in `cat /app/sh/test.txt` do nc -w 10 -z $line 443 if [ $? -eq 0 ];then echo $line >> /app/sh ...

Tue Aug 25 01:30:00 CST 2020 0 467
C#如何检测网络端口连接的状态

C#如何检测/监控远程连接网络端口的情况(例如:3389端口是否处于监听状态,是否建立了连接等)。 using System; using System.Collections.Generic; using System.Text; using ...

Sat Feb 02 05:57:00 CST 2013 0 7176
telnet批量检测端口状态(linux)

批量检测端口通信: 准备文件树状图 telnet.sh 脚本内容如下: 文件说明 telnet_alive.txt : 活动的端口 telnet_die.txt : 离线的端口 telnet_result.txt : 活动端口返回 ...

Tue May 14 01:09:00 CST 2019 0 2133
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM