Q: 4
A system administrator wants to run these two commands in Base Command Manager.
main
showprofile device status apc01
What command should the system administrator use from the management node system shell?
Options
Discussion
B looks close since -p is there, but I thought -p was mostly for specifying a profile or path, not chaining commands together. Shouldn't it be used only when you need to select something specific to run inside cmsh? Correct me if that's off.
A is right here, since
cmsh -c will run both commands as a single string and then exit, which matches what the system admin wants. Haven't seen cmsh-system used like in D. If anyone's seen something different, let me know.My pick: it's A here since
cmsh -c lets you run both commands in sequence straight from the shell, non-interactively. The -p flag in B isn't right for passing multiple commands, and the other options don't really line up with Base Command Manager syntax. If anyone's seen cmsh accept -p for something like this, let me know, but I doubt it.C/D? Had something like this in a mock, pretty sure A is the one that works from shell without interactive mode.
A
Seen similar on practice tests and official docs, always A. Check the admin guide for the right cmsh flags if unsure.
Not B, A does it. The -c switch lets you chain both commands in a single shell call, just like the question wants. -p is for path only, so can't be used here. Pretty sure that's the right syntax but happy to hear if I'm missing something.
I don’t think it’s A. B looks right since -p could be for path or profile, so it might let you run sequences like that too.
A is wrong, use official admin guide or lab it in Base Command Manager for this syntax.
B , since -p could let you set the path and then run the commands in sequence. Maybe I'm missing a syntax thing but looks close to what you'd need. Happy to be corrected if I'm off here.
Be respectful. No spam.