qmgr -c “set server job_history_enable=true” # this will enable job history for 2 weeks
qmgr -c “set server job_history_duration=720:00:00”# This will enable job history for 30 days ( job_histor_enable should be set to true)
qmgr -c “set server job_history_duration=HH:MM:SS”
Yes, please set the job_history_duration to your required time
You can write custom script that parses the PBS Pro accounting logs ( $PBS_HOME/server_priv/accounting )
or there is a commercial product called PBS Control which has the complete reporting, charting capabilities.
The latest open source release is PBS Pro version 18.1.3