Cisco IMC REST API Examples
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{
"DHCPv6": {
},
"IPv6Addresses": [
],
"IPv6StaticDefaultGateways": [
]
}
Setting Auto Negotiation, Speed, and Duplex
Note
This is not applicable for S3260 M5 servers.
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{
"AutoNeg": false,
"SpeedMbps": 10,
"FullDuplex": true
}
Setting Hostname
Note
This is not applicable for S3260 M5 servers.
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{"HostName": "C220-WZP210606A6z"}
Setting DNS
Note
This is not applicable for S3260 M5 servers.
"OperatingMode": "Disabled",
"UseDNSServers": false
{
"Address": "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
}
{
"Address": "2001:0db8:85a3:0000:0000:8a2e:0370:2"
}
Cisco UCS C-Series Servers REST API Programmer's Guide
Examples of Server Tasks for 4.0(4)
129