On Wed, 2006-03-15 at 10:57 +0100, Mark Burgess wrote: > Surely we want to identify not just ESX but also the other vmwares. THe > ESX string should be in the > appropriate file and should therefore allow identification? Please > correct me if I am wrong. From > what I can see there is no unique or generic way to identify ESX from > the discussions
there isn't a file equivalent to /etc/redhat-release for ESX which details release information other than the default contents of /etc/issue, which many users overwrite with their own content. there are commands which output the necessary information, so if you are willing to change the current approach taken in misc.c and run a system call to determine version information, the best approach would probably be to look for the binary command /usr/bin/vmware, and run /usr/bin/vmware -v to get the necessary version info. this should be valid on both server versions (ESX and GSX) as well as for VMware workstation. otherwise it will have to be a hodgepodge approach to determine which platform is running, unless you simply want to set a generic "vmware" class. i believe the only reason that ESX servers were being singled out is that the vmnix kernel is functionally its own operating system. GSX and workstation run as applications, so setting classes for these two would be the same as setting classes for machines running apache or some other application. to date all of the hard classes are OS or hardware specific, right? chris _______________________________________________ Bug-cfengine mailing list [email protected] http://cfengine.org/mailman/listinfo/bug-cfengine
