How we can implement EEM script on Cisco routers to fetch BGP Uptime Details.
Example: If the router goes unreachable to us due to link down issue or Router reboot. After the device comes up then we should know what was the exact issue if BGP was down (Interface was up) or interface went down etc.
Please help us to know what would be EEM script to implement it.