This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
commandlinetools [2007/05/11 10:53] faltin |
commandlinetools [2007/10/01 13:16] faltin |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Command line tools ====== | ||
+ | NAV has some useful command lines tools. We document some of them here | ||
- | This wiki page gives a structured listing of the various command line tools of NAV, with a brief explaination. | ||
- | || **Tool ** || **Subsystem** || **Description** || | + | |
- | || x || y || z || | + | ===== 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> | ||