Displays MAC address of a network card.
External MS-DOS program
nbmac [-lana_num] [-b] [-s] [-u] [-c|-i|-l|-r] [NetBIOS_name]
-lana_num (0..255) - default is -0
-b batch mode (set NBMAC=...)
-s scan (starts at lana_num)
-u upper case MAC format
-c Cisco MAC format (xxxx.xxxx.xxxx)
-i IEEE MAC format (XX-XX-XX-XX-XX-XX) - default
-l colon MAC format (xx:xx:xx:xx:xx:xx)
-r raw MAC format (xxxxxxxxxxxx)
NNetBIOS_name must be a valid NetBIOS name on your network.
Options -b, -s -lana_num -u can be combined.
Only one of the options -c, -i, -l and -r can be given but they can be combined with any other option.
This program calls NetBIOS interrupt 0x5C function 0x33 which makes it independend of network hardware and software used as long as there is a NetBIOS network. nbmac returns 00-00-00-00-00-00 if no NetBIOS compatible network is loaded (eg. plain MS-DOS). If nbmac returns no ouput at all something really odd must have happened. Should you seriously need a more detailed error message, please contact me for terms. This program should work with any NetBIOS compatible network under Microsoft MS-DOS, Microsoft Windows 95, Microsoft Windows NT and IBM OS/2. Please let me know about your experiences with a configuration other than one mentioned below.
When reporting please make sure to include the following:
This program has been successfully tested under the following configurations:
Client Software | Server Software | tested by |
Microsoft MS-DOS 6.22 and Digital PATHWORKS for DOS V4.0 with DECnet |
Konstantinos Kostis | |
Microsoft MS-DOS 6.22 and Digital PATHWORKS for DOS V6.0A with TCP/IP |
Konstantinos Kostis | |
Microsoft Windows 95 with TCP/IP | Microsoft Windows 95 Microsoft Windows NT Workstation Microsoft Windows NT Server Digital PATHWORKS for OpenVMS V5.0F |
Konstantinos Kostis |
Microsoft Windows 98 SE DOS and MS-DOS LAN Manager v2.1 with TCP/IP |
Konstantinos Kostis | |
Microsoft Windows NT Workstation with TCP/IP |
Microsoft Windows 95 Microsoft Windows 98 (SE) Microsoft Windows NT Workstation Microsoft Windows NT Server Digital PATHWORKS for OpenVMS V5.0F |
Konstantinos Kostis |
OS/2 Warp Version 3.00 | IBM OS/2 LAN Adapter and Protocol Suppport Version 5.12.1 | Panagiotis Makridis |
Microsoft Windows 2000 Professional Microsoft Windows XP Profesional (32-bit) Microsoft Windows Vista Business (32-bit) |
Konstantinos Kostis |
ncmac does not run under Microsoft 64-bit operating systems. Microsoft servers with 64-bit operating systems can be queried.
ncmac does not work under Microsoft MS-DOS and Digital PATHWORKS,
if a server is given. nbmac returns the local MAC address.
Digital PATHWORKS for VAX/VMS V4.x servers do not return anything.
Samba servers return 00-00-00-00-00-00
nbmac -s
Copyright (C) 1998-2010 by Kostis Netzwerkberatung
Talstr. 25, D-63322 Rödermark, Tel. +49 6074 881056
http://www.kostis.net/
You may use this program free of charge at your own risk.