Skip to main content

GET – BMC Ethernet properties

Use the GET method to retrieve properties in Ethernet interface resource for a BMC.

Request URL

GET https://<BMC_IPADDR>/redfish/v1/Managers/1/EthernetInterfaces/{NIC,ToHost,NIC2}

Request body

None

Response body

FieldTypeDescription
FQDNString

The complete, fully qualified domain name for this XCC2 interface. It is an empty string in ToHost.

EthernetInterfaceTypeString

string “Physical”.

IPv6DefaultGatewayString

The current IPv6 default gateway address that is in use on this XCC2 interface. This property is not available in ToHost.

IdString

The value is “NIC” or “NIC2” in resource for BMC Ethernet interface.

The value is “ToHost" in BMC Ethernet over USB interface.

IPv6StaticAddressesArray

An array of objects used to represent the IPv6 static connection characteristics for this XCC2 interface. This property is not available in ToHost.

 IPv6StaticAddresses[N]Object

Array element

  PrefixLengthNunber

The Prefix Length of this IPv6 address

  AddressString

A valid IPv6 address

AutoNegBoolean

Indicates if the speed and duplex are automatically negotiated and configured on this XCC2 interface:

  • True. Auto negotiation of speed and duplex is enabled.

  • False. Auto negotiation of speed and duplex is disabled.

IPv6AddressPolicyTableArray

An array of objects used to represent the Address Selection Policy Table as defined in RFC 6724

 IPv6AddressPolicyTable[N]Object

Array element

  PrefixString

The prefix of IPv6 address.

  PrecedenceNumber

The IPv6 precedence, as defined in RFC6724, section 2.1.

  LabelNumber

The label of IPv6 address.

SpeedMbpsString

The current speed in Mbps of this XCC2 interface (units: Mbit/s). This value is null when “AutoNeg” is true.

StatusObject

Expanded.

 StateString

“Enabled” if this Ethernet interface is enabled.

 HealthString

null

HostNameString

The host name for this XCC2 interface, without any domain information. It is an empty string in ToHost.

IPv6AddressesArray

An array of objects used to represent the IPv6 connection characteristics for this XCC2 interface

 IPv6AddressObject

Array element

  AddressString

The IPv6 Address

  PrefixLengthNumber

The IPv6 Address Prefix Length

  AddressOriginString

The type of the IPv6 address origin for this XCC2 interface:

  • Static. A static address as configured by the user.

  • DHCPv6. Address is provided by a DHCPv6 service.

  • LinkLocal. Address is valid only for this network segment (link).

  • SLAAC. Address is provided by a Stateless Address AutoConfiguration (SLAAC) service.

  AddressStateString

The current state of this address as defined in RFC 4862:

  • Preferred. This address is currently within both it's valid and preferred lifetimes as defined in RFC 4862.

  • Deprecated. This address is currently within it's valid lifetime, but is now outside of it's preferred lifetime as defined in RFC 4862.

  • Tentative. This address is currently undergoing Duplicate Address Detection testing as defined in RFC 4862 section 5.4.

  • Failed. This address has failed Duplicate Address Detection testing as defined in RFC 4862 section 5.4 and is not currently in use."

FullDuplexBoolean

The duplex status of the Ethernet connection on this XCC2 interface.This value is null when “AutoNeg” is true.

IPv4StaticAddressesArray

An array of objects used to represent the IPv4 connection characteristics for this XCC2 interface.

 IPv4StaticAddressObject

Array element

  AddressString

The IPv4 Address

  SubnetMaskString

The IPv4 Subnet mask.

  AddressOriginString

Static.

  GatewayString

The IPv4 gateway for this address

IPv4AddressArray

An array of objects used to represent the IPv4 connection characteristics for this XCC2 interface.

 IPv4AddressObject

Array element

  AddressString

the IPv4 Address

  SubnetMaskString

the IPv4 Subnet mask.

  AddressOriginString

This indicates how the address was determined:

  • Static. A static address as configured by the user.

  • DHCP. Address is provided by a DHCPv4 service.

  • BOOTP. Address is provided by a BOOTP service.

  • IPv4LinkLocal . Address is valid only for this network segment (link).

  GatewayString

the IPv4 gateway for this address

NameServersArray

DNS name servers that are currently in use on this XCC2 interface (IPv4 1st,2nd, 3rd ip address, IPv6 1st,2nd, 3rd ip address). It is an empty array in ToHost.

InterfaceEnabledBoolean

A boolean indicating whether this interface is enabled

LinkStatusString

The value of this property represents the current status of link.

Valid values:

LinkUp, NoLink, LinkDown.

The description of LinkUp is “The link is available for communication on this interface.”

The description of NoLink is “There is no link or connection detected on this interface.”

The description of LinkDown is “There is no link on this interface, but the interface is connected.

LinksObject

Expanded.

 ChassisLink

The value of this property shall be a reference to a resource of type Chassis that represent the physical container associated with this Ethernet Interface.

 HostInterfaceLink

The value of this property shall be a reference to a resource of type HostInterface which represents the interface used by a host to communicate with a Manager. Only in ToHost has this property.

MACAddressString

The currently configured MAC address of the (logical port) interface.

PermanentMACAddressString

The permanent MAC address assigned to this interface (port).

NameString

The name of the resource

MTUSizeNumber

The currently configured Maximum Transmission Unit (MTU) in bytes on this XCC2 interface

VLANLink

The value of this property shall be the VLAN for this interface. If this interface supports more than one VLAN, the VLAN property shall not be present and the VLANS collection link shall be present instead. This property is not available in ToHost.

 VLANEnableBoolean

The property of VLAN is Enable or not.

 VLANIdNumber

The Id of VLAN.

MaxIPv6StaticAddressesNumber

The maximum number of IPv6 static address. Fixed value “0” in ToHost.

DHCPv4Object

Expanded.

 UseDNSServersBoolean

Use DNS servers or not.

 UseDomainNameBoolean

Use Domain Name or not.

 DHCPEnabledBoolean

The DHCP is Enabled or not.

 UseNTPServersBoolean

Not used, always null.

 UseGatewayBoolean

Not used, always null.

 UseStaticRoutesBoolean

Not used, always null.

 FallbackAddressString

DHCPv4 fallback address method for this interface.

Valid values:None, Static

DHCPv6Object

Expanded

 UseDNSServersBoolean

Use DNS servers or not.

 UseDomainNameBoolean

Use Domain Name or not.

 OperatingModeString

The operating mode is “Enabled” or “Disabled”.

 UseNTPServersBoolean

Not used, always null.

 UseRapidCommitBoolean

Not used, always null.

IPv6StaticDefaultGatewaysArray

An array of objects used to represent the IPv6 static default gateway for this XCC2 interface.

 AddressString

Static IPv6 default gateway address

 PrefixLengthInteger

Fixed value “0”

StaticNameServersArray

The statically-defined set of DNS server IPv4 and IPv6 addresses.

Items: string

Items count: 6

StatelessAddressAutoConfigObject

Expanded

 IPv4AutoConfigEnabledBoolean

Not used, always null.

 IPv6AutoConfigEnabledBoolean

Enable IPv6 Auto Config or not.

DescriptionString

Fixed string “Manager Ethernet Interface”

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example JSON response is returned:

{
"IPv4StaticAddresses": [
{
"SubnetMask": "255.255.255.0",
"AddressOrigin": "Static",
"Gateway": "0.0.0.0",
"Address": "192.168.70.125"
}
],
"StaticNameServers": [
"0.0.0.0",
"0.0.0.0",
"0.0.0.0",
"::",
"::",
"::"
],
"IPv6StaticDefaultGateways": [
{
"PrefixLength": 0,
"Address": "::"
}
],
"SpeedMbps": null,
"IPv4Addresses": [
{
"SubnetMask": "255.255.254.0",
"AddressOrigin": "DHCP",
"Gateway": "10.240.218.1",
"Address": "10.240.218.133"
}
],
"IPv6Addresses": [
{
"PrefixLength": 64,
"AddressOrigin": "LinkLocal",
"AddressState": "Preferred",
"Address": "fe80::922e:16ff:fe06:e44e"
}
],
"InterfaceEnabled": true,
"AutoNeg": true,
"NameServers": [
"10.240.0.10",
"0.0.0.0",
"0.0.0.0",
"::",
"::",
"::"
],
"@odata.etag": "\"11618d5429c7230e8ce358\"",
"HostName": "XCC-7D75-1234567890",
"MTUSize": 1500,
"FullDuplex": null,
"@odata.type": "#EthernetInterface.v1_8_0.EthernetInterface",
"@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces/NIC",
"Status": {
"Health": "OK",
"State": "Enabled"
},
"DHCPv4": {
"UseNTPServers": null,
"UseStaticRoutes": null,
"DHCPEnabled": true,
"UseDNSServers": true,
"UseDomainName": true,
"FallbackAddress": "Static",
"UseGateway": null
},
"MaxIPv6StaticAddresses": 1,
"MACAddress": "90:2e:16:06:e4:4e",
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/1"
}
},
"VLAN": {
"VLANId": 1,
"VLANEnable": false
},
"LinkStatus": "LinkUp",
"PermanentMACAddress": "90:2e:16:06:e4:4e",
"FQDN": "XCC-7D75-1234567890.lenovo.com",
"IPv6DefaultGateway": "::",
"StatelessAddressAutoConfig": {
"IPv6AutoConfigEnabled": true,
"IPv4AutoConfigEnabled": null
},
"DHCPv6": {
"UseNTPServers": null,
"OperatingMode": "Enabled",
"UseDomainName": true,
"UseRapidCommit": null,
"UseDNSServers": true
},
"Id": "NIC",
"IPv6AddressPolicyTable": [
{
"Precedence": 50,
"Prefix": "::1/128",
"Label": 0
},
{
"Precedence": 11,
"Prefix": "::/96",
"Label": 3
},
{
"Precedence": 35,
"Prefix": "::ffff:0.0.0.0/96",
"Label": 4
},
{
"Precedence": 10,
"Prefix": "2001::/32",
"Label": 6
},
{
"Precedence": 10,
"Prefix": "2001:10::/28",
"Label": 7
},
{
"Precedence": 1,
"Prefix": "3ffe::/16",
"Label": 12
},
{
"Precedence": 30,
"Prefix": "2002::/16",
"Label": 2
},
{
"Precedence": 1,
"Prefix": "fec0::/10",
"Label": 11
},
{
"Precedence": 5,
"Prefix": "fc00::/7",
"Label": 5
},
{
"Precedence": 40,
"Prefix": "::/0",
"Label": 1
}
],
"@odata.context": "/redfish/v1/$metadata#EthernetInterface.EthernetInterface",
"IPv6StaticAddresses": [
{
"PrefixLength": 64,
"Address": "::"
}
],
"Name": "Manager Ethernet Interface",
"EthernetInterfaceType": "Physical",
"Description": "Manager Ethernet Interface",
"Oem": {

}
}