String () { SystemInfo si = new SystemInfo(); HardwareAbstractionLayer hal = si.getHardware(); OperatingSystem os = si.getOperatingSystem(); info.add("=====OS SUMMARY=====\n"); printOperatingSystem(os); printComputerSystem(hal.getComputerSystem()); info.add("\n=====CPU SUMMARY=====\n"); printProcessor(hal.getProcessor()); printCpu(hal.getProcessor()); info.add("\n=====MEMORY SUMMARY=====\n"); printMemory(hal.getMemory()); info.add("\n=====PROCESSES SUMMARY=====\n"); printProcesses(os, hal.getMemory()); info.add("\n=====FILESYSTEM SUMMARY=====\n"); printDisks(hal.getDiskStores()); printLVgroups(hal.getLogicalVolumeGroups()); printFileSystem(os.getFileSystem()); info.add("\n=====NETWORK SUMMARY=====\n"); printNetworkInterfaces(hal.getNetworkIFs()); printNetworkParameters(os.getNetworkParams()); info.add("\n=====GRAPHICS SUMMARY=====\n"); printDisplays(hal.getDisplays()); printGraphicsCards(hal.getGraphicsCards()); StringBuilder output = new StringBuilder(); for (String s : info) { output.append(s); if (s != null && !s.endsWith("\n")) { output.append('\n'); } } return output.toString(); }