[agent] - start test get system info

This commit is contained in:
IceDerce
2022-11-28 14:25:02 +08:00
parent 5f793409a5
commit b24ea971b3

View File

@@ -32,7 +32,16 @@ public class collectSystemInfo {
Properties props =System.getProperties(); Properties props =System.getProperties();
System.out.println("props = " + props);
InetAddress ip = InetAddress.getLocalHost(); InetAddress ip = InetAddress.getLocalHost();
System.out.println("ip = " + ip);
System.out.println("environment = " + environment);
String localName = ip.getHostName(); String localName = ip.getHostName();
String osName = System.getProperty("os.name"); String osName = System.getProperty("os.name");
String userName = System.getProperty("user.name"); String userName = System.getProperty("user.name");