@echo off REM REM Find the IPMI IP address from the IPMI MAC address REM REM Required: REM . ipmiutil.exe REM . libeay32.dll REM - from ipmiutil-2.9.2-win64.zip in http://ipmiutil.sourceforge.net/ REM REM V0.1 - 2014/01/13 by MaxC@supermicro.com at Supermicro REM if not "%2"=="" goto DoIt :Help echo CMD: findit.bat ^ ^ echo Ex: findit.bat 00-25-90-88-99-66 10.133.255.255 echo ---- echo Note: Start a Command Prompt as an Administrator echo Note: Calculate broadcast IP address by using http://www.subnet-calculator.com goto End :DoIt arp -d * ipmiutil discover -a -b "%2" -g > out1.txt for /f "tokens=5 delims= " %%A in (out1.txt) do ( ping -n 1 %%A > NUL ) REM timeout /T 2 /NOBREAK arp -a > out2.txt findstr "%1" out2.txt :End