I have a switch 2960 that I am monitoring through continuous ping from host pc A. I noticed after a couple of hours of continuous ping that the ping stops from the host A while another host in the same location can still ping the switch. After stopping the ping for couple of hours or some time on host A and re-initiating it then the ping works. If I do debug on the switch I see that it is receiving the ping from host A at the time where the ping gives "request timeout" but somehow it seems the ping is not getting out of the switch.
The switch's configuration is super-plain simple, nothing configured on the ports and we just have vlan1 with ip address and a trunk port via uplink.
Code was upgraded to c2960-lanbasek9-mz.122-58.SE2.bin and still same problem.
Another test that you could try to see if it's your switch is start a ping from Host A to the switch and start another ping from Host A through the switch to another device. If the ping through the switch to the other device never stops, your management interface on the switch could be having an issue (it's virtual, so it could just be the switch itself). If the ping through the switch never stops, then you're port is obviously still up.
If both stop responding, then you could have a problem with the host that you're ping from. It could be having problems with cabling, bad port on the switch, or a bad nic, but you'll know it's definitely losing connection to the network at that point.