5.2. Attaching a file to your questions for the command-line assistant
You can attach a file to the command-line assistant powered by RHEL Lightspeed. In response, the assistant can provide a tailored answer based on that file.
Prerequisites
- You have installed the command-line assistant powered by RHEL Lightspeed. See the Installing the command-line assistant powered by RHEL Lightspeed documentation.
-
You have created a readable file with the information that you want the command-line assistant to use. The following examples use the
storage_infofile, which contains information about the volume group, logical volumes and file systems on another system.
Procedure
To replicate the storage configuration on another system, first save the layout of the volume group, logical volumes, and file systems to a <storage_info> file. Then, use the command-line assistant to read this file and to incorporate that information into the next steps.
$ c --attachment <storage_info>Optionally, use the short version of the
attachmentcommand:$ c -a <storage_info>Combine the attachment with a question:
$ c --attachment <storage_info> "how can I replicate the storage configuration in another system"