From b24ea971b3e0af8342643a17bcc6f84814a92838 Mon Sep 17 00:00:00 2001 From: IceDerce Date: Mon, 28 Nov 2022 14:25:02 +0800 Subject: [PATCH] [agent] - start test get system info --- .../io/wdd/agent/initial/bootup/collectSystemInfo.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/agent/src/main/java/io/wdd/agent/initial/bootup/collectSystemInfo.java b/agent/src/main/java/io/wdd/agent/initial/bootup/collectSystemInfo.java index 65f29e4..4e3cd90 100644 --- a/agent/src/main/java/io/wdd/agent/initial/bootup/collectSystemInfo.java +++ b/agent/src/main/java/io/wdd/agent/initial/bootup/collectSystemInfo.java @@ -32,7 +32,16 @@ public class collectSystemInfo { Properties props =System.getProperties(); + System.out.println("props = " + props); + InetAddress ip = InetAddress.getLocalHost(); + + + System.out.println("ip = " + ip); + + + System.out.println("environment = " + environment); + String localName = ip.getHostName(); String osName = System.getProperty("os.name"); String userName = System.getProperty("user.name");