GET /aicc

Use the method to retrieve information about the Lenovo XClarity Administrator, such as NTP server settings, date and time settings, services that are currently running, and the build level.

Authentication

Authentication with user name and password is required.

Request URL

GET https://{management_server_IP}/aicc

Query parameters

None

Request body

None

Response codes

Code Description Comments
200 OK The request completed successfully.

Response body

Attributes Type Description
appliance Object Information about the current instance of the XClarity Administrator virtual appliance
  build String Current build level
  date String Current date and time
  name String Current appliance name
  runlevel Integer Current state of the appliance. This can be one of the following values.
  • 0. The appliance is halted.
  • 3. The appliance is operating normally.
  • 6. The appliance is restarting.
  status String Current status of the appliance. The value is always Normal.
  uuid String UUID of the appliance
  version String Current version number
appliance_states Object List of all available appliance states
  description String Appliance-state description
  runlevel Integer Appliance-state value
date Object Information about the current date on the XClarity Administrator
  date_time String Date and time
  parts Array Information about the current time
    yyyy Integer Year
    mm Integer Month
    dd Integer Day
    hours Integer Hour
    mins Integer Minute
    secs Integer Second
  time_format String Time format. This can be one of the following values.
  • 12. (default). 12-hour clock
  • 24. 24-hour clock
  timezone String Current time zone
  timezone_id String Time zone ID
  timezones Object Information about all available time zones
    daylight_saves Integer Amount of time to be added to local standard time to get the current time. This can be one of the following values.
  • 3600000. If use_daylight is true, adds 3600000 milliseconds (one hour).
  • 0. f use_daylight is false, adds 0 milliseconds.
    display_name String Time zone name
    id String Time zone ID
    offset Integer Coordinated Universal Time (UTC) offset (for example, -5 or +4)
    uses_daylight Boolean Indicates whether daylight saving time is used. This can be one of the following values.
  • true. Daylight saving time is used.
  • false. Daylight saving time is not used.
    utc_offset_raw Integer UTC offset (for example, -5 or +4)
    utc_offset_w_dst Integer UTC offset adjusted for daylight saving time, if applicable (for example, -5 or +4)
  uses_daylight Boolean Identifies whether daylight saving time is used. This can be one of the following values.
  • true. Daylight saving time is used.
  • false. Daylight saving time is not used.
  utc_offset Integer UTC offset (for example, -5 or +4)
  utc_offset_raw Integer UTC offset (for example, -5 or +4)
  utc_offset_w_dst Integer UTC offset adjusted for daylight saving time, if applicable (for example, -5 or +4)
network_interfaces Array List of XClarity Administrator network interfaces
  id String Network ID (such as eth0 or eth1)
  ip_addresses Array IPv4 and IPv6 addresses for this interface
    assign_method String Assignment method used for this IP address. This can be one of the following values.
  • static
  • dhcp
  • auto
    ip String IPv4 or IPv6 address
    ip_linklocal Boolean Indicates whether this address is an IPv6 link local address. This can be one of the following values.
  • true. This address is an IPv6 link local address.
  • false. This address is not an IPv6 link local address.
    prefix_length Integer Prefix length (in bits) for this IP address
    version Integer IP version of this address. This value is either 4 or 6.
  mac_address String MAC address
  role Array of strings Roles that are performed by this interface. This can be one or more of the following values.
  • none
  • management
  • osdeployment
  rpf String  
ntp Object Information about the NTP server that is associated with XClarity Administrator.
  servers Array of objects List of NTP servers
    authenticated Boolean Indicates whether the XClarity Administrator is authenticated with the NTP server. This can be one of the following values.
  • true. XClarity Administrator is authenticated with the NTP server.
  • false. XClarity Administrator is not authenticated with the NTP server.
    server String IP address or hostname of the NTP server
    version Integer Version of the NTP server. This can be one of the following values.
  • 1. No key authentication is required.
  • 3. NTPv3 is used, and key authentication is required. You must specify the authentication key and index for the NTP server for M-MD5 or SHA1 or both using the v3_key, v3_key_type, and v3_key_index parameters.
    v3_key String Key value specified in /etc/ntp/keys
    v3_key_index Integer Key-index value specified in /etc/ntp/keys
    v3_key_type String Key-type value specified in /etc/ntp/keys. This can be one of the following values.
  • M. M-MD5 authentication
  • SHA1. SHA1 authentication
preferredDisplayName String Property to use to displayed the device names in the user interface. This can be one of the following values.
  • byDefault. Displays the value that is provided by XClarity Administrator.
  • userDefinedName
  • dnsHostname
  • hostname
  • ipv4Address
  • serialNumber

If the selected property is not applicable or is applicable but there is no value available for a device, then byDefault is used.

preferredSortGridState Boolean Indicates whether to sort the inventory and groups data using the value set for the preferredDisplayName attribute. This can be one of the following values.
  • true. Sorts the inventory and groups data alphabetically using the preferredDisplayName attribute.

  • false. Sorts alphabetically using byDefault.

service_states Object List of all available service states
  description String Service-state description
  state Integer Service-state value
services Array List of the XClarity Administrator services
  id String Service ID
  initd String Service name
  pid Integer Process ID
  state Integer Current state of the service. This can be one of the following values.
  • 0. The service is running.
  • 1. The service is stopped but PID file exists.
  • 2. The service is stopped but lock file exists.
  • 3. The service is not running.
  • 4. The current state of the service is unknown.
subscriptions Array List of subscriptions
  id Integer Subscription ID
  monitor_uri String Network-related resource that is to be monitored by XClarity Administrator.

If monitor_uri is set to /aicc or , every /aicc URI is monitored.

If monitor_uri is set to , IP change notifications are received through DHCP.

  submonitor_uri String  
  uri String Resource to which XClarity Administrator writes a POST when XClarity Administrator detects a change in monitored resource.

The specified URI must be able to accept POST requests, where the body of the POST matches the JSON PUT to monitor_uri.

The following example is returned if the request is successful.
{
   "appliance": {
      "build": "686",
      "date": "686",
      "name": "LXCA - 10.240.61.98",
      "runlevel": 3,
      "status": "Normal",
      "uuid": "963602b8-edaf-4183-bf18-e842db92f610",
      "version": "2.99.99"
   },
   "appliance_states": [{
      "description": "Halt the appliance",
      "runlevel": 0
   },
   ...,
   {
      "description": "Reboot the appliance",
      "runlevel": 6
   }],
   "date": {
      "date_time": "August 6, 2018 11:29:41 AM EDT",
      "parts": {
         "yyyy": 2018,
         "mm": 8,
         "dd": 6,
         "hours": 11,
         "mins": 29,
         "secs": 41
      },
      "time_format": "12",
      "timezone": "Eastern Standard Time",
      "timezone_id": "America/New_York",
      "timezones": [{
         "daylight_saves": 0,
         "display_name": "Greenwich Mean Time",
         "id": "Africa/Abidjan",
         "offset": 0,
         "uses_daylight": false,
         "utc_offset_raw": 0,
         "utc_offset_w_dst": 0
      },
      ...,
      {
         "daylight_saves": 0,
         "display_name": "Mountain Standard Time",
         "id": "MST",
         "offset": -25200000,
         "uses_daylight": false,
         "utc_offset_raw": -25200000,
         "utc_offset_w_dst": -25200000
      }],
      "uses_daylight": true,
      "utc_offset": -18000000,
      "utc_offset_raw": -18000000,
      "utc_offset_w_dst": -14400000
   },
   "network_interfaces": [{
      "id": "eth0",
      "ip_addresses": [{
         "assign_method": "static"
         "ip": "fe80:0:0:0:215:5dff:fe3f:f143%eth0",
         "ip_linklocal": "true",
         "prefix_length": 64,
         "version": 6
      },
      ...,
      {
         "assign_method": "none",
         "ip": "0::0%0",
         "ip_linklocal": "false",
         "prefix_length": 64,
         "version": 6
      }],
      "mac_address": "00:15:5D:3F:F1:43",
      "role": ["management","osdeployment"],
      "rpf": "RFC3704Strict"
   }],
   "ntp": {
      "servers": [{
         "authenticated": true,
         "server": "time-a.nist.gov",
         "version": 3
         "v3_key": "123456789012345678901234567890abcdefabcd",
         "v3_key_index": 3,
         "v3_key_type": "M",
      },
      {
         "authenticated": true,
         "server": "us.pool.ntp.org",
         "version": 3,
         "v3_key": "123456789012345678901234567890abcdefabcd"
         "v3_key_index": 1,
         "v3_key_type": "SHA1",
      }]
   },
   "preferredDisplayName": "byDefault",
   "preferredSortGridState": true,
   "service_states": [{
      "description": "Service is running",
      "state": 0
   },
   ...,
   {
      "description": "Special purpose state used to trigger restart through REST",
      "state": 191
   }],
   "services": [{
      "id": "core",
      "initd": "xhmc-core",
      "pid": 1962,
      "state": 0
   },
   ...,
   {
      "id": "xcat",
      "initd": "xcatd",
      "pid": 18247,
      "state": 0
   }],
   "subscriptions": [{
      "id": 1,
      "monitor_uri": "/aicc",
       "submonitor_uri": "/ntp",
      "uri": "/ntpNotification"
   },
   {
      "id": 2,
      "monitor_uri": "/aicc/network/interfaces",
      "submonitor_uri": "",
      "uri": "/netchangenotsec"
   }]
}