LedZepRock
MIS
Hi
How can I find out (without walking around every machine) the MAC addresses of its NIC??
Simon
How can I find out (without walking around every machine) the MAC addresses of its NIC??
Simon
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
use strict;
use Win32;
my $subnet = "103.1.5."; #variable for subnet to ping
my $i = "0"; #variable for last octet
my $dir = "C:/"; #variable for directory output of file
#The forward slash is NOT a typo
my $filename = "arp.txt"; #variable for file name
my $output;
while ($i < 255) {
$i += 1;
print `ping -n 1 -l 1 -w 2 $subnet$i`;
}
$output = `arp -a`;
open (FILE, ">$dir$filename");
print FILE $output;
print $output;
close (FILE);