Alarm when a mapped drive fail

Hi All,

Is there a way to make an alarm when a mapped drive fail to connect?


I made one recently. You mean a gateway mapped drive?

I setup a gateway timer script that does a os.path.exist('P:) and then emails me (I'm the main developer) if it returns false.

If you mean you want to do it through the normal tag configuration and alarming, then you could probably do it with a expression tag. You should still write a function like

def checkMappedDriveConnection():
    import os
    return os.path.exists("P:")

and then in your expression tag
runScript('someLibrary.checkMappedDriveConnection', 10000), where 10000 is the polling rate in milliseconds. This will return true or false and then you can set up some alarm pipeline for when it turns false. I have not done it this way but I don't see why it would not work.

I used P: in my examples but use whatever mapped drive letter your's is.


Hi bkarabinchak.psi,

Great mate! I think it will work. I'll let you know when I get it done.

Thanks a lot!

1 Like