Class UnixIpmiCriterionProcessor

java.lang.Object
org.sentrysoftware.metricshub.extension.oscommand.ipmi.UnixIpmiCriterionProcessor

public class UnixIpmiCriterionProcessor extends Object
Processes IPMI criteria for Unix-based systems, particularly handling command construction and execution depending on the system's specific requirements and configurations.
  • Constructor Details

    • UnixIpmiCriterionProcessor

      public UnixIpmiCriterionProcessor()
  • Method Details

    • processUnixIpmiDetection

      public CriterionTestResult processUnixIpmiDetection(DeviceKind hostType, TelemetryManager telemetryManager)
      Process IPMI detection for the Unix system
      Parameters:
      hostType - The host type (windows, linux, storage, oob ...)
      telemetryManager - The telemetry manager.
      Returns:
      new CriterionTestResult instance
    • buildIpmiCommand

      public String buildIpmiCommand(DeviceKind hostType, String hostname, SshConfiguration sshConfiguration, OsCommandConfiguration osCommandConfiguration, int defaultTimeout, TelemetryManager telemetryManager)
      Check the OS type and version and build the correct IPMI command. If the process fails, return the corresponding error.
      Parameters:
      hostType - The type of the host.
      hostname - The hostname.
      sshConfiguration - The SSH configuration.
      osCommandConfiguration - The OS command configuration.
      defaultTimeout - The default timeout.
      telemetryManager - ......The telemetry manager.
      Returns:
      String : The IPMI Command.
    • getIpmiCommandForSolaris

      public String getIpmiCommandForSolaris(String ipmitoolCommand, String hostname, String solarisOsVersion) throws IpmiCommandForSolarisException
      Get IPMI command based on Solaris version. If version == 9, then use 'lipmi'. If version > 9, then use 'bmc'. Otherwise, return an error.
      Parameters:
      ipmitoolCommand - The base IPMI tool command.
      hostname - The hostname.
      solarisOsVersion - The Solaris OS version.
      Returns:
      String : IPMI command for Solaris.
      Throws:
      IpmiCommandForSolarisException - If an error occurs while determining the IPMI command.