cancel
Showing results for 
Search instead for 
Did you mean: 

Hostchecker: OS Check Mac OS X

SOLVED
cryptochrome_
Contributor

Hostchecker: OS Check Mac OS X

Hi,

 

I need to restrict access to a role based on OS. How can I do this for Mac OS X?

 

The predefined Windows Hostchecker checks contain OS checks so I can easily build a hostchecker rule that only allows Windows. But how about OS X or even Linux? There don't seem to be any OS checks available so how can I identify Mac OS X and use that in role mapping?

 

Thanks

Sascha

 

1 ACCEPTED SOLUTION

Accepted Solutions
kenlars_
Super Contributor

Re: Hostchecker: OS Check Mac OS X

Are you wanting to simply identify that a machine is running OS X, and not really particular what release?  If so, you can define a Host Checker policy and only define a rule under the "Mac" tab.  I created a rule which looked for the absence of a running process with a name that was very unlikely to be used as a process name.

 

This policy is true only if the machine is a Mac, and is false if you are running on any other platform.  Something like this would work for Unix as well.

 

Ken

View solution in original post

4 REPLIES 4
Lilja_
Frequent Contributor

Re: Hostchecker: OS Check Mac OS X

Have you tried using UserAgent strings?

cryptochrome_
Contributor

Re: Hostchecker: OS Check Mac OS X

Yes, but they are not an option because they can easily be manipulated.

 

Any other options?

 

Thanks!

kenlars_
Super Contributor

Re: Hostchecker: OS Check Mac OS X

Are you wanting to simply identify that a machine is running OS X, and not really particular what release?  If so, you can define a Host Checker policy and only define a rule under the "Mac" tab.  I created a rule which looked for the absence of a running process with a name that was very unlikely to be used as a process name.

 

This policy is true only if the machine is a Mac, and is false if you are running on any other platform.  Something like this would work for Unix as well.

 

Ken

cryptochrome_
Contributor

Re: Hostchecker: OS Check Mac OS X

Exactly what I was looking for, Ken. Thanks!