#Received an error when run curl command to determine BIOS version on storage nodes

1 messages · Page 1 of 1 (latest)

lean breach
#

I also tried -k optoin as well. Any idea what could be the cause, please? Not sure of what MVIP is, I used cluster-mgmt-ip here

bash-4.2$ curl -s --insecure --user user:passwd "http://cluster-mgmt-ip/json-rpc/9.0?method=GetClusterHardwareInfo" | jq '.result.clusterHardwareInfo.nodes[] | "(.system[].serial)" + ": " + "(.platform.chassisType)" + " | " + "(.platform.nodeType)" + " | " + "BIOS: (.hardwareConfig.BIOS_VERSION.actual)" + " | " + "iDRAC: (.hardwareConfig.IDRAC_VERSION.actual)"'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 196 100 196 0 0 11385 0 --:--:-- --:--:-- --:--:-- 13066
parse error: Invalid numeric literal at line 1, column 10

https://kb.netapp.com/onprem/solidfire/hardware/How_to_determine_the_BIOS_version_on_storage_nodes

true arch
#

The KB is for Solidfire, perhaps you are trying it on an ONTAP node?
Since you are asking in the #1063542514780475493 channel.

lean breach
#

Is there an equivalent command for ONTAP?

true arch
#

Not that I know of, what is the purpose of this?

copper pumice
#

@lean breach See if this API helps?

https://CLUSTER_IP/api/cluster/nodes?order_by=name&fields=service_processor.firmware_version

turbid bronze
#

apparently the JSON file you receive back contains an invalid numeric literal somewhere. You would need to analyze the file and see where jq chokes

simple shore
#

Yea, please test the API without the jq processing.

lean breach
turbid bronze
#

ummm... you need to put in your own IP address lol

lean breach
#

Right, my bad. However, I don't see BIOS included in the API

copper pumice
#

@lean breach Try this. Output of this API matches with ONTAP CLI Bios Version.

https://CLUSTER_IP/api/cluster/nodes?order_by=name&fields=controller.cpu.firmware_release

ONTAP CLI system node run -node NODE_NAME -command sysconfig -a

Replace CLUSTER_IP and NODE_NAME as per your environment.

lean breach
#

Where in the link or how can I fill in my NODE_NAME? I know to fill in CLUSTER_IP. Thank you for your patience.