Class FirmwareInfo

java.lang.Object
org.netxms.client.FirmwareInfo

public class FirmwareInfo extends Object
Information about firmware (or operating system image) running on a device
  • Constructor Details

    • FirmwareInfo

      public FirmwareInfo(NXCPMessage msg, long baseId)
      Create firmware information from NXCP message
      Parameters:
      msg - NXCP message
      baseId - base field ID
  • Method Details

    • getRole

      public FirmwareRole getRole()
      Get role of this firmware on the device.
      Returns:
      firmware role
    • getComponentIndex

      public int getComponentIndex()
      Get index of device component this firmware belongs to.
      Returns:
      component index or -1 if this is firmware of the device itself
    • isMainDeviceFirmware

      public boolean isMainDeviceFirmware()
      Check if this is main firmware of the device itself (and not of one of its components).
      Returns:
      true if this is main firmware of the device itself
    • getName

      public String getName()
      Get product name of this firmware (like "Junos OS" or "RouterBOOT").
      Returns:
      product name or empty string if firmware has no product name
    • getPlatform

      public String getPlatform()
      Get firmware platform ID (like "junos" or "routeros"). Versions of the same platform are comparable.
      Returns:
      platform ID or empty string if platform is not known
    • getVersion

      public String getVersion()
      Get firmware version. If platform is known, version is in canonical form of platform's version scheme, otherwise it is the same as raw version.
      Returns:
      firmware version
    • getRawVersion

      public String getRawVersion()
      Get firmware version exactly as reported by the device.
      Returns:
      raw firmware version
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: