Skip to main content

GET /switches/{uuid_list}

Use this method to return properties for one or more specific Flex and RackSwitch switches. This REST API is available only for Lenovo XClarity Administrator v1.0.1 and later.

Authentication

Authentication with username and password is required.

Request URL

GET https://{management_server_IP}/switches/{uuid_list}

where {uuid_list} is a list of one or more UUIDs, separated by a comma, of the switches to be retrieved. To obtain the switch UUIDs, use the GET /switches method.

Query parameters

ParametersRequired / OptionalDescription
excludeAttributes={attributes}OptionalReturns a response that excludes the specified attributes for each resource. You can specify one or more attributes that are listed in the response body, separated by a comma.
Note
  • When the includeAttributes query parameter is specified, the excludeAttributes query parameter is ignored.
  • The response is filtered based on attribute name, not the attribute value.
  • Base attributes cannot be excluded.
formatType={type}OptionalReturns information in the specified format. This can be one of the following values.
  • json (default)
  • csv

If the format type is not specified, JSON format is returned.

Note
To retrieve properties for a large number of devices, use POST /switches.
includeAttributes=<attributes}OptionalReturns a response that includes the base attributes and the specified attributes for each resource. You can specify one or more attributes that are listed in the response body, separated by a comma.
Note
  • The response is filtered based on attribute name, not the attribute value.
  • If this attribute is not specified, all attributes are returned by default.
The following example returns a CSV file that contains information about two specific switches.
GET https://192.0.2.0/switches/0E7D8E1CDF7D11D4ABB0D5D5D5313131,
409583E0BD27B7019F3758946B036818?formatType=csv

Request body

None

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request.
409ConflictThere is a conflict with the current state of the resource. A descriptive error message is returned in the response body.
413Request Entity Too LargeClients might impose limitations on the length of the request URI, and the request URI is too long to be handled. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
accessStateStringState of the switch. This can be one of the following values.
  • Online
  • Offline
  • Partial
  • Pending
  • Unknown
accessStateRecordsArray of objectsInformation about the access-state record for each network interface and protocol that is available for the device
Note
This attribute is present only for devices that are offline due to connectivity issues.
 healthStringConnection health state of the device. This can be one of the following values.
  • OFFLINE

  • PARTIAL

  • FAIL

 ipAddressStringIP address that was used to check the network connectivity
 isTrustedBooleanIndicates whether the connection to the device is trusted. This can be one of the following values.
  • true. The connection is trusted.

  • false. The connection is not trusted.

 messageBundleStringLocation where messages.properties can be found if it is not located in the default task management bundle
 messageDisplayStringTranslated label that corresponds to the message ID or to the pre-translated backup string if no message ID is specified
 messageIDStringMessage ID for the translatable connection error states
 messageParametersArray of stringsAttributes for the message if the translated message requires input. A JSON object that points to translated messages.
 protocolStringType of the protocol to check connectivity. This can be one of the following values.
  • CIM

  • CLI

  • DCS

  • REDFISH

 timestampLongTimestamp when connectivity was last checked and when this record was created
 usernameStringUser name that was used to check connectivity
    
applyPendingIntegerIndicates whether an apply action is needed and that the configuration has been changed by the user actions.
attachedNodesArrayList of nodes with one or more ports attached to the switch.
badCredentialsBooleanIndicates whether stored credentials are valid to login. This can be one of the following values.
  • true. Stored credentials are not valid for login.

  • false. Stored credentials are valid for login.

cmmDisplayNameStringSwitch name provided by the CMM
cmmHealthStateStringHealth summary that corresponds to the highest event severity of all the devices. This can be one of the following values.
  • Normal
  • Non-Critical
  • Warning
  • Minor-Failure
  • Major-Failure
  • Non-Recoverable
  • Critical
  • Unknown
contactStringContact name for the switch
cpuUtilizationLongProcessor usage for the switch.
dataHandleLongTime stamp of the last status update
descriptionStringDescription provided by the CMM
dnsHostnamesArray of stringsList of DNS hostnames
domainNameStringUser defined domain name
elapsedTimeMillisecsStringElapsed time, in milliseconds
entitleSerialNumberStringWwitch serial number
errorFieldsArray of objects that contain {String, ErrorCode}Error codes. This can be one of the following values.
  • FETCH_SUCCESS
  • FETCH_FAILED
  • NO_CONNECTOR
  • FATAL_EXCEPTION
  • NETWORK_FAIL
excludedHealthStateStringHighest severity alert with exclusions. This can be one of the following values.
  • Normal
  • Non-Critical
  • Warning
  • Minor-Failure
  • Major-Failure
  • Non-Recoverable
  • Critical
  • Unknown
expiredCredentialsBooleanIndicates whether stored credentials are accepted by the switch but not authorized for login. This can be one of the following values.
  • true. Stored credentials are accepted by the switch but not authorized for login.

  • false. Stored credentials are accepted by the switch and authorized for login.

fansArrayInformation about each fan in the switch
 fanNameStringFan name
 fanSpeedStringFan speed
 fanStateStringFan status
firmwareArrayFirmware details
 buildStringFirmware build
 dateStringFirmware date
 nameStringFirmware name
 statusStringFirmware status
 roleString 
 typeStringFirmware type
 versionStringFirmware version
FRUStringFRU part number
fruSerialNumberStringFRU serial number
globalVlagStateStringConfigured state of VLAG. This can be one of the following values.
  • Enabled

  • Disabled

  • N/A

hostnameStringUser defined hostname
httpsEnabledBoolean(Rack switches running ENOS only) Indicates whether to enable HTTPS on the switch. This can be one of the following values.
  • true. HTTPS is enabled.

  • false. HTTPS is not enabled.

ipInterfacesArrayInformation about the switch IP addresses
 IPv4assignmentsArrayInformation about IPv4 assignments
  addressStringIPv4 address
  gatewayStringIPv4 gateway
  idIntegerIPv4 assignment ID
  subnetStringSubnet mask
  typeStringType of IPv4 assignment. This can be one of the following values.
  • INUSE
  • CONFIGURED
  • ALIAS
  • UNKNOWN
 IPv4DHCPmodeStringIP address assignment method. This can be one of the following values.
  • STATIC_ONLY
  • DHCP_ONLY
  • DHCP_THEN_STATIC
  • UNKNOWN
 IPv4enabledBooleanIdentifies whether IPv4 is enabled. This can be one of the following values.
  • true. IPv4 is enabled.
  • false. IPv4 is disabled.
 IPv6assignmentsArrayInformation about IPv6 assignments
  addressStringIPv6 address
  gatewayStringIPv6 gateway
  idIntegerIPv6 assignment ID
  prefixIntegerIPv6 prefix
  scopeStringScope of the IPv6 assignment. This can be one of the following values.
  • Global
  • LinkLocal
  • Unknown
  sourceStringSource of the IPv6 assignment. This can be one of the following values.
  • DHCP
  • Statelesss
  • Static
  • Other
  • Unknown
  typeStringType of IPv6 assignment. This can be one of the following values.
  • INUSE
  • CONFIGURED
  • ALIAS
  • UNKNOWN
 IPv6DHCPenabledBooleanIdentifies whether IPv6 DHCP is enabled. This can be one of the following values.
  • true. IPv6 DHCP is enabled.
  • false. IPv6 DHCP is disabled.
 IPv6enabledBooleanIdentifies whether IPv6 is enabled. This can be one of the following values.
  • true. IPv6 is enabled
  • false. IPv6 is disabled
 IPv6statelessEnabledBooleanIdentifies whether IPv6 stateless is enabled. This can be one of the following values.
  • true. IPv6 stateless is enabled.
  • false. IPv6 stateless is disabled.
 IPv6staticEnabledBooleanIdentifies whether IPv6 static is enabled. This can be one of the following values.
  • true. IPv6 static is enabled.
  • false. IPv6 static is disabled.
 labelStringLabel
 nameStringName
ipv4AddressesArray of stringsList of IPv4 addresses
ipv6AddressesArray of stringsList of IPv6 addresses
ledsArrayInformation about switch LEDs.
 colorStringLED color. This can be one of the following values.
  • Red
  • Amber
  • Yellow
  • Green
  • Blue
  • Unknown
 locationStringLED location. This can be one of the following values.
  • Front panel
  • Lightpath Card
  • Planar
  • FRU
  • Rear Panel
  • Unknown
 nameStringLED name.
 stateStringLED state. This can be one of the following values.
  • Off
  • On
  • Blinking
  • Unknown
locationArray of objectsInformation about the switch location
 locationStringLocation description
 lowestRackUnitIntegerLowest unit that is occupied by the device in the rack
 rackStringRack
 roomStringRoom
macAddressesArray of stringsList of MAC addresses
machineTypeStringMachine type
manufacturerStringManufacturer
manufacturerIDStringManufacturer ID
manufacturingDateStringManufacturing date
memoryUtilizationStringAmount of used and free memory
mgmtProcIPaddressStringIP address that is used by XClarity Administrator to manage this resource
modelStringSwitch model
nameStringName that is displayed in the user interface for this device

The value of this attribute is determined by preferredDisplayName attribute in the GET /aicc method. For example, if the preferredDisplayName attribute is set to hostname, then the value for this name attribute is the same as the hostname attribute in the GET /aicc method.

NTPPushEnabledBooleanIndicates whether pushing NTP settings to the CMM is enabled. This can be one of the following values.
  • true. Push is enabled.

  • false. Push is disabled.

NTPPushFrequencyIntegerFrequency for pushing NTP settings to the CMM. This can be a number from 044640.
operationalVlagStateStringOperational state of VLAG. This can be one of the following values.
  • Enabled

  • Disabled

  • N/A

OSString(Rack switches only) Firmware type. This can be one of the following values.
  • CNOS

  • ENOS

overallHealthStateStringHighest severity of all alerts. This can be one of the following values.
  • Normal
  • Non-Critical
  • Warning
  • Minor-Failure
  • Major-Failure
  • Non-Recoverable
  • Critical
  • Unknown
parentObject(Flex switches only) Information about the chassis in which the switch resides
 uriStringURI of the chassis (for example, chassis/3A8B7173-0D66-4FA1-93B4-9213A74DE9F5)
 uuidStringUUID of the chassis (for example, 3A8B7173-0D66-4FA1-93B4-9213A74DE9F5)
partNumberStringPart number for the switch
portDataSetTimestampString 
panicDumpStringPresence of a panic dump in the flash memory. This can be one of the following values.
  • Yes. A panic dump is in the flash memory.

  • No. A panic dump is not in the flash memory.

portsArray of objectsInformation about fan ports
 configuredStatusStringConfiguration of the port. This can be one of the following values.
  • enabled. The port is enabled.

  • disabled. The port is disabled.

 interfaceIndexString 
 mtuIntegerMaximum transmission unit for the port
 operationalStatusStringRreal-time status of the port. This can be one of the following values.
  • up

  • down

  • notPresent. The cable is unplugged

 peerMacAddressStringPort MAC address
 portStringPort index
 portNameStringPort name
 portSpeedStringPort speed
 portStateStringCurrent operational link status of the port. This can be one of the following values.
  • up

  • down

 PVIDIntegerDefault VLAN ID for the port
 tagPVIDStringPVID tag state of the port. This can be one of the following values.
  • tagged

  • untagged

 vLANStringVLAN tag state of the port. This can be one of the following values.
  • tagged. VLAN tagging is enabled.
  • untagged. VLAN tagging is diaabled.
posIDStringPosition ID
powerStateStringCurrent power state of the switch. This can be one of the following values.
  • Off
  • On
  • ShuttingDown
  • Standby
  • Hibernate
  • Unknown
powerSupplyStringInformation about the state of each power supply, separated by a colon and ending with a period (for example, Power Supply 1: Off;Power Supply 2: on.)
productIDStringProduct ID
productNameStringModel of the switch
protectedModeBooleanIdentifies whether the switch is in protected mode. This can be one of the following values.
  • true. The switch is in protected mode
  • false. The switch is not in protected mode
resetReasonStringReason for the switch reset.
savePendingStringIndicates whether an save action is needed and that the configuration has been applied but not saved to the flash.
  • yes. The save action is needed.

  • no. The save action is not needed.

securityDescriptorObjectInformation about the authentication enablement and support the associated stored credentials for a managed device.
 managedAuthEnabledBooleanIndicates whether the device uses managed authentication. This can be one of the following values.
  • true. The device uses managed authentication.

  • false. The device uses local authentication.

 managedAuthSupportedBooleanIndicates whether the device supports the ability to choose whether managed authentication is to be used. This can be one of the following values.
  • true. This device supports the ability to choose managed authentication.

  • false. This device does not support the ability to choose managed authentication.

 publicAccessBooleanIndicates whether the resource can be accessed by all role groups. This can be one of the following values.
  • true. The resource is can be access by all role group.

  • false. The resource is restricted to specific role groups.

 roleGroupsArray of stringsList of role groups that are permitted to view and manage this device
 storedCredentialsArray of objectsInformation about the stored credential that is associated with this device, if applicable
  descriptionStringDescription of the stored credential
  idStringID of the stored credential
  userNameStringName of the stored credential
 uriStringURI of the device
serialNumberStringSerial number
slotsIntegerPrimary slot
stackedModeBooleanIdentifies whether the switch is in stacked mode. This can be one of the following values.
  • true. The switch is in stacked mode
  • false. The switch is not in stacked mode
stackRoleStringRole of the switch in the stack
sysObjectIDStringSystem-object identifier of the switch.
temperatureSensorsArray of objectsInformation about temperature sensors
 sensorNameStringTemperature sensor name
 sensorStateStringTemperature sensor state
typeStringResource type. This value is always Switch.
upTimeStringTime (in hundredths of a second) since the network management portion of the system was last re-initialized
uriStringURI
userDefinedNameStringUser-defined name for the device
userDescriptionStringUser description
uuidStringUUID
vpdIDStringVPD ID
The following example is returned if the request is successful when the formatType=json query parameter is specified.
{
"switchList": [{
"accessState": "Online",
"accessStateRecords": [{
"health": "SUCESS",
"ipAddress": "10.243.6.68",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageDisplay": "Connection is successful",
"messageID": "1180_SHORT",
"messageParameters": [],
"protocol": "CIM",
"timestamp": 1565785907453,
"username": "USERID"
},
{
"health": "SUCESS",
"ipAddress": "fd55:faaf:e1ab:2021:42f2:e9ff:feb8:163d",
"messageBundle": "com.lenovo.lxca.discovery.bundle.tasks.messages",
"messageDisplay": "Connection is successful",
"messageID": "1180_SHORT",
"messageParameters": [],
"protocol": "CIM",
"timestamp": 1565785907465,
"username": "USERID"
}],
"applyPending": "No",
"backedBy": "real",
"badCredentials": false,
"cmmDisplayName": "NE1072T",
"cmmHealthState": "Critical",
"contact": "John Smith",
"cpuUtilization": "N/A",
"dataHandle": 1559245736963,
"description": "48*10 GbE(RJ-45), 6*40 GbE QSFP+",
"dnsHostnames": [],
"domainName": "",
"elapsedTimeMillisecs": "291128",
"entitleSerialNumber": "MM28753",
"errorFields": [],
"excludedHealthState": "Critical",
"expiredCredentials": false,
"fans": [{
"fanName": "Fan 1",
"fanSpeed": "1782 RPM (23 PWM)",
"fanState": "Front-to-Back"
},
...],
"firmware": [{
"build": "",
"classifications": [],
"date": "",
"name": "Uboot",
"role": "",
"status": "N/A",
"type": "Boot ROM",
"version": "10.9.3.0"
},
...],
"FRU": "00YK768 ",
"fruSerialNumber": "",
"globalVlagState": "Disabled",
"height": 1,
"hostname": "NE1072T",
"httpsEnabled": true,
"ipInterfaces": [{
"IPv4assignments": [{
"id": 0,
"subnet": "255.255.252.0",
"gateway": "0.0.0.0",
"address": "10.240.196.83",
"type": "UNKNOWN"
}],
"IPv4DHCPmode": "UNKNOWN",
"IPv4enabled": true,
"IPv6assignments": [{
"id": 0,
"scope": "Global",
"gateway": "0:0:0:0:0:0:0:0",
"source": "Static",
"address": "fe80:0:0:0:a68c:dbff:fe96:dd00",
"prefix": 10,
"type": "UNKNOWN"
}],
"IPv6DHCPenabled": false,
"IPv6enabled": true,
"IPv6statelessEnabled": false,
"IPv6staticEnabled": false,
"label": "unknown",
"name": "mgmt0"
}...
],
"ipv4Addresses": ["10.240.196.83"],
"ipv6Addresses": ["fe80::200:ff:fe00:0","fe80::a68c:dbff:fe96:dd00"],
"isConnectionTrusted": "true",
"leds": [],
"location": {
"location": "Santa Clara",
"lowestRackUnit": 5,
"rack": "Core 1",
"room": "Core lab"
},
"macAddresses": ["A4:8C:DB:96:DD:00"],
"machineType": "7159",
"manufacturer": "LNVO",
"manufacturerId": "",
"manufacturingDate": "3117 (WWYY)",
"memoryUtilization": "",
"mgmtProcIPaddress": "10.240.196.83",
"model": "HD6",
"name": "NE1072T",
"ntpPushEnabled": false,
"ntpPushFrequency": 0,
"operationalVlagState": "Disabled",
"OS": "CNOS"
"overallHealthState": "Critical",
"panicDump": "No",
"parent": {
"uri": null,
"uuid": null
},
"partNumber": "00YL919 ",
"portDataSetTimestamp": "03:48:56",
"ports": [{
"configuredStatus": "up",
"interfaceIndex": "410001",
"operationalStatus": "down",
"mtu": 1500,
"peerMacAddress": "",
"portName": "",
"portSpeed": "auto",
"portState": "down",
"tagPVID": "",
"vLAN": "untagged",
"port": "Ethernet1/1",
"PVID": "1"
},
...],
"posID": "",
"powerState": "On",
"powerSupply": "Power Supply 1: Off;Power Supply 2: On.",
"productId": "",
"productName": "Lenovo ThinkSystem NE1072T RackSwitch",
"protectedMode": "Unknown",
"resetReason": "1",
"savePending": "No",
"securityDescriptor": {
"managedAuthEnabled": false,
"managedAuthSupported": false,
"publicAccess": false,
"roleGroups": ["WIRELESS"],
"storedCredentials": [{
"description": "",
"id": "2417",
"userName": "admin"
}],
"uri": "switches/00000000000010008000a48cdb96dd00"
},
"serialNumber": "Y055DH77R016",
"stackMode": "none",
"stackRole": "none",
"sysObjectID": "1.3.6.1.4.1.19046.1.7.34",
"temperatureSensors": [{
"sensorName": "Inlet Temp",
"sensorState": "38 °C"
},
...],
"type": "Rackswitch",
"upTime": "46 days, 06:37:12",
"userDescription": "",
"userDefinedName": "NE1072T",
"uri": "switches/00000000000010008000A48CDB96DD00",
"uuid": "00000000000010008000A48CDB96DD00",
"vpdID": ""
}