Top Level Namespace

Defined Under Namespace

Classes: Esx4VmPackage, Esx4VmRepository, EsxRepository, FileVmCollection, FileVmPackage, FileVmRepository, FtpVmPackage, FtpVmRepository, HttpVmCollection, HttpVmPackage, HttpVmRepository, HttpsVmPackage, HttpsVmRepository, MarketplaceRepository, NewVmCollection, NewVmPackage, PackageDetails, Vc4VmPackage, Vc4VmRepository, VcRepository, VmCollection, VmPackage, VmRepository

Constant Summary collapse

OS_ID_TABLE_REV =

Reverse lookup table for the OVF spec/CIM spec listing of operating system IDs For reference:

Go here dmtf.org/standards/cim

Then pick the latest schema, in this case 2.28, here dmtf.org/standards/cim/cim_schema_v2280

Then pick the .Zip archive of all Final MOF files., here dmtf.org/sites/default/files/cim/cim_schema_v2280/cim_schema_2.28.0Final-MOFs.zip

The OS list is in SystemCIM_OperatingSystem.mof, line 29.

sample usage: require “os_id_table.rb”

puts OS_ID_TABLE.value? “HPUX”

> true

puts OS_ID_TABLE.value? “arduino embedded”

> false

puts OS_ID_TABLE

> NextStep

puts OS_ID_TABLE_REV.value? 1

> true

puts OS_ID_TABLE_REV.value? 250

> false

puts OS_ID_TABLE_REV

> 36

Hash[
  "Unknown" => 0,
  "Other" => 1,
  "MACOS" => 2,
  "ATTUNIX" => 3,
  "DGUX" => 4, 
  "DECNT" => 5,
  "Tru64 UNIX" => 6,
  "OpenVMS" => 7,
  "HPUX" => 8,
  "AIX" => 9, 
  "MVS" => 10,
  "OS400" => 11,
  "OS/2" => 12,
  "JavaVM" => 13,
  "MSDOS" => 14, 
  "WIN3x" => 15,
  "WIN95" => 16,
  "WIN98" => 17,
  "WINNT" => 18,
  "WINCE" => 19, 
  "NCR3000" => 20,
  "NetWare" => 21,
  "OSF" => 22,
  "DC/OS" => 23, 
  "Reliant UNIX" => 24,
  "SCO UnixWare" => 25,
  "SCO OpenServer" => 26, 
  "Sequent" => 27,
  "IRIX" => 28,
  "Solaris" => 29, 
  "SunOS" => 30, 
  "U6000" => 31,
  "ASERIES" => 32,
  "HP NonStop OS" => 33,
  "HP NonStop OSS" => 34, 
  "BS2000" => 35,
  "LINUX" => 36,
  "Lynx" => 37,
  "XENIX" => 38,
  "VM" => 39, 
  "Interactive UNIX" => 40,
  "BSDUNIX" => 41,
  "FreeBSD" => 42, 
  "NetBSD" => 43,
  "GNU Hurd" => 44,
  "OS9" => 45,
  "MACH Kernel" => 46,
  "Inferno" => 47, 
  "QNX" => 48,
  "EPOC" => 49, 
  "IxWorks" => 50,
  "VxWorks" => 51, 
  "MiNT" => 52,
  "BeOS" => 53,
  "HP MPE" => 54,
  "NextStep" => 55,
  "PalmPilot" => 56, 
  "Rhapsody" => 57,
  "Windows 2000" => 58,
  "Dedicated" => 59, 
  "OS/390" => 60,
  "VSE" => 61,
  "TPF" => 62,
  "Windows (R) Me" => 63, 
  "Caldera Open UNIX" => 64,
  "OpenBSD" => 65,
  "Not Applicable" => 66, 
  "Windows XP" => 67,
  "z/OS" => 68,
  "Microsoft Windows Server 2003" => 69, 
  "Microsoft Windows Server 2003 64-Bit" => 70, 
  "Windows XP 64-Bit" => 71,
  "Windows XP Embedded" => 72, 
  "Windows Vista" => 73,
  "Windows Vista 64-Bit" => 74, 
  "Windows Embedded for Point of Service" => 75, 
  "Microsoft Windows Server 2008" => 76, 
  "Microsoft Windows Server 2008 64-Bit" => 77,
  "FreeBSD 64-Bit" => 78, 
  "RedHat Enterprise Linux" => 79, 
  "RedHat Enterprise Linux 64-Bit" => 80, 
  "Solaris 64-Bit" => 81,
  "SUSE" => 82,
  "SUSE 64-Bit" => 83,
  "SLES" => 84, 
  "SLES 64-Bit" => 85,
  "Novell OES" => 86,
  "Novell Linux Desktop" => 87, 
  "Sun Java Desktop System" => 88,
  "Mandriva" => 89, 
  "Mandriva 64-Bit" => 90, 
  "TurboLinux" => 91, 
  "TurboLinux 64-Bit" => 92, 
  "Ubuntu" => 93, 
  "Ubuntu 64-Bit" => 94, 
  "Debian" => 95, 
  "Debian 64-Bit" => 96, 
  "Linux 2.4.x" => 97, 
  "Linux 2.4.x 64-Bit" => 98, 
  "Linux 2.6.x" => 99, 
  "Linux 2.6.x 64-Bit" => 100, 
  "Linux 64-Bit" => 101, 
  "Other 64-Bit" => 102, 
  "Microsoft Windows Server 2008 R2" => 103, 
  "VMware ESXi" => 104, 
  "Microsoft Windows 7" => 105, 
  "CentOS 32-bit" => 106, 
  "CentOS 64-bit" => 107, 
  "Oracle Enterprise Linux 32-bit" => 108, 
  "Oracle Enterprise Linux 64-bit" => 109, 
  "eComStation 32-bitx" => 110
]
OS_ID_TABLE =
Hash[
  0 => "Unknown" ,
  1 => "Other" ,
  2 => "MACOS" ,
  3 => "ATTUNIX" ,
  4 => "DGUX" ,
  5 => "DECNT" ,
  6 => "Tru64 UNIX" ,
  7 => "OpenVMS" ,
  8 => "HPUX" ,
  9 => "AIX" ,
  10 => "MVS" ,
  11 => "OS400" ,
  12 => "OS/2" ,
  13 => "JavaVM" ,
  14 => "MSDOS" ,
  15 => "WIN3x" ,
  16 => "WIN95" ,
  17 => "WIN98" ,
  18 => "WINNT" ,
  19 => "WINCE" ,
  20 => "NCR3000" ,
  21 => "NetWare" ,
  22 => "OSF" ,
  23 => "DC/OS" ,
  24 => "Reliant UNIX" ,
  25 => "SCO UnixWare" ,
  26 => "SCO OpenServer" ,
  27 => "Sequent" ,
  28 => "IRIX" ,
  29 => "Solaris" ,
  30 => "SunOS" ,
  31 => "U6000" ,
  32 => "ASERIES" ,
  33 => "HP NonStop OS" ,
  34 => "HP NonStop OSS" ,
  35 => "BS2000" ,
  36 => "LINUX" ,
  37 => "Lynx" ,
  38 => "XENIX" ,
  39 => "VM" ,
  40 => "Interactive UNIX" ,
  41 => "BSDUNIX" ,
  42 => "FreeBSD" ,
  43 => "NetBSD" ,
  44 => "GNU Hurd" ,
  45 => "OS9" ,
  46 => "MACH Kernel" ,
  47 => "Inferno" ,
  48 => "QNX" ,
  49 => "EPOC" ,
  50 => "IxWorks" ,
  51 => "VxWorks" ,
  52 => "MiNT" ,
  53 => "BeOS" ,
  54 => "HP MPE" ,
  55 => "NextStep" ,
  56 => "PalmPilot" ,
  57 => "Rhapsody" ,
  58 => "Windows 2000" ,
  59 => "Dedicated" ,
  60 => "OS/390" ,
  61 => "VSE" ,
  62 => "TPF" ,
  63 => "Windows (R) Me" ,
  64 => "Caldera Open UNIX" ,
  65 => "OpenBSD" ,
  66 => "Not Applicable" ,
  67 => "Windows XP" ,
  68 => "z/OS" ,
  69 => "Microsoft Windows Server 2003" ,
  70 => "Microsoft Windows Server 2003 64-Bit" ,
  71 => "Windows XP 64-Bit" ,
  72 => "Windows XP Embedded" ,
  73 => "Windows Vista" ,
  74 => "Windows Vista 64-Bit" ,
  75 => "Windows Embedded for Point of Service" ,
  76 => "Microsoft Windows Server 2008" ,
  77 => "Microsoft Windows Server 2008 64-Bit" ,
  78 => "FreeBSD 64-Bit" ,
  79 => "RedHat Enterprise Linux" ,
  80 => "RedHat Enterprise Linux 64-Bit" ,
  81 => "Solaris 64-Bit" ,
  82 => "SUSE" ,
  83 => "SUSE 64-Bit" ,
  84 => "SLES" ,
  85 => "SLES 64-Bit" ,
  86 => "Novell OES" ,
  87 => "Novell Linux Desktop" ,
  88 => "Sun Java Desktop System" ,
  89 => "Mandriva" ,
  90 => "Mandriva 64-Bit" ,
  91 => "TurboLinux" ,
  92 => "TurboLinux 64-Bit" ,
  93 => "Ubuntu" ,
  94 => "Ubuntu 64-Bit" ,
  95 => "Debian" ,
  96 => "Debian 64-Bit" ,
  97 => "Linux 2.4.x" ,
  98 => "Linux 2.4.x 64-Bit" ,
  99 => "Linux 2.6.x" ,
  100 => "Linux 2.6.x 64-Bit" ,
  101 => "Linux 64-Bit" ,
  102 => "Other 64-Bit" ,
  103 => "Microsoft Windows Server 2008 R2" ,
  104 => "VMware ESXi" ,
  105 => "Microsoft Windows 7" ,
  106 => "CentOS 32-bit" ,
  107 => "CentOS 64-bit" ,
  108 => "Oracle Enterprise Linux 32-bit" ,
  109 => "Oracle Enterprise Linux 64-bit" ,
  110 => "eComStation 32-bitx" 
]