print filesystem and netif names

This commit is contained in:
Doug MacEachern 2005-07-21 03:06:14 +00:00
parent fd5d821940
commit 4e27c142d0
1 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package net.hyperic.sigar.cmd; package net.hyperic.sigar.cmd;
import java.util.Arrays;
import net.hyperic.sigar.SigarException; import net.hyperic.sigar.SigarException;
/** /**
@ -38,6 +40,14 @@ public class SysInfo extends SigarCommandBase {
new Free(this.shell).output(args); new Free(this.shell).output(args);
println(""); println("");
println("File Systems........." +
Arrays.asList(this.sigar.getFileSystemList()));
println("");
println("Network Interfaces..." +
Arrays.asList(this.sigar.getNetInterfaceList()));
println("");
//system resource limits //system resource limits
println("System resource limits:"); println("System resource limits:");
new Ulimit(this.shell).output(args); new Ulimit(this.shell).output(args);