PDA

View Full Version : Link UpTime Information


Tricky
17-06-2004, 21:54
Is there a way of establishing how long a link (to the cable modem) has been alive?

I am running a job on my PC which grabs a screen from the internet using a DOS browser (lynx) this job failed as the grabbed screen didn't contain a line of text I was expecting but then my job emails me at work!

I never got the email so I assume the link from the cable modem to the outside world died. I would like to check this before I write another script to check the 1st is still alive when it should be!

BBKing
18-06-2004, 10:13
Hmm. For most SACMs you should be able to do an SNMPGET of the sysuptime OID and parse that for the time. For STBs and non-SNMPable SACMs you're SOL, unfortunately. Try running a continuous ping to your gateway IP and measure the time since the last unsuccessful ping.