Any way to get all the Ethernet or token ring NIC addresses ?
July 4, 2011Any way to get all the Ethernet or token ring NIC addresses ?
You could use dhcpcmd from the Server ResKit to do something like the following:
C:>dhcpcmd 10.10.10.1 enumclients 10.10.10.0 -h
DHCP Server version 4.1
1 10.10.10.2 JETIE 00a0c9c72624
2 10.10.10.3 98Workstation 00a0ffff16fe
Any way to get all the Ethernet or token ring
NIC addresses ??
C:> FOR /L %i IN (1,1,255) DO ping -n 1 203.97.160.%i
c:> arp -a>mac.txt
output is ….. (numbers replaced with x’s)
Interface: xxx.xx.xx.111 on Interface 0x2
Internet Address Physical Address Type
xxx.xx.xx.6 00-20-af-64-03-53 dynamic
xxx.xx.xx.12 00-80-5f-bd-68-36 dynamic
FOR /L %i IN (1,1,255) DO ping -n 1 192.168.%i