network dump to csv
Posted: 26 Nov 2013 11:23
Hey All,
So i made a simple script (that is probably sloppy but it still works somehow) that im trying to get excel to read. The script outputs a mac address, type and netbios identifier per IP given. It is nice and pretty in a text file but excel hates it. Any tips on how to get the output in a text or csv file as IP , csproduct type , Netbios , MAC?
FOR /L %i IN (1,1,254) DO (((((
echo.
)
echo target machine 10.1.100.%i
)
wmic /node :10.1.100.%i csproduct get name | findstr /I "N a m e"
)
NBTSTAT -A 10.1.100.%i | findstr /I "unique"
)
arp -a 10.1.100.%i |findstr /I "dynamic"
)>>C:\SCRIPTdump.txt
Thanks
Art
So i made a simple script (that is probably sloppy but it still works somehow) that im trying to get excel to read. The script outputs a mac address, type and netbios identifier per IP given. It is nice and pretty in a text file but excel hates it. Any tips on how to get the output in a text or csv file as IP , csproduct type , Netbios , MAC?
FOR /L %i IN (1,1,254) DO (((((
echo.
)
echo target machine 10.1.100.%i
)
wmic /node :10.1.100.%i csproduct get name | findstr /I "N a m e"
)
NBTSTAT -A 10.1.100.%i | findstr /I "unique"
)
arp -a 10.1.100.%i |findstr /I "dynamic"
)>>C:\SCRIPTdump.txt
Thanks
Art