guardar_informacion_del_hardware_en_equipo_remoto
This is an old revision of the document!
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
- 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/user/nginx/www/: This securely copies the lshw.txt file from your Proxmox hypervisor to your web server. Replace user with your actual username on the web server, and adjust the destination directory /home/user/nginx/www/ 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.1714790202.txt.gz · Last modified: 2024/10/17 21:42 (external edit)
