This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
commandlinetools [2007/10/01 13:11] faltin |
commandlinetools [2007/10/01 13:16] faltin |
||
---|---|---|---|
Line 3: | Line 3: | ||
NAV has some useful command lines tools. We document some of them here | NAV has some useful command lines tools. We document some of them here | ||
+ | |||
===== navclean.py ===== | ===== navclean.py ===== | ||
+ | Machine tracker data, i.e. ARP and CAM data, are never deleted from NAV. To delete old data run ''navclean.py''. It behaves as | ||
+ | the help option explains: | ||
+ | |||
+ | <code> | ||
+ | % ./navclean.py -h | ||
+ | Delete old arp and cam records from the NAV database. | ||
+ | |||
+ | Usage: navclean.py [options...] | ||
+ | |||
+ | Unless options are given, the number of expired ARP/CAM records will | ||
+ | be printed. The default expiry limit is 6 months. To actually delete | ||
+ | the expired records, add the -f option. | ||
+ | |||
+ | Available options are: | ||
+ | |||
+ | -h, --help -- Show this help screen. | ||
+ | -q -- Be quiet. | ||
+ | -f -- Force deletion of expired records. | ||
+ | -e <date> -- Set a different expiry date (default is 6 months | ||
+ | ago) on ISO format. | ||
+ | -E <interval> -- Set a different expiry date using PostgreSQL | ||
+ | interval syntax. E.g.: '30 days', '4 weeks', '6 | ||
+ | months' | ||
+ | </code> | ||