Skip to main content
Solved

Macs randomly being renamed with a () after the hostname

  • Dec 11, 2024 6:03 PM UTC
  • 6 replies
  • 243 views

Forum|alt.badge.img+3

We seem to have Macs already enrolled being added again into Jamf somehow, but since the entry is already there it overwrites the original hostname and adds a () at the end.

These Macs are not being enrolled a second time, this appears to be random duplicate entries.

A fellow jamf/mac admin I work with had this happen to his mac today and he had done nothing out of the ordinary to it, so we searched and found several entries shown below.

I did a search for (1) - (10) and found multiple for each.

XXXXXXXXXXC32P (10)

XXXXXXXXXXXJT4 (2)

XXXXXXXX647 (2)

XXXXXXXXYWP (2)

XXXXXXXXXX9VH (2)

XXXXXXXXXNL9 (2)

XXXXXXXXGH5 (2)

XXXXXXXW9QG (2)

Best answer by mani2care

Its because of the NetBIOSName you may add this end of the script to change the NetBIOSName so it will not happen any more.

 

defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist NetBIOSName "$newcomputerName" > /dev/null 2>&1

View original

6 replies

Shyamsundar
Forum|alt.badge.img+14
  • Jamf Heroes
  • Dec 12, 2024 5:52 AM UTC

if the Devices in JAMF already have the same hostname, then to differentiate it will add the number like this in front. 

Check how you name the device, and try to use a unique value, 

 

you should have two devices with same hostname, hence its added (2) to differentiate 


Forum|alt.badge.img+4
  • Contributor
  • Dec 12, 2024 2:45 PM UTC

We get this at my organization. My theory is joining multiple different SSIDs while on-prem is causing a weird JAMF vs AD & DHCP battle.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • Dec 12, 2024 3:47 PM UTC

if the Devices in JAMF already have the same hostname, then to differentiate it will add the number like this in front. 

Check how you name the device, and try to use a unique value, 

 

you should have two devices with same hostname, hence its added (2) to differentiate 


We show only one device with the hostname, it is overwriting the original hostname and adding the () number after it. The why it's deciding to do that randomly is the stumper on our end. :)

Our hostnames are ML (for Mac Laptop) and then last 8 digits of the serial number, so there will be only one. 


Forum|alt.badge.img+11
  • Contributor
  • Dec 13, 2024 8:50 PM UTC

I've been seeing this for a while, and @asoderman's theory is a good one. I've always thought it was a pure DHCP issue. I've brought it up with our networking group but they aren't convinced it's a networking issue.


mani2care
Forum|alt.badge.img+7
  • Contributor
  • Answer
  • Dec 17, 2024 8:29 AM UTC

Its because of the NetBIOSName you may add this end of the script to change the NetBIOSName so it will not happen any more.

 

defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist NetBIOSName "$newcomputerName" > /dev/null 2>&1


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • Dec 17, 2024 3:12 PM UTC

Its because of the NetBIOSName you may add this end of the script to change the NetBIOSName so it will not happen any more.

 

defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist NetBIOSName "$newcomputerName" > /dev/null 2>&1


Thank you very much and thank you to everyone who replied.

We will test this out and I will mark as solution after we confirm the results.