protected override void ProcessRecord() { if (isInitialized()) { iControl.SystemSystemInformation sysInfo = GetiControl().SystemSystemInfo.get_system_information(); SystemInformation si = new SystemInformation(); si.AnnunciatorBoardPartRevision = sysInfo.annunciator_board_part_revision; si.AnnunciatorBoardSerial = sysInfo.annunciator_board_serial; si.ChassisSerial = sysInfo.chassis_serial; si.HostBoardPartRevision = sysInfo.host_board_part_revision; si.HostBoardSerial = sysInfo.host_board_serial; si.Hostname = sysInfo.host_name; si.OSMachine = sysInfo.os_machine; si.OSRelease = sysInfo.os_release; si.OSVersion = sysInfo.os_version; si.Platform = sysInfo.platform; si.ProductCategory = sysInfo.product_category; si.SwitchBoardPartRevision = sysInfo.switch_board_part_revision; si.SwitchBoardSerial = sysInfo.switch_board_serial; si.SystemName = sysInfo.system_name; WriteObject(si); } else { handleNotInitialized(); } }
private void linkLabel_Guess_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { iControl.SystemSystemInformation sysInfo = Clients.SystemInfo.get_system_information(); //sysInfo.platform (D63) //sysInfo.product_category (6400) String speed = "1600.000"; switch (sysInfo.product_category) { case "1500": speed = "2500.000"; // 2.5 Ghz Celeron break; case "3400": speed = "2800.000"; // 2.8 Ghz Pentium IV break; case "3410": speed = "2800.000"; // 2.8 Ghz Pentium IV break; case "4100": speed = "1600.000"; // Dual 1.6 Ghz Opteron break; case "6400": speed = "1600.000"; // Dual 1.6 Ghz Opteron break; case "6800": speed = "2400.000"; // Dual 2.4 Ghz Opteron break; case "8400": speed = "2600.000"; // Dual 2.6 Ghz Opteron break; case "8800": speed = "2600.000"; // 2x Dual 2.6 Ghz Opteron break; } MessageBox.Show("Your BIG-IP identified itself as being a platform \"" + sysInfo.platform + "-" + sysInfo.product_category + "\". We have guessed the CPU speed to be " + speed.ToString() + " MHz.\nTo verify the actual value, run \"cat /proc/cpuinfo\" from the BIG-IP shell."); }