Examples
Review the examples using flags with the wc_acct command.
- To delete all records
older than 90 days:
wg_acct -p 90 - To delete all records in all tables:
wg_acct -p 0 - To delete all records older than 30 days in the WLP data packet table:
wg_acct -p 30 -T pkt - To delete all session records.
wg_acct -p 0 -T session - To filter packets for a given type, such as logout packets:
wg_acct -T logout - To filter packets for a user ID:
wg_acct -u uid=sunny,o=hcl,c=uswhere uid=sunny,o=hcl,c=us is the full distinguished name of the user
- To filter packets for an IP address or host name:
wg_acct -m lachrymosewhere lachrymose is the host name of the SafeLinx Client
- To filter packets for a subnet:
wg_acct -M 255.255.255.0where 255.255.255.0 is the subnet mask.
- To filter packets for an MNC type:
wg_acct -c smswhere sms is the MNC type identifier
- To filter packets beginning at a particular minute on a specific date:
wg_acct -s 021218.131300where the start time is 1:13 PM on December 18, 2002