$ 0 0 perhaps the media check shell script would work for you. https://kb.juniper.net/InfoCenter/index?page=content&id=KB20570