Palo Alto – Display Port Information (media type, interface counter, speed/duplex, etc…)

There are two good commands to run:

To get media type info:
s = slot
p = port

show system state filter-pretty sys.s1.p11.phy

corderoPA-A(active)> show system state filter-pretty sys.s1.p11.phy

sys.s1.p11.phy: {
  link-partner: { },
  media: SFP-Plus-Fiber,
  sfp: {
    connector: LC,
    encoding: Reserved,
    identifier: SFP,
    transceiver: 10000B-SR,
    vendor-name: AVAGO           ,
    vendor-part-number: AFBR-709SMZ     ,
    vendor-part-rev: G4.1,
  },
  type: Ethernet,
}

To get speed/duplex/state, counters and more:

show interface ethernet1/11

corderoPA-A(active)> show interface ethernet1/11

--------------------------------------------------------------------------------
Name: ethernet1/11, ID: 74
Link status:
  Runtime link speed/duplex/state: 10000/full/up
  Configured link speed/duplex/state: auto/auto/auto
MAC address:
  Port MAC address b4:0c:25:e0:40:4a
Operation mode: layer3
Untagged sub-interface support: no
--------------------------------------------------------------------------------
Name: ethernet1/11, ID: 74
Operation mode: layer3
Virtual router VR_Inet-Cluster
Interface MTU 1500
Interface IP address: 192.168.11.1/24
Interface management profile: IMP-DMZ
  ping: yes  telnet: no  ssh: no  http: no  https: no
  snmp: no  response-pages: no  userid-service: no
Service configured: OSPF
Zone: DMZ-WEB, virtual system: vsys1
Adjust TCP MSS: no
Policing: no
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Physical port counters read from MAC:
--------------------------------------------------------------------------------
rx-broadcast                  284072
rx-bytes                      2405152448136
rx-multicast                  75883649
rx-unicast                    3503761976
tx-broadcast                  321371
tx-bytes                      2990440661797
tx-multicast                  0
tx-unicast                    3922675224
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Detailed physical port counters read from MAC:
--------------------------------------------------------------------------------
snmpBcmReceivedPkts1024to1518Octets       1209785553
snmpBcmReceivedPkts128to255Octets         304756008
snmpBcmReceivedPkts256to511Octets         459402838
snmpBcmReceivedPkts512to1023Octets        395603771
snmpBcmReceivedPkts64Octets               863420597
snmpBcmReceivedPkts65to127Octets          346960930
snmpBcmRxFecUncorrectable                 3946
snmpBcmTransmittedPkts1024to1518Octets    1762618196
snmpBcmTransmittedPkts128to255Octets      291478082
snmpBcmTransmittedPkts256to511Octets      181806183
snmpBcmTransmittedPkts512to1023Octets     153035621
snmpBcmTransmittedPkts64Octets            1172676788
snmpBcmTransmittedPkts65to127Octets       361381725
snmpDot1dTpPortInFrames                   3579929697
snmpDot1dTpPortOutFrames                  3922996595
snmpEtherStatsBroadcastPkts               605443
snmpEtherStatsMulticastPkts               75883649
snmpEtherStatsOctets                      5395593109933
snmpEtherStatsPkts                        7502926292
snmpEtherStatsPkts1024to1518Octets        2972403749
snmpEtherStatsPkts128to255Octets          596234090
snmpEtherStatsPkts256to511Octets          641209021
snmpEtherStatsPkts512to1023Octets         548639392
snmpEtherStatsPkts64Octets                2036097385
snmpEtherStatsPkts65to127Octets           708342655
snmpEtherStatsRXNoErrors                  3579929697
snmpEtherStatsTXNoErrors                  3922996595
snmpIfHCInBroadcastPkts                   284072
snmpIfHCInMulticastPkts                   75883649
snmpIfHCInOctets                          2405152448136
snmpIfHCInUcastPkts                       3503761976
snmpIfHCOutBroadcastPckts                 321371
snmpIfHCOutOctets                         2990440661797
snmpIfHCOutUcastPkts                      3922675224
snmpIfInBroadcastPkts                     284072
snmpIfInMulticastPkts                     75883649
snmpIfInNUcastPkts                        76167721
snmpIfInOctets                            2405152448136
snmpIfInUcastPkts                         3503761976
snmpIfOutBroadcastPkts                    321371
snmpIfOutNUcastPkts                       321371
snmpIfOutOctets                           2990440661797
snmpIfOutUcastPkts                        3922675224
--------------------------------------------------------------------------------

Hardware interface counters read from CPU:
--------------------------------------------------------------------------------
bytes received                           488872181485
bytes transmitted                        1996346938010
packets received                         1616889640
packets transmitted                      2101049607
receive incoming errors                  0
receive discarded                        0
receive errors                           0
packets dropped                          0
--------------------------------------------------------------------------------

Logical interface counters read from CPU:
--------------------------------------------------------------------------------
bytes received                           488842614844
bytes transmitted                        1996346938010
packets received                         1616608149
packets transmitted                      2101049607
receive errors                           0
packets dropped                          75497788
packets dropped by flow state check      195
forwarding errors                        0
no route                                 0
arp not found                            713666
neighbor not found                       0
neighbor info pending                    0
mac not found                            0
packets routed to different zone         0
land attacks                             0
ping-of-death attacks                    0
teardrop attacks                         0
ip spoof attacks                         0
mac spoof attacks                        0
ICMP fragment                            0
layer2 encapsulated packets              0
layer2 decapsulated packets              0
tcp cps                                  0
udp cps                                  0
sctp cps                                 0
other cps                                0
--------------------------------------------------------------------------------