nerdexam
IBM

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.

Performance Monitoring and Tuning

Question

What will the following script have NMON do?

Exhibit

000-221 question #200 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)
  • A
    16% (6)
  • B
    3% (1)
  • C
    73% (27)
  • D
    8% (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.

ACollect data every hour in /var/log/nmon

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.

BCollect data every 5 minutes for 24 hours

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.

CCollect data every 5 minutes until midnightCorrect

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.

DCollect 300 data snapshots in /var/log/nmon

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

#nmon#performance monitoring#data collection#scripting

Community Discussion

No community discussion yet for this question.

Full 000-221 Practice