ugtrain: write discovery stage 1 data to a file