cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10421
Views
10
Helpful
1
Replies

Switch port last used

umakanthreddy
Level 1
Level 1

Hi,

Can anybody help me on this .....

How to get the details of the switch port that has been used in a particular switch ?

i.e the exact time and date when that switch port  is last used.

Thanks in advance!!!

1 Reply 1

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi,

Can anybody help me on this .....

How to get the details of the switch port that has been used in a particular switch ?

i.e the exact time and date when that switch port  is last used.

Thanks in advance!!!

Hi,

To know what are all the port status in switch type command show ip int brief which will tell you the current status of the ports which are connected or down.

and to know the detail of the port just checj show int gi0/1 the following output can tell you the time of frame it has countered.

DCMGTSW01#sh int gigabitEthernet 0/1
GigabitEthernet0/1 is up, line protocol is up (connected)
  Hardware is Gigabit Ethernet, address is 001e.f6d6.e401 (bia 001e.f6d6.e401)
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s, media type is 10/100/1000BaseTX
  input flow-control is off, output flow-control is unsupported
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 3000 bits/sec, 3 packets/sec
  5 minute output rate 7000 bits/sec, 10 packets/sec
     107197874 packets input, 45163372531 bytes, 0 no buffer
     Received 665990 broadcasts (0 multicasts)
     0 runts, 1 giants, 0 throttles
     8 input errors, 2 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 65745 multicast, 0 pause input
     0 input packets with dribble condition detected
     320835390 packets output, 142829357746 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 PAUSE output
     0 output buffer failures, 0 output buffers swapped out

If you want a proper detail then you should have snmp server with snmp configuration in switches so that proper details of the up/down status of the switch ports will be know.

Hope to help !!

Ganesh.H

Remember to rate the helpful post

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card