000-221 · Question #200
What will the following script have NMON do?
The correct answer is C. Collect data every 5 minutes until midnight. NMON supports time-bound collection using the -t flag, which stops collection at midnight, combined with -s to set the snapshot interval in seconds.
Question
What will the following script have NMON do?
Exhibit
Options
- ACollect data every hour in /var/log/nmon
- BCollect data every 5 minutes for 24 hours
- CCollect data every 5 minutes until midnight
- DCollect 300 data snapshots in /var/log/nmon
How the community answered
(37 responses)- A16% (6)
- B3% (1)
- C73% (27)
- D8% (3)
Why each option
NMON supports time-bound collection using the -t flag, which stops collection at midnight, combined with -s to set the snapshot interval in seconds.
Collecting data every hour in a specific directory would require -s 3600 for the interval and -m to specify the output path, which does not match the flags implied by the script.
Collecting data for exactly 24 hours requires the -c flag with a calculated snapshot count (such as -c 288 for 5-minute intervals over 24 hours), not the -t midnight termination flag.
The -t flag instructs NMON to capture snapshots until midnight, and -s 300 sets the interval to 300 seconds (5 minutes), so the script collects performance data every 5 minutes and terminates automatically at the end of the current day regardless of when it was started.
Collecting exactly 300 snapshots requires -c 300 to specify a fixed count limit, but the script uses a time-based termination condition rather than a count-based one.
Concept tested: NMON time-bound performance data collection flags
Source: https://www.ibm.com/docs/en/aix/7.3?topic=n-nmon-command
Topics
Community Discussion
No community discussion yet for this question.
