Thursday, August 25, 2016

Get Chassis SFP info


For years we have been forced to send a chassis dump to HP for them to tells us if we might have a bad FC SFP.  Looking into something today I found the magic command.

 

You need to ssh directly into the Interconnect to do this.  Also this works for the Ethernet ports also, looking for flapping ports.  To get the port name run the command:  show uplinkport

 

Then you can run this command

->show statistics enc2:3:1

=============================================
Name                         Value
=============================================
numAddressErrors             0
numBBCreditZero              3686202469
numBytesRx                   14626120606464
numBytesTx                   46264920278580
numCRCErrors                 0
numClass3Discards            0
numDelimiterErrors           0
numEncodingDisparityErrors   0
numFBSYFrames                0
numFRJTFrames                0
numFramesRx                  14417009468
numFramesTooLong             0
numFramesTx                  25907421945
numInputBuffersFull          0
numInvalidOrderedSets        174004860
numInvalidTransmissionWords  863573
numLRsRx                     32
numLRsTx                     9
numLinkFailures              5954
numLossOfSignal              58944
numLossOfSync                58919
numMcastFramesRx             0
numMcastFramesTx             0
numMcastTimeouts             0
numPBSYFrames                0
numPRJTFrames                0
numPrimitiveSeqProtocolErr   0
numRxBadEOFs                 0
numRxCRCs                    0
numRxClass1Frames            0
numRxClass2Frames            0
numRxClass3Frames            1532107566
numRxEncOutFrames            863573
numRxLCs                     6
numRxOfflineSequences        9
numRxTruncFrames             0
numTooManyRdys               0
numTxOfflineSequences        28
rxBytePeakRate               58194757
rxByteRate                   0
rxFramePeakRate              120552
rxFrameRate                  0
samplingRate                 5
sfpStatus                    SFP_IN_SYNC
txBytePeakRate               85914851
txByteRate                   0
txFramePeakRate              150399
txFrameRate                  0

No comments: