From 2b3dd8a4d8f4131692fa347c005ba647fac73f62 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Thu, 18 Jan 2024 16:45:13 +0800 Subject: [PATCH] [ Agent ] [ init ] - ifx init process to use status module --- agent-go/AgentInitialization.go | 4 +- agent-go/executor/InitFunction.go | 64 +- agent-go/status/tmp/AgentInfo.json | 1283 ++++++++++++++++++++++++++++ 3 files changed, 1318 insertions(+), 33 deletions(-) create mode 100644 agent-go/status/tmp/AgentInfo.json diff --git a/agent-go/AgentInitialization.go b/agent-go/AgentInitialization.go index 3cc8175..d490402 100644 --- a/agent-go/AgentInitialization.go +++ b/agent-go/AgentInitialization.go @@ -227,14 +227,14 @@ func UniformAgentServerInfo(agentServerInfo *register.AgentServerInfo) { func BuildAgentOsOperator(agentServerInfo *register.AgentServerInfo) { - // 2023年8月4日 passthrough some key information + // 2023年8月4日 pass through some key information ossOfflinePrefix := g.G.AgentConfig.GetString("octopus.agent.executor.ossOfflinePrefix") if !strings.HasSuffix(ossOfflinePrefix, "/") { ossOfflinePrefix += "/" } // call the init exec function - agentOsOperator := executor.BuildAgentOsOperator(agentServerInfo.OSInfo, ossOfflinePrefix) + agentOsOperator := executor.BuildAgentOsOperator(ossOfflinePrefix) // assign the agentServerInfo agentOsOperator.AgentServerInfo = agentServerInfo diff --git a/agent-go/executor/InitFunction.go b/agent-go/executor/InitFunction.go index 847d39d..0082f5a 100644 --- a/agent-go/executor/InitFunction.go +++ b/agent-go/executor/InitFunction.go @@ -6,7 +6,7 @@ import ( "strings" ) -func BuildAgentOsOperator(osInfo string, ossOfflinePrefix string) *AgentOsOperator { +func BuildAgentOsOperator(ossOfflinePrefix string) *AgentOsOperator { AgentOsOperatorCache = &AgentOsOperator{ InstallCommandPrefix: []string{ @@ -15,6 +15,7 @@ func BuildAgentOsOperator(osInfo string, ossOfflinePrefix string) *AgentOsOperat RemoveCommandPrefix: []string{"apt", "remove", "-y"}, CanAccessInternet: true, IsOsTypeUbuntu: true, + IsOsTypeCentOS: false, IsAgentInnerWall: false, AgentArch: "amd64", AgentOSReleaseCode: "focal", @@ -32,7 +33,7 @@ func BuildAgentOsOperator(osInfo string, ossOfflinePrefix string) *AgentOsOperat } func detectByAgentStatusInfo(os *AgentOsOperator) { - agentMetric := status.ReportAgentMetric() + agentMetric := status.ReportAgentInfo() if strings.Contains(agentMetric.HostInfo.PlatformFamily, "centos") { // centos @@ -48,6 +49,7 @@ func detectByAgentStatusInfo(os *AgentOsOperator) { } else if strings.Contains(agentMetric.HostInfo.PlatformFamily, "debian") { // ubuntu os.IsOsTypeUbuntu = true + os.IsOsTypeCentOS = false os.RemoveCommandPrefix = []string{"apt", "remove", "-y"} os.InstallCommandPrefix = []string{ "apt-get", "install", "--allow-downgrades", "-y", @@ -99,6 +101,35 @@ func judgeAgentCpuArchByKernelArch(kernelArch string) string { } } +func detectByInternet(os *AgentOsOperator) { + + outsideTestUrl := "www.google.com" + innerTestUrl := "www.baidu.com" + + testInternetCommand := []string{ + "curl", + "-o", + "/dev/null", + "-m", + "5", + "-s", + } + + if PureResultSingleExecute(append(testInternetCommand, outsideTestUrl)) { + os.CanAccessInternet = true + os.IsAgentInnerWall = false + } else if PureResultSingleExecute(append(testInternetCommand, innerTestUrl)) { + os.CanAccessInternet = true + os.IsAgentInnerWall = true + } else { + os.CanAccessInternet = false + os.IsAgentInnerWall = true + } + + log.InfoF("[Agent Network Status] - Can Access Internet => %s Inner CN => %s", strconv.FormatBool(os.CanAccessInternet), strconv.FormatBool(os.IsAgentInnerWall)) + +} + func detectByOsType(os *AgentOsOperator, osInfo string) { ubuntuOsReleaseCode := [][]string{ @@ -152,32 +183,3 @@ func detectByOsType(os *AgentOsOperator, osInfo string) { } } - -func detectByInternet(os *AgentOsOperator) { - - outsideTestUrl := "www.google.com" - innerTestUrl := "www.baidu.com" - - testInternetCommand := []string{ - "curl", - "-o", - "/dev/null", - "-m", - "5", - "-s", - } - - if PureResultSingleExecute(append(testInternetCommand, outsideTestUrl)) { - os.CanAccessInternet = true - os.IsAgentInnerWall = false - } else if PureResultSingleExecute(append(testInternetCommand, innerTestUrl)) { - os.CanAccessInternet = true - os.IsAgentInnerWall = true - } else { - os.CanAccessInternet = false - os.IsAgentInnerWall = true - } - - log.InfoF("[Agent Network Status] - Can Access Internet => %s Inner CN => %s", strconv.FormatBool(os.CanAccessInternet), strconv.FormatBool(os.IsAgentInnerWall)) - -} diff --git a/agent-go/status/tmp/AgentInfo.json b/agent-go/status/tmp/AgentInfo.json new file mode 100644 index 0000000..ea6eb92 --- /dev/null +++ b/agent-go/status/tmp/AgentInfo.json @@ -0,0 +1,1283 @@ +{ + "CPUInfo": { + "NumCores": 8, + "CPUPercent": 29.49367088609262, + "CPULoads": { + "load1": 3, + "load5": 2.2, + "load15": 1.88 + }, + "CPUInfo": [ + { + "cpu": 0, + "vendorId": "GenuineIntel", + "family": "6", + "model": "142", + "stepping": 12, + "physicalId": "0", + "coreId": "0", + "cores": 1, + "modelName": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "mhz": 4600, + "cacheSize": 8192, + "flags": [ + "fpu", + "vme", + "de", + "pse", + "tsc", + "msr", + "pae", + "mce", + "cx8", + "apic", + "sep", + "mtrr", + "pge", + "mca", + "cmov", + "pat", + "pse36", + "clflush", + "dts", + "acpi", + "mmx", + "fxsr", + "sse", + "sse2", + "ss", + "ht", + "tm", + "pbe", + "syscall", + "nx", + "pdpe1gb", + "rdtscp", + "lm", + "constant_tsc", + "art", + "arch_perfmon", + "pebs", + "bts", + "rep_good", + "nopl", + "xtopology", + "nonstop_tsc", + "cpuid", + "aperfmperf", + "pni", + "pclmulqdq", + "dtes64", + "monitor", + "ds_cpl", + "vmx", + "est", + "tm2", + "ssse3", + "sdbg", + "fma", + "cx16", + "xtpr", + "pdcm", + "pcid", + "sse4_1", + "sse4_2", + "x2apic", + "movbe", + "popcnt", + "tsc_deadline_timer", + "aes", + "xsave", + "avx", + "f16c", + "rdrand", + "lahf_lm", + "abm", + "3dnowprefetch", + "cpuid_fault", + "epb", + "invpcid_single", + "ssbd", + "ibrs", + "ibpb", + "stibp", + "ibrs_enhanced", + "tpr_shadow", + "vnmi", + "flexpriority", + "ept", + "vpid", + "ept_ad", + "fsgsbase", + "tsc_adjust", + "bmi1", + "avx2", + "smep", + "bmi2", + "erms", + "invpcid", + "mpx", + "rdseed", + "adx", + "smap", + "clflushopt", + "intel_pt", + "xsaveopt", + "xsavec", + "xgetbv1", + "xsaves", + "dtherm", + "ida", + "arat", + "pln", + "pts", + "hwp", + "hwp_notify", + "hwp_act_window", + "hwp_epp", + "md_clear", + "flush_l1d", + "arch_capabilities" + ], + "microcode": "0xf8" + }, + { + "cpu": 1, + "vendorId": "GenuineIntel", + "family": "6", + "model": "142", + "stepping": 12, + "physicalId": "0", + "coreId": "1", + "cores": 1, + "modelName": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "mhz": 4600, + "cacheSize": 8192, + "flags": [ + "fpu", + "vme", + "de", + "pse", + "tsc", + "msr", + "pae", + "mce", + "cx8", + "apic", + "sep", + "mtrr", + "pge", + "mca", + "cmov", + "pat", + "pse36", + "clflush", + "dts", + "acpi", + "mmx", + "fxsr", + "sse", + "sse2", + "ss", + "ht", + "tm", + "pbe", + "syscall", + "nx", + "pdpe1gb", + "rdtscp", + "lm", + "constant_tsc", + "art", + "arch_perfmon", + "pebs", + "bts", + "rep_good", + "nopl", + "xtopology", + "nonstop_tsc", + "cpuid", + "aperfmperf", + "pni", + "pclmulqdq", + "dtes64", + "monitor", + "ds_cpl", + "vmx", + "est", + "tm2", + "ssse3", + "sdbg", + "fma", + "cx16", + "xtpr", + "pdcm", + "pcid", + "sse4_1", + "sse4_2", + "x2apic", + "movbe", + "popcnt", + "tsc_deadline_timer", + "aes", + "xsave", + "avx", + "f16c", + "rdrand", + "lahf_lm", + "abm", + "3dnowprefetch", + "cpuid_fault", + "epb", + "invpcid_single", + "ssbd", + "ibrs", + "ibpb", + "stibp", + "ibrs_enhanced", + "tpr_shadow", + "vnmi", + "flexpriority", + "ept", + "vpid", + "ept_ad", + "fsgsbase", + "tsc_adjust", + "bmi1", + "avx2", + "smep", + "bmi2", + "erms", + "invpcid", + "mpx", + "rdseed", + "adx", + "smap", + "clflushopt", + "intel_pt", + "xsaveopt", + "xsavec", + "xgetbv1", + "xsaves", + "dtherm", + "ida", + "arat", + "pln", + "pts", + "hwp", + "hwp_notify", + "hwp_act_window", + "hwp_epp", + "md_clear", + "flush_l1d", + "arch_capabilities" + ], + "microcode": "0xf8" + }, + { + "cpu": 2, + "vendorId": "GenuineIntel", + "family": "6", + "model": "142", + "stepping": 12, + "physicalId": "0", + "coreId": "2", + "cores": 1, + "modelName": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "mhz": 4600, + "cacheSize": 8192, + "flags": [ + "fpu", + "vme", + "de", + "pse", + "tsc", + "msr", + "pae", + "mce", + "cx8", + "apic", + "sep", + "mtrr", + "pge", + "mca", + "cmov", + "pat", + "pse36", + "clflush", + "dts", + "acpi", + "mmx", + "fxsr", + "sse", + "sse2", + "ss", + "ht", + "tm", + "pbe", + "syscall", + "nx", + "pdpe1gb", + "rdtscp", + "lm", + "constant_tsc", + "art", + "arch_perfmon", + "pebs", + "bts", + "rep_good", + "nopl", + "xtopology", + "nonstop_tsc", + "cpuid", + "aperfmperf", + "pni", + "pclmulqdq", + "dtes64", + "monitor", + "ds_cpl", + "vmx", + "est", + "tm2", + "ssse3", + "sdbg", + "fma", + "cx16", + "xtpr", + "pdcm", + "pcid", + "sse4_1", + "sse4_2", + "x2apic", + "movbe", + "popcnt", + "tsc_deadline_timer", + "aes", + "xsave", + "avx", + "f16c", + "rdrand", + "lahf_lm", + "abm", + "3dnowprefetch", + "cpuid_fault", + "epb", + "invpcid_single", + "ssbd", + "ibrs", + "ibpb", + "stibp", + "ibrs_enhanced", + "tpr_shadow", + "vnmi", + "flexpriority", + "ept", + "vpid", + "ept_ad", + "fsgsbase", + "tsc_adjust", + "bmi1", + "avx2", + "smep", + "bmi2", + "erms", + "invpcid", + "mpx", + "rdseed", + "adx", + "smap", + "clflushopt", + "intel_pt", + "xsaveopt", + "xsavec", + "xgetbv1", + "xsaves", + "dtherm", + "ida", + "arat", + "pln", + "pts", + "hwp", + "hwp_notify", + "hwp_act_window", + "hwp_epp", + "md_clear", + "flush_l1d", + "arch_capabilities" + ], + "microcode": "0xf8" + }, + { + "cpu": 3, + "vendorId": "GenuineIntel", + "family": "6", + "model": "142", + "stepping": 12, + "physicalId": "0", + "coreId": "3", + "cores": 1, + "modelName": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "mhz": 4600, + "cacheSize": 8192, + "flags": [ + "fpu", + "vme", + "de", + "pse", + "tsc", + "msr", + "pae", + "mce", + "cx8", + "apic", + "sep", + "mtrr", + "pge", + "mca", + "cmov", + "pat", + "pse36", + "clflush", + "dts", + "acpi", + "mmx", + "fxsr", + "sse", + "sse2", + "ss", + "ht", + "tm", + "pbe", + "syscall", + "nx", + "pdpe1gb", + "rdtscp", + "lm", + "constant_tsc", + "art", + "arch_perfmon", + "pebs", + "bts", + "rep_good", + "nopl", + "xtopology", + "nonstop_tsc", + "cpuid", + "aperfmperf", + "pni", + "pclmulqdq", + "dtes64", + "monitor", + "ds_cpl", + "vmx", + "est", + "tm2", + "ssse3", + "sdbg", + "fma", + "cx16", + "xtpr", + "pdcm", + "pcid", + "sse4_1", + "sse4_2", + "x2apic", + "movbe", + "popcnt", + "tsc_deadline_timer", + "aes", + "xsave", + "avx", + "f16c", + "rdrand", + "lahf_lm", + "abm", + "3dnowprefetch", + "cpuid_fault", + "epb", + "invpcid_single", + "ssbd", + "ibrs", + "ibpb", + "stibp", + "ibrs_enhanced", + "tpr_shadow", + "vnmi", + "flexpriority", + "ept", + "vpid", + "ept_ad", + "fsgsbase", + "tsc_adjust", + "bmi1", + "avx2", + "smep", + "bmi2", + "erms", + "invpcid", + "mpx", + "rdseed", + "adx", + "smap", + "clflushopt", + "intel_pt", + "xsaveopt", + "xsavec", + "xgetbv1", + "xsaves", + "dtherm", + "ida", + "arat", + "pln", + "pts", + "hwp", + "hwp_notify", + "hwp_act_window", + "hwp_epp", + "md_clear", + "flush_l1d", + "arch_capabilities" + ], + "microcode": "0xf8" + }, + { + "cpu": 4, + "vendorId": "GenuineIntel", + "family": "6", + "model": "142", + "stepping": 12, + "physicalId": "0", + "coreId": "0", + "cores": 1, + "modelName": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "mhz": 4600, + "cacheSize": 8192, + "flags": [ + "fpu", + "vme", + "de", + "pse", + "tsc", + "msr", + "pae", + "mce", + "cx8", + "apic", + "sep", + "mtrr", + "pge", + "mca", + "cmov", + "pat", + "pse36", + "clflush", + "dts", + "acpi", + "mmx", + "fxsr", + "sse", + "sse2", + "ss", + "ht", + "tm", + "pbe", + "syscall", + "nx", + "pdpe1gb", + "rdtscp", + "lm", + "constant_tsc", + "art", + "arch_perfmon", + "pebs", + "bts", + "rep_good", + "nopl", + "xtopology", + "nonstop_tsc", + "cpuid", + "aperfmperf", + "pni", + "pclmulqdq", + "dtes64", + "monitor", + "ds_cpl", + "vmx", + "est", + "tm2", + "ssse3", + "sdbg", + "fma", + "cx16", + "xtpr", + "pdcm", + "pcid", + "sse4_1", + "sse4_2", + "x2apic", + "movbe", + "popcnt", + "tsc_deadline_timer", + "aes", + "xsave", + "avx", + "f16c", + "rdrand", + "lahf_lm", + "abm", + "3dnowprefetch", + "cpuid_fault", + "epb", + "invpcid_single", + "ssbd", + "ibrs", + "ibpb", + "stibp", + "ibrs_enhanced", + "tpr_shadow", + "vnmi", + "flexpriority", + "ept", + "vpid", + "ept_ad", + "fsgsbase", + "tsc_adjust", + "bmi1", + "avx2", + "smep", + "bmi2", + "erms", + "invpcid", + "mpx", + "rdseed", + "adx", + "smap", + "clflushopt", + "intel_pt", + "xsaveopt", + "xsavec", + "xgetbv1", + "xsaves", + "dtherm", + "ida", + "arat", + "pln", + "pts", + "hwp", + "hwp_notify", + "hwp_act_window", + "hwp_epp", + "md_clear", + "flush_l1d", + "arch_capabilities" + ], + "microcode": "0xf8" + }, + { + "cpu": 5, + "vendorId": "GenuineIntel", + "family": "6", + "model": "142", + "stepping": 12, + "physicalId": "0", + "coreId": "1", + "cores": 1, + "modelName": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "mhz": 4600, + "cacheSize": 8192, + "flags": [ + "fpu", + "vme", + "de", + "pse", + "tsc", + "msr", + "pae", + "mce", + "cx8", + "apic", + "sep", + "mtrr", + "pge", + "mca", + "cmov", + "pat", + "pse36", + "clflush", + "dts", + "acpi", + "mmx", + "fxsr", + "sse", + "sse2", + "ss", + "ht", + "tm", + "pbe", + "syscall", + "nx", + "pdpe1gb", + "rdtscp", + "lm", + "constant_tsc", + "art", + "arch_perfmon", + "pebs", + "bts", + "rep_good", + "nopl", + "xtopology", + "nonstop_tsc", + "cpuid", + "aperfmperf", + "pni", + "pclmulqdq", + "dtes64", + "monitor", + "ds_cpl", + "vmx", + "est", + "tm2", + "ssse3", + "sdbg", + "fma", + "cx16", + "xtpr", + "pdcm", + "pcid", + "sse4_1", + "sse4_2", + "x2apic", + "movbe", + "popcnt", + "tsc_deadline_timer", + "aes", + "xsave", + "avx", + "f16c", + "rdrand", + "lahf_lm", + "abm", + "3dnowprefetch", + "cpuid_fault", + "epb", + "invpcid_single", + "ssbd", + "ibrs", + "ibpb", + "stibp", + "ibrs_enhanced", + "tpr_shadow", + "vnmi", + "flexpriority", + "ept", + "vpid", + "ept_ad", + "fsgsbase", + "tsc_adjust", + "bmi1", + "avx2", + "smep", + "bmi2", + "erms", + "invpcid", + "mpx", + "rdseed", + "adx", + "smap", + "clflushopt", + "intel_pt", + "xsaveopt", + "xsavec", + "xgetbv1", + "xsaves", + "dtherm", + "ida", + "arat", + "pln", + "pts", + "hwp", + "hwp_notify", + "hwp_act_window", + "hwp_epp", + "md_clear", + "flush_l1d", + "arch_capabilities" + ], + "microcode": "0xf8" + }, + { + "cpu": 6, + "vendorId": "GenuineIntel", + "family": "6", + "model": "142", + "stepping": 12, + "physicalId": "0", + "coreId": "2", + "cores": 1, + "modelName": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "mhz": 4600, + "cacheSize": 8192, + "flags": [ + "fpu", + "vme", + "de", + "pse", + "tsc", + "msr", + "pae", + "mce", + "cx8", + "apic", + "sep", + "mtrr", + "pge", + "mca", + "cmov", + "pat", + "pse36", + "clflush", + "dts", + "acpi", + "mmx", + "fxsr", + "sse", + "sse2", + "ss", + "ht", + "tm", + "pbe", + "syscall", + "nx", + "pdpe1gb", + "rdtscp", + "lm", + "constant_tsc", + "art", + "arch_perfmon", + "pebs", + "bts", + "rep_good", + "nopl", + "xtopology", + "nonstop_tsc", + "cpuid", + "aperfmperf", + "pni", + "pclmulqdq", + "dtes64", + "monitor", + "ds_cpl", + "vmx", + "est", + "tm2", + "ssse3", + "sdbg", + "fma", + "cx16", + "xtpr", + "pdcm", + "pcid", + "sse4_1", + "sse4_2", + "x2apic", + "movbe", + "popcnt", + "tsc_deadline_timer", + "aes", + "xsave", + "avx", + "f16c", + "rdrand", + "lahf_lm", + "abm", + "3dnowprefetch", + "cpuid_fault", + "epb", + "invpcid_single", + "ssbd", + "ibrs", + "ibpb", + "stibp", + "ibrs_enhanced", + "tpr_shadow", + "vnmi", + "flexpriority", + "ept", + "vpid", + "ept_ad", + "fsgsbase", + "tsc_adjust", + "bmi1", + "avx2", + "smep", + "bmi2", + "erms", + "invpcid", + "mpx", + "rdseed", + "adx", + "smap", + "clflushopt", + "intel_pt", + "xsaveopt", + "xsavec", + "xgetbv1", + "xsaves", + "dtherm", + "ida", + "arat", + "pln", + "pts", + "hwp", + "hwp_notify", + "hwp_act_window", + "hwp_epp", + "md_clear", + "flush_l1d", + "arch_capabilities" + ], + "microcode": "0xf8" + }, + { + "cpu": 7, + "vendorId": "GenuineIntel", + "family": "6", + "model": "142", + "stepping": 12, + "physicalId": "0", + "coreId": "3", + "cores": 1, + "modelName": "Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz", + "mhz": 4600, + "cacheSize": 8192, + "flags": [ + "fpu", + "vme", + "de", + "pse", + "tsc", + "msr", + "pae", + "mce", + "cx8", + "apic", + "sep", + "mtrr", + "pge", + "mca", + "cmov", + "pat", + "pse36", + "clflush", + "dts", + "acpi", + "mmx", + "fxsr", + "sse", + "sse2", + "ss", + "ht", + "tm", + "pbe", + "syscall", + "nx", + "pdpe1gb", + "rdtscp", + "lm", + "constant_tsc", + "art", + "arch_perfmon", + "pebs", + "bts", + "rep_good", + "nopl", + "xtopology", + "nonstop_tsc", + "cpuid", + "aperfmperf", + "pni", + "pclmulqdq", + "dtes64", + "monitor", + "ds_cpl", + "vmx", + "est", + "tm2", + "ssse3", + "sdbg", + "fma", + "cx16", + "xtpr", + "pdcm", + "pcid", + "sse4_1", + "sse4_2", + "x2apic", + "movbe", + "popcnt", + "tsc_deadline_timer", + "aes", + "xsave", + "avx", + "f16c", + "rdrand", + "lahf_lm", + "abm", + "3dnowprefetch", + "cpuid_fault", + "epb", + "invpcid_single", + "ssbd", + "ibrs", + "ibpb", + "stibp", + "ibrs_enhanced", + "tpr_shadow", + "vnmi", + "flexpriority", + "ept", + "vpid", + "ept_ad", + "fsgsbase", + "tsc_adjust", + "bmi1", + "avx2", + "smep", + "bmi2", + "erms", + "invpcid", + "mpx", + "rdseed", + "adx", + "smap", + "clflushopt", + "intel_pt", + "xsaveopt", + "xsavec", + "xgetbv1", + "xsaves", + "dtherm", + "ida", + "arat", + "pln", + "pts", + "hwp", + "hwp_notify", + "hwp_act_window", + "hwp_epp", + "md_clear", + "flush_l1d", + "arch_capabilities" + ], + "microcode": "0xf8" + } + ] + }, + "MemoryInfo": { + "TotalMemory": 16604577792, + "AvailableMemory": 10666369024, + "UsedMemory": 5073514496, + "usedPercent": 30.554914190256575, + "free": 6539452416, + "buffers": 359108608, + "cached": 4632502272, + "writeBack": 0, + "dirty": 704512, + "writeBackTmp": 0, + "shared": 515035136, + "slab": 579002368, + "sreclaimable": 423510016, + "sunreclaim": 155492352, + "pageTables": 43442176, + "swapCached": 0, + "commitLimit": 10449768448, + "committedAS": 14700756992, + "highTotal": 0, + "highFree": 0, + "lowTotal": 0, + "lowFree": 0, + "swapTotal": 2147479552, + "swapFree": 2147479552, + "mapped": 1443708928, + "vmallocTotal": 35184372087808, + "vmallocUsed": 53878784, + "vmallocChunk": 0, + "hugePagesTotal": 0, + "hugePagesFree": 0, + "hugePagesRsvd": 0, + "hugePagesSurp": 0, + "hugePageSize": 2097152 + }, + "NetworkInfo": [ + { + "name": "lo", + "mtu": 65536, + "hardwareAddr": "", + "flags": [ + "up", + "loopback" + ], + "internal_ip_v4": [ + "127.0.0.1/8" + ], + "internal_ip_v6": [ + "::1/128" + ] + }, + { + "name": "eno2", + "mtu": 1500, + "hardwareAddr": "a4:bb:6d:f3:47:76", + "flags": [ + "up", + "broadcast", + "multicast" + ], + "internal_ip_v4": [ + "10.250.0.100/24" + ], + "internal_ip_v6": [ + "fe80::3a2:cecd:7318:8268/64" + ] + } + ], + "DiskInfo": [ + { + "device": "/dev/nvme0n1p7", + "mountpoint": "/", + "fstype": "ext4", + "total": 153682100224, + "free": 54654578688, + "used": 91146375168, + "usedPercent": 62.5142516269273 + }, + { + "device": "/dev/nvme0n1p1", + "mountpoint": "/boot/efi", + "fstype": "vfat", + "total": 520093696, + "free": 426680320, + "used": 93413376, + "usedPercent": 17.96087449596774 + } + ], + "HostInfo": { + "hostname": "wdd-Lap-Office", + "uptime": 5989, + "bootTime": 1705560863, + "procs": 361, + "os": "linux", + "platform": "ubuntu", + "platformFamily": "debian", + "platformVersion": "20.04", + "kernelVersion": "5.15.0-91-generic", + "kernelArch": "x86_64", + "virtualizationSystem": "kvm", + "virtualizationRole": "host", + "hostId": "4c4c4544-004e-4a10-8036-b7c04f4e3533" + }, + "DockerInfo": { + "DockerStats": [ + { + "containerID": "b256661bcab1626be7fba15c487db61082de68dca473e145f66db7b06f212e4a", + "name": "octopus-redis-1", + "image": "redis/redis-stack:6.2.6-v10", + "status": "Up 2 hours", + "running": true + }, + { + "containerID": "04334154b90fabb2e5f595d4746641a75deb85b00848791492bc9742e8119da1", + "name": "octopus-rabbitmq-1", + "image": "docker.io/bitnami/rabbitmq:3.11.10-debian-11-r0", + "status": "Up 2 hours", + "running": true + }, + { + "containerID": "48c759747ab0bc24c4411fcfd59f1f33a50e71986eab582cb92c3cfaa2c38b6b", + "name": "octopus-mysql-1", + "image": "bitnami/mysql:8.0.32-debian-11-r12", + "status": "Up 2 hours (unhealthy)", + "running": true + }, + { + "containerID": "b1016d88ba47aacf1cccbbf90d6ac04b0ccdfbf6de15ca31303d5af8c7c1d897", + "name": "harbor-jobservice", + "image": "goharbor/harbor-jobservice:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "0d2321d74fe8c7261a6a368d8ca7d0f6b3029eff16bdf490bdfd7c51d81f7ac1", + "name": "nginx", + "image": "goharbor/nginx-photon:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "9b6ad191743d6a0422a62bfbf7fcc3477645f296df88479ff584a3032b7a3991", + "name": "harbor-core", + "image": "goharbor/harbor-core:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "84c452be11a3b51bf82ccdd3b5e92044d230929f34141a3782fcc8b53e549d80", + "name": "harbor-db", + "image": "goharbor/harbor-db:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "f5f1da78ea2ac4141571d426f7457cb9d16befd69443d353dbede27b085326fb", + "name": "registryctl", + "image": "goharbor/harbor-registryctl:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "b2e97123f38b3c95ec58f4b494cc1f261cbef184834ec0584e50377ae3923bb0", + "name": "registry", + "image": "goharbor/registry-photon:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "1ba12ec625c13be6ecb052330443d6748b0ab9e692302397fadfad085768906f", + "name": "harbor-portal", + "image": "goharbor/harbor-portal:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "250afc54541ddc7318dc7ff3a62013ca1da538de089e676b1d44c1e487742e0d", + "name": "redis", + "image": "goharbor/redis-photon:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "a2724d367906efd2c6277d405c5d3da00a80a206c4f9b10aa9a867b735c441f9", + "name": "harbor-log", + "image": "goharbor/harbor-log:v2.9.0", + "status": "Up 2 hours (healthy)", + "running": true + }, + { + "containerID": "ea12324df45a77f1f073e88f11de7eae0a95ce5a32c0c30992cdf689d705a842", + "name": "wdd-minio1-1", + "image": "bitnami/minio:2022.5.4", + "status": "Up 2 hours", + "running": true + }, + { + "containerID": "d2df045ccb00b8c7ad14635556217cec743be4d302091ff1bfaa1039277e6da6", + "name": "root-minio1-1", + "image": "bitnami/minio:2022.5.4", + "status": "Exited (1) 5 months ago", + "running": false + } + ] + } +} +