From 4e27c142d0a9335a937de0f3efc41bb33a4de594 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 21 Jul 2005 03:06:14 +0000 Subject: [PATCH] print filesystem and netif names --- bindings/java/src/net/hyperic/sigar/cmd/SysInfo.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bindings/java/src/net/hyperic/sigar/cmd/SysInfo.java b/bindings/java/src/net/hyperic/sigar/cmd/SysInfo.java index 0431ec74..69caf623 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/SysInfo.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/SysInfo.java @@ -1,5 +1,7 @@ package net.hyperic.sigar.cmd; +import java.util.Arrays; + import net.hyperic.sigar.SigarException; /** @@ -38,6 +40,14 @@ public class SysInfo extends SigarCommandBase { new Free(this.shell).output(args); println(""); + println("File Systems........." + + Arrays.asList(this.sigar.getFileSystemList())); + println(""); + + println("Network Interfaces..." + + Arrays.asList(this.sigar.getNetInterfaceList())); + println(""); + //system resource limits println("System resource limits:"); new Ulimit(this.shell).output(args);