LoginSignup
0
0

More than 5 years have passed since last update.

pingで使用中のIPアドレスを調査

Posted at

Windowsのbatファイル

pingとarpコマンドを使って使用中のIPアドレスを調査する。
応答が返ってきたIPアドレスは使用中である。
arpコマンドでIPアドレスとMACアドレスの対応がわかる。

pingAll.bat
@rem ping all

for /L %%f in (1,1,254) do ping -n 1 -w 50 192.168.0.%%f >> pingAll.log

arp -a >> arp.log

pause

※バッチファイルから実行する場合には変数を%%fとすること。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0