netbios name resolution

Can I solve IP address query 'Netbios' name of Windows computer from Yosemite?

I have both Windows and OS X clients on the same network and I'd like to reach Windows pc by computer name.

MacBook Pro with Retina display, OS X Yosemite (10.10.3)

Posted on Jun 28, 2015 1:45 AM

Reply
7 replies

Jun 28, 2015 2:27 PM in response to Rickyleroy

Given the ip address of that remote PC, you can get its name from the following:


smbutil status nnn.nnn.nnn.nnnn | awk '!(NR%3) {print $2}'


Basically the smbutil status command returns three lines of output. To awk these are records (NR). The modulo of the third record will be zero, so we are saying ignore all lines of output from smbutil status unless it matches the third line. Then we print the second field of that record which is the NetBIOS hostname at that IP address. Now you can supply the obtained NetBIOS name to RDC.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

netbios name resolution

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.