How to tell if client is 32bit or 64bit?

(imported topic written by SystemAdmin)

Looking for a cross platform way to determine if a client is 32 bit or 64 bit. Is there a bit o relevance that does this out of box?

(imported comment written by jessewk)

You mean the host operating system?

Q: x64 of operating system

A: False

(imported comment written by SystemAdmin)

Will that work on linux and solaris?

For windows, we had been using:

(not exists (value of variable “PROCESSOR_ARCHITECTURE” of environment) whose (it as string as lowercase contains “64”).

(imported comment written by jessewk)

‘x64 of operating system’ will work on Windows 6.0 and Mac.

‘ia64 of operating system’ will work on Windows 7.0 . (True if Itanium)

‘architecture of operating system’ will work on Linux 4.1, HP-Unix 4.1, Mac 6.0, AIX 4.1, Solaris 4.1 . You need to match this result against a known string. For example in our redhat content we use 'architecture of operating system = “x86_64”. The exact string to check for depends on the specific flavor of operating system.

Note I pulled all the version compatibility information from the inspector search utility: http://support.bigfix.com/inspectorsearch/inspector_search.html

Jesse

(imported comment written by SystemAdmin)

Is there any kind of initiative to make inspectors OS agnostic? Seems like a standard way to query for things would be a great selling point.

(imported comment written by jessewk)

Generally wherever we can we will make the inspectors cross platform, but we are limited by the APIs made available by the OS vendor.

1 Like

(imported comment written by SystemAdmin)

I guess I am not following. The OS vendor supplies the API’s but wouldn’t the inspector isolate the user from the API? Couldn’t an inspector called, for instance, ‘architecture of operating system’ provide a value of x86, x64, i64 or a64 by querying those api’s and manipulating the data?

Sorry if I am not understanding, but it just seems like all the information is there, it’s just a matter of consistent presentation. Writing queries would be a world easier if properites were kept common.