类 ServerSerialHelper

java.lang.Object
com.cdkjframework.license.helper.ServerSerialHelper

public class ServerSerialHelper extends Object
  • 构造器详细资料

    • ServerSerialHelper

      public ServerSerialHelper()
  • 方法详细资料

    • getLinuxSerial

      public static String getLinuxSerial(String[] shell) throws Exception
      执行Linux的shell获取Linux信息
      参数:
      shell - 命令
      返回:
      String Server信息
      抛出:
      Exception - 默认异常
    • getWindowsSerial

      public static String getWindowsSerial(String command) throws Exception
      执行windows的command获取Windows信息
      参数:
      command - 命令
      返回:
      String Server信息
      抛出:
      Exception - 默认异常