team,
i am looking for some tips to find SFP details(vendor, partnumber,serialnumber ) using powershell. any tips or ideas
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!
Thanks Jonathan,
i am trying use "get-ncnetport" and "get-ncnode" . we don't have FCports