guardar_informacion_del_hardware_en_equipo_remoto
Running lshw on Proxmox and Transferring Output
You want to run the `lshw` command locally on your Proxmox hypervisor and then transfer the output to your web server. You can achieve this by using the `scp` command to securely copy the file from your Proxmox hypervisor to your web server. Here's how you can do it:
lshw > lshw.txt && scp lshw.txt facundo@srv00.facundoitest.space:/home/facundo/pve1lshw.txt
Explanation of the command:
- lshw > lshw.txt: This runs the `lshw` command locally on your Proxmox hypervisor and saves the output to a file named `lshw.txt` in the current directory.
- &&: This is a logical operator in bash that allows you to execute multiple commands sequentially. The command following `&&` will only run if the preceding command succeeds.
- scp lshw.txt [email protected]:/home/facundo/pve1lshw.txt: This securely copies the `lshw.txt` file from your Proxmox hypervisor to your web server. Replace `facundo` with your actual username on the web server, and adjust the destination directory `/home/facundo/pve1lshw.txt` as needed.
This command will execute `lshw` locally on your Proxmox hypervisor and then transfer the output file `lshw.txt` to your web server.
Once the output of the `lshw` command is transferred to the remote server, you can access it from anywhere with appropriate permissions.
For more details on using `lshw` and `scp`, refer to their respective man pages (`man lshw` and `man scp`).
guardar_informacion_del_hardware_en_equipo_remoto.txt · Last modified: 2024/10/17 21:42 by 127.0.0.1
