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.
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)- A15% (6)
- B73% (30)
- C5% (2)
- D7% (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.
`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.
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.
`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.
`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
Community Discussion
No community discussion yet for this question.