jjb: print hardware details
[lttng-ci.git] / scripts / common / print.sh
index e13ddd0e43ae667418980d53df2c880b9aa372d3..e101a9c24df3c088cd4fa3a3d817a319a08fd4ae 100755 (executable)
@@ -12,6 +12,19 @@ print_blue() {
        echo -e "${COLOR_BLUE}$1${COLOR_NONE}"
 }
 
+print_hardware() {
+    if command -v lscpu >/dev/null 2>&1; then
+        print_blue "CPU Details"
+        lscpu
+    fi
+
+    print_blue "Memory Details"
+    free
+
+    print_blue "Storage Details"
+    df -H -T
+}
+
 print_os() {
     set +ex
 
This page took 0.022611 seconds and 4 git commands to generate.