ONTAP Hardware

Get SFP specific details using powershell

vishwand
3,648 Views

team,

 

i am looking for some tips to find SFP details(vendor, partnumber,serialnumber ) using powershell. any tips or ideas

1 ACCEPTED SOLUTION

jcolonfzenpr
3,627 Views

Hi,

 

You can use the Get-NcFcpAdapter command:

 

Get-NcNode | Get-NcFcpAdapter | Select-Object node,Adapter,portname,SfpPartNumber,SfpSerialNumber,SfpVendorName

 

 

Here are all the properties of the cmdlet:

Adapter                                        MaxSpeedSpecified                              SfpEncoding                                    
CacheLineSize                                  MediaType                                      SfpFcSpeedcapabilities                         
CacheLineSizeSpecified                         MpiFirmwareRev                                 SfpFormfactor                                  
ConnectionEstablished                          NcController                                   SfpPartNumber                                  
DataLinkRate                                   Node                                           SfpRev                                         
DataLinkRateSpecified                          NodeName                                       SfpRxPower                                     
ExternalGbicEnabled                            PacketSize                                     SfpSerialNumber                                
ExternalGbicEnabledSpecified                   PacketSizeSpecified                            SfpTxPower                                     
FabricEstablished                              PciBusWidth                                    SfpVendorName                                  
FabricEstablishedSpecified                     PciBusWidthSpecified                           SfpVendorOui                                   
FabricName                                     PciClockSpeed                                  SfpWavelength                                  
FirmwareRev                                    PciClockSpeedSpecified                         SfpWavelengthSpecified                         
HardwareRev                                    PhyFirmwareRev                                 Speed                                          
InfoName                                       PhysicalDataLinkRate                           SramParityEnabled                              
IsSfpDiagnosticsInternallyCalibrated           PhysicalDataLinkRateSpecified                  SramParityEnabledSpecified                     
IsSfpDiagnosticsInternallyCalibratedSpecified  PhysicalLinkState                              State                                          
IsSfpOpticalTransceiverValid                   PhysicalProtocol                               StatusAdmin                                    
IsSfpOpticalTransceiverValidSpecified          PortAddress                                    StatusExtended                                 
IsSfpRxPowerInRange                            PortAddressSpecified                           SwitchPort                                     
IsSfpRxPowerInRangeSpecified                   PortName                                       VlanId                                         
IsSfpTxPowerInRange                            PreloadTableRev                                VlanIdSpecified                                
IsSfpTxPowerInRangeSpecified                   SfpConnector                                   
MaxSpeed                                       SfpDateCode         

 

Another method may be to use the cmdlet Invoke-NcSsh to call sysconfig -a

 

Invoke-NcSsh "set adv -c off; sysconfig -a"

 

Hope this helps!

Jonathan Colón | Blog | Linkedin

View solution in original post

2 REPLIES 2

jcolonfzenpr
3,628 Views

Hi,

 

You can use the Get-NcFcpAdapter command:

 

Get-NcNode | Get-NcFcpAdapter | Select-Object node,Adapter,portname,SfpPartNumber,SfpSerialNumber,SfpVendorName

 

 

Here are all the properties of the cmdlet:

Adapter                                        MaxSpeedSpecified                              SfpEncoding                                    
CacheLineSize                                  MediaType                                      SfpFcSpeedcapabilities                         
CacheLineSizeSpecified                         MpiFirmwareRev                                 SfpFormfactor                                  
ConnectionEstablished                          NcController                                   SfpPartNumber                                  
DataLinkRate                                   Node                                           SfpRev                                         
DataLinkRateSpecified                          NodeName                                       SfpRxPower                                     
ExternalGbicEnabled                            PacketSize                                     SfpSerialNumber                                
ExternalGbicEnabledSpecified                   PacketSizeSpecified                            SfpTxPower                                     
FabricEstablished                              PciBusWidth                                    SfpVendorName                                  
FabricEstablishedSpecified                     PciBusWidthSpecified                           SfpVendorOui                                   
FabricName                                     PciClockSpeed                                  SfpWavelength                                  
FirmwareRev                                    PciClockSpeedSpecified                         SfpWavelengthSpecified                         
HardwareRev                                    PhyFirmwareRev                                 Speed                                          
InfoName                                       PhysicalDataLinkRate                           SramParityEnabled                              
IsSfpDiagnosticsInternallyCalibrated           PhysicalDataLinkRateSpecified                  SramParityEnabledSpecified                     
IsSfpDiagnosticsInternallyCalibratedSpecified  PhysicalLinkState                              State                                          
IsSfpOpticalTransceiverValid                   PhysicalProtocol                               StatusAdmin                                    
IsSfpOpticalTransceiverValidSpecified          PortAddress                                    StatusExtended                                 
IsSfpRxPowerInRange                            PortAddressSpecified                           SwitchPort                                     
IsSfpRxPowerInRangeSpecified                   PortName                                       VlanId                                         
IsSfpTxPowerInRange                            PreloadTableRev                                VlanIdSpecified                                
IsSfpTxPowerInRangeSpecified                   SfpConnector                                   
MaxSpeed                                       SfpDateCode         

 

Another method may be to use the cmdlet Invoke-NcSsh to call sysconfig -a

 

Invoke-NcSsh "set adv -c off; sysconfig -a"

 

Hope this helps!

Jonathan Colón | Blog | Linkedin

vishwand
3,625 Views

Thanks Jonathan,

i am trying use "get-ncnetport" and "get-ncnode" . we don't have FCports

 

Public