Check HSM

Hardware State Manager has two important parts:

Prerequisites

SLS

  • (ncn#) API call

    curl  -H "Authorization: Bearer ${TOKEN}" https://api-gw-service-nmn.local/apis/sls/v1/hardware | jq
    
  • (ncn#) CLI command

    cray sls hardware list --format json
    

In either case, the output from SLS should consist of a list of objects that look like the following:

  {
    "Parent": "x1000c7s1b0",
    "Xname": "x1000c7s1b0n0",
    "Type": "comptype_node",
    "Class": "Mountain",
    "TypeString": "Node",
    "ExtraProperties": {
      "Aliases": [
        "nid001228"
      ],
      "NID": 1228,
      "Role": "Compute"
    }
  }

SMD

  • (ncn#) API call

    curl -s -k -H "Authorization: Bearer ${TOKEN}" https://api-gw-service-nmn.local/apis/smd/hsm/v2/Inventory/EthernetInterfaces | jq
    
  • (ncn#) CLI command

    cray hsm inventory ethernetInterfaces list --format json
    

In either case, the output from SMD should consist of a list of objects that look like the following:

  {
    "ID": "0040a6838b0e",
    "Description": "",
    "MACAddress": "0040a6838b0e",
    "IPAddresses": [
      {
        "IPAddress": "10.100.1.147",
        "Network": "HMN"
      }
    ],
    "LastUpdate": "2020-07-24T23:44:24.578476Z",
    "ComponentID": "x1000c7s1b0n0",
    "Type": "Node"
  }

Back to Index