Examples

Review the examples using flags with the wc_acct command.

  1. To delete all records older than 90 days:

    wg_acct -p 90

  2. To delete all records in all tables:

    wg_acct -p 0

  3. To delete all records older than 30 days in the WLP data packet table:

    wg_acct -p 30 -T pkt

  4. To delete all session records.

    wg_acct -p 0 -T session

  5. To filter packets for a given type, such as logout packets:

    wg_acct -T logout

  6. To filter packets for a user ID:

    wg_acct -u uid=sunny,o=hcl,c=us

    where uid=sunny,o=hcl,c=us is the full distinguished name of the user

  7. To filter packets for an IP address or host name:

    wg_acct -m lachrymose

    where lachrymose is the host name of the SafeLinx Client

  8. To filter packets for a subnet:

    wg_acct -M 255.255.255.0

    where 255.255.255.0 is the subnet mask.

  9. To filter packets for an MNC type:

    wg_acct -c sms

    where sms is the MNC type identifier

  10. To filter packets beginning at a particular minute on a specific date:

    wg_acct -s 021218.131300

    where the start time is 1:13 PM on December 18, 2002