Jump to content

Recommended Posts

Posted

We are now rolling out Mcafee antivirus from the server to macs and PCS.

On the macs we have to enable Remote login under sharing to enable the windows server to log in and install the agent.

This works fine but when we come to roll out the antivirus setup the machine name Art-Macbook-01 keeps saying it is unmanaged.

On closer inspection the sharing name for the machine is Art-Macbook-02 and this was the name that was used to bind this with active directory.

 

When i look at the Ssh name under sharing the machine is showing as CB3-16

So when i try to roll out the antivirus the mac has suddenly been recognised as CB3-16.

IS there any way to change the ssh machine name from cb3-16 to the correct name of Art-Macbook-02 as it is going to be hard to track this machines if they keep using other machine names that are in active directory.

Also every time the machine is restarted the name changes.

 

Any help would be appreciated.

 

Steve

Posted (edited)

Your Mac is picking up a different hostname from DNS (probably ends up being the previous computer that had that IP address, or a derivative of the Mac's MAC address).

 

Use this command in terminal to forcefully set the hostname:

 

sudo scutil --set HostName 'PERMANENT-NAME'

 

or you can go to System Preferences > Sharing > Set computer name. Click the "Edit..." button, you'll see a setting for "Use dynamic global hostname", which you should untick.

 

Also make sure DNS scavenging is enabled on your network's DNS servers! :)

Edited by Blue_Cookeh
Posted

Hi There

 

Thanks for the reply.

I have ran the terminal command and also checked the sharing preferences.

The DNS scavaging is also on on the Dns Servers.

Each time i reboot the machine the the machine name in the sharing box in preferences under where it says remote logon.And tells you to log into the machine using SSH name is wrong.

This name is the one that is being seen from the antivirus server and not the local machine name.

 

Thanks

 

Steve

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...