Package org.netxms.client
Class FirmwareInfo
java.lang.Object
org.netxms.client.FirmwareInfo
Information about firmware (or operating system image) running on a device
-
Constructor Summary
ConstructorsConstructorDescriptionFirmwareInfo(NXCPMessage msg, long baseId) Create firmware information from NXCP message -
Method Summary
Modifier and TypeMethodDescriptionintGet index of device component this firmware belongs to.getName()Get product name of this firmware (like "Junos OS" or "RouterBOOT").Get firmware platform ID (like "junos" or "routeros").Get firmware version exactly as reported by the device.getRole()Get role of this firmware on the device.Get firmware version.booleanCheck if this is main firmware of the device itself (and not of one of its components).toString()
-
Constructor Details
-
FirmwareInfo
Create firmware information from NXCP message- Parameters:
msg- NXCP messagebaseId- base field ID
-
-
Method Details
-
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
Get product name of this firmware (like "Junos OS" or "RouterBOOT").- Returns:
- product name or empty string if firmware has no product name
-
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
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
Get firmware version exactly as reported by the device.- Returns:
- raw firmware version
-
toString
-