Configuring cisco with NTP server and correct timestamps

As I was setting up the cisco switches at work with SNMP and syslog traps to send messages to my PRTG server, I realized a couple of anomalies with the network. There were a couple of flapping ports and upon further investigation figured some of them are just failing cable connections. However, I still can’t figure out the reason behind the others.

At first I noticed that the clock on the switches were set back at 1993, that did not help me at all. So what I did was configured the DNS server on the router and set up ntp.