728x90
Windows Batch 파일
@echo off
SET count=0
SET /p subnet=Please enter IP address range (example, 192.168.0)
:start
SET /a count=%count%+1
cls
ECHO. & ECHO Trying %subnet%.%count% & ECHO.
ping -n 1 -w 1000 %subnet%.%count% >nul
IF %errorlevel%==0 echo %subnet%.%count% UP >> %cd%\%subnet%.log
IF %errorlevel%==1 echo %subnet%.%count% DOWN >> %cd%\%subnet%.log
IF %count%==254 goto :eof
GOTO start
'IaaS > 기타' 카테고리의 다른 글
Linux Python 버전 조정하기 (0) | 2022.12.14 |
---|---|
Linux 서버간 비밀번호 없이 ssh 허용하기 (0) | 2022.12.12 |
LVM 볼륨 만들기 (2) | 2022.10.05 |
Systemctl 에 등록해서 서비스 관리하기 (1) | 2022.10.05 |
Processor 기반 연산과 Multi-Thread 기반 연산 어떤 장단점이 있을까? (0) | 2022.08.17 |