Generating and retrieving a dump file from a remote device