nerdexam
IBM

000-221 · Question #117

The/usr/sbin/clcmd command is not working as documented in an administrator's reference. How can the administrator determine if the command being run is at the same level as the command being…

The correct answer is B. Use Islpp-wto get the fileset name, then check the level of the file set with lslpp-1. To verify a command's installed level matches documentation, an administrator must first identify which fileset owns the file, then query that fileset's installed level.

System Management

Question

The/usr/sbin/clcmd command is not working as documented in an administrator's reference. How can the administrator determine if the command being run is at the same level as the command being referenced in the documentation?

Options

  • AGet the fileset name from Isipp-f, then check the level of the file set with lslpp-1.
  • BUse Islpp-wto get the fileset name, then check the level of the file set with lslpp-1.
  • CUse lslpp-1 to determine the fileset name and check the level.
  • DUse Is-I to determine the last modified date of the command.

How the community answered

(41 responses)
  • A
    15% (6)
  • B
    73% (30)
  • C
    5% (2)
  • D
    7% (3)

Why each option

To verify a command's installed level matches documentation, an administrator must first identify which fileset owns the file, then query that fileset's installed level.

AGet the fileset name from Isipp-f, then check the level of the file set with lslpp-1.

`lslpp -f` lists files contained within a named fileset, which requires already knowing the fileset name - it cannot perform a reverse lookup from a file path to its owning fileset.

BUse Islpp-wto get the fileset name, then check the level of the file set with lslpp-1.Correct

The `lslpp -w /usr/sbin/clcmd` command performs a reverse lookup, identifying which installed fileset owns a specific file path. Once the owning fileset name is known, `lslpp -l <fileset>` displays the installed level, allowing direct comparison against the documentation's required version.

CUse lslpp-1 to determine the fileset name and check the level.

`lslpp -l` lists filesets by name and shows their levels, but it cannot accept a file path as input to determine which fileset owns that file.

DUse Is-I to determine the last modified date of the command.

`ls -l` shows the file's last modified timestamp from the filesystem, which does not reflect the installed software package version or level.

Concept tested: AIX lslpp reverse file-to-fileset lookup

Source: https://www.ibm.com/docs/en/aix/7.3?topic=l-lslpp-command

Topics

#lslpp -w#fileset level#installp#command version

Community Discussion

No community discussion yet for this question.

Full 000-221 Practice