< Back
Get-iBMCNetworkAdapters
Post
NAME Get-iBMCNetworkAdapters
SYNOPSIS
Query information about the network adapter resource collection of a server.
SYNTAX
Get-iBMCNetworkAdapters [-Session] <RedfishSession[]> [<CommonParameters>]
DESCRIPTION
Query information about the network adapter resource collection of a server.
PARAMETERS
-Session <RedfishSession[]>
iBMC redfish session object which is created by Connect-iBMC cmdlet.
A session object identifies an iBMC server to which this cmdlet will be executed.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
PSObject[][]
Returns an array of PSObject indicates all network adapter resources if cmdlet executes successfully.
In case of an error or warning, exception will be returned.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> $NetworkAdaptersArray = Get-iBMCNetworkAdapters -Session $session
PS C:\\> $NetworkAdaptersArray
Host : 10.1.1.2
Id : mainboardLOM
Manufacturer : Intel
Model : X722
Status : @{State=Enabled; Health=OK}
Name : LOM
DriverName :
DriverVersion :
CardManufacturer : Huawei
CardModel : 2*10GE+2*GE
DeviceLocator : LOM
Position : mainboard
NetworkTechnology : {Ethernet}
RootBDF : 0000:19:03.0
Configuration :
NetworkPorts : {@{Name=1; Id=1; PhysicalPortNumber=1; LinkStatus=Down;
AssociatedNetworkAddresses=System.Object[]; PortType=OpticalPort; BDF=0000:1a:0
0.0; FirmwarePackageVersion=; DriverVersion=; DriverName=}, @{Name=2; Id=2;
PhysicalPortNumber=2; LinkStatus=Down; AssociatedNetworkAdd
resses=System.Object[]; PortType=OpticalPort; BDF=0000:1a:00.1; FirmwarePackageVersion=;
DriverVersion=; DriverName=}, @{Name=3; Id=3;
PhysicalPortNumber=3; LinkStatus=Up; AssociatedNetworkAddresses=System.Object[];
PortType=ElectricalPort; BDF=0000:1a:00.2; FirmwarePac
kageVersion=; DriverVersion=; DriverName=}, @{Name=4; Id=4; PhysicalPortNumber=4;
LinkStatus=Down; AssociatedNetworkAddresses=System.Ob
ject[]; PortType=ElectricalPort; BDF=0000:1a:00.3; FirmwarePackageVersion=; DriverVersion=;
DriverName=}}
Host : 10.1.1.2
Id : mainboardMEZZ1
Manufacturer : Intel
Model : 2*82599
Status : @{Health=OK; State=Enabled}
Name : MZ312
DriverName :
DriverVersion :
CardManufacturer : Huawei
CardModel : 4*10G Mezzanine Card
DeviceLocator : mainboard
Position : MEZZ1
NetworkTechnology : {Ethernet}
NetworkPorts : {@{Name=1; Id=1; PhysicalPortNumber=1; LinkStatus=;
AssociatedNetworkAddresses=System.Object[]; PortType=}, @{Name=2; Id=2; PhysicalPor
tNumber=2; LinkStatus=; AssociatedNetworkAddresses=System.Object[]; PortType=}, @{Name=3;
Id=3; PhysicalPortNumber=3; LinkStatus=; Asso
ciatedNetworkAddresses=System.Object[]; PortType=}, @{Name=4; Id=4; PhysicalPortNumber=4;
LinkStatus=; AssociatedNetworkAddresses=Syste
m.Object[]; PortType=}}
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCNetworkAdaptersHealth
Connect-iBMC
Disconnect-iBMC
SYNOPSIS
Query information about the network adapter resource collection of a server.
SYNTAX
Get-iBMCNetworkAdapters [-Session] <RedfishSession[]> [<CommonParameters>]
DESCRIPTION
Query information about the network adapter resource collection of a server.
PARAMETERS
-Session <RedfishSession[]>
iBMC redfish session object which is created by Connect-iBMC cmdlet.
A session object identifies an iBMC server to which this cmdlet will be executed.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
PSObject[][]
Returns an array of PSObject indicates all network adapter resources if cmdlet executes successfully.
In case of an error or warning, exception will be returned.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$credential = Get-Credential
PS C:\\> $session = Connect-iBMC -Address 10.1.1.2 -Credential $credential -TrustCert
PS C:\\> $NetworkAdaptersArray = Get-iBMCNetworkAdapters -Session $session
PS C:\\> $NetworkAdaptersArray
Host : 10.1.1.2
Id : mainboardLOM
Manufacturer : Intel
Model : X722
Status : @{State=Enabled; Health=OK}
Name : LOM
DriverName :
DriverVersion :
CardManufacturer : Huawei
CardModel : 2*10GE+2*GE
DeviceLocator : LOM
Position : mainboard
NetworkTechnology : {Ethernet}
RootBDF : 0000:19:03.0
Configuration :
NetworkPorts : {@{Name=1; Id=1; PhysicalPortNumber=1; LinkStatus=Down;
AssociatedNetworkAddresses=System.Object[]; PortType=OpticalPort; BDF=0000:1a:0
0.0; FirmwarePackageVersion=; DriverVersion=; DriverName=}, @{Name=2; Id=2;
PhysicalPortNumber=2; LinkStatus=Down; AssociatedNetworkAdd
resses=System.Object[]; PortType=OpticalPort; BDF=0000:1a:00.1; FirmwarePackageVersion=;
DriverVersion=; DriverName=}, @{Name=3; Id=3;
PhysicalPortNumber=3; LinkStatus=Up; AssociatedNetworkAddresses=System.Object[];
PortType=ElectricalPort; BDF=0000:1a:00.2; FirmwarePac
kageVersion=; DriverVersion=; DriverName=}, @{Name=4; Id=4; PhysicalPortNumber=4;
LinkStatus=Down; AssociatedNetworkAddresses=System.Ob
ject[]; PortType=ElectricalPort; BDF=0000:1a:00.3; FirmwarePackageVersion=; DriverVersion=;
DriverName=}}
Host : 10.1.1.2
Id : mainboardMEZZ1
Manufacturer : Intel
Model : 2*82599
Status : @{Health=OK; State=Enabled}
Name : MZ312
DriverName :
DriverVersion :
CardManufacturer : Huawei
CardModel : 4*10G Mezzanine Card
DeviceLocator : mainboard
Position : MEZZ1
NetworkTechnology : {Ethernet}
NetworkPorts : {@{Name=1; Id=1; PhysicalPortNumber=1; LinkStatus=;
AssociatedNetworkAddresses=System.Object[]; PortType=}, @{Name=2; Id=2; PhysicalPor
tNumber=2; LinkStatus=; AssociatedNetworkAddresses=System.Object[]; PortType=}, @{Name=3;
Id=3; PhysicalPortNumber=3; LinkStatus=; Asso
ciatedNetworkAddresses=System.Object[]; PortType=}, @{Name=4; Id=4; PhysicalPortNumber=4;
LinkStatus=; AssociatedNetworkAddresses=Syste
m.Object[]; PortType=}}
RELATED LINKS
https://github.com/Huawei/Huawei-iBMC-Cmdlets
Get-iBMCNetworkAdaptersHealth
Connect-iBMC
Disconnect-iBMC