Purging existing records

7.1 z/VM guest

By default, existing records for a particular z/VM® recording service are purged automatically when the corresponding device is opened or closed.

About this task

You can use a device's autopurge attribute to prevent records from being purged when a device is opened or closed. You can use a device's purge attribute to purge records for a particular device at any time without having to open or close the device.

Procedure

To be able to open or close a device without purging existing records write 0 to the device’s autopurge attribute. To restore automatic purging of existing records, write 1 to the device’s autopurge attribute. You can read the autopurge attribute to find the current setting. Issue a command of this form:
# echo <flag> > /sys/bus/iucv/drivers/vmlogrdr/<device>/autopurge
where <flag> is either 0 or 1, and <device> is one of: logrec, symptom, or account.
To purge existing records for a particular device without opening or closing the device write 1 to the device’s purge attribute. Issue a command of this form:
# echo 1 > /sys/bus/iucv/drivers/vmlogrdr/<device>/purge
where <device> is one of: logrec, symptom, or account.

Examples

  • In this example, the setting of the autopurge attribute for the logrec device is checked first, then automatic purging is switched off:
    # cat /sys/bus/iucv/drivers/vmlogrdr/logrec/autopurge
    1
    # echo 0 > /sys/bus/iucv/drivers/vmlogrdr/logrec/autopurge
  • In this example, the existing records for the symptom device are purged:
    # echo 1 > /sys/bus/iucv/drivers/vmlogrdr/symptom/purge