Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{"StaticNameServers": [
"171.70.168.182",
"171.70.168.184"
]}
Setting IPv4
This is not applicable for S3260 M5 servers.
Note
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{"IPv4Addresses": [
{
"Gateway": "10.104.255.2",
"Address": "10.104.255.39",
"SubnetMask": "255.255.255.0"
}
]}
Setting VLAN
This is not applicable for S3260 M5 servers.
Note
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{"VLAN": {"VLANId": 2,"VLANEnable": true}}
Setting LDAP Attributes
Request:
curl -XPATCH -k -u admin:Password https://10.10.10.10/redfish/v1/AccountService -d '
{
"LDAP":{
"ServiceAddresses":["ldap://WIN-AD.automation.com:389","ldaps://10.10.10.1:6000","ldaps://[2001:420:5446:2014::330:11]:389",
“” ],
"ServiceEnabled":true,
"LDAPService":{
"SearchSettings" : {
"GroupsAttribute":"test",
"UsernameAttribute":"test",
Cisco UCS C-Series Servers REST API Programmer's Guide
130
Cisco IMC REST API Examples
Examples of Server Tasks for 4.0(4)