How to check the status (active, retired , etc) of a machine?