Zuletzt aktiv 1775269017

copy proxmoxHost info as json inside one LXC used to parse it and display it

santiago's Avatar santiago hat die Gist bearbeitet 1775269017. Zu Änderung gehen

Keine Änderungen

santiago's Avatar santiago hat die Gist bearbeitet 1775268969. Zu Änderung gehen

1 file changed, 13 insertions

copyHostsInfo.sh(Datei erstellt)

@@ -0,0 +1,13 @@
1 + #!/bin/bash
2 +
3 + CTN=132
4 +
5 + sudo pvesh get /nodes/proxmoxA/status -o json-pretty | sudo pct exec $CTN -- sh -c 'cat > /var/www/html/nodes/proxmoxA.json' &
6 +
7 + sudo pvesh get /nodes/proxmoxB/status -o json-pretty | sudo pct exec $CTN -- sh -c 'cat > /var/www/html/nodes/proxmoxB.json' &
8 +
9 + sudo pvesh get /nodes/proxmoxCase/status -o json-pretty | sudo pct exec $CTN -- sh -c 'cat > /var/www/html/nodes/proxmoxCase.json' &
10 +
11 + sudo pvesh get /nodes/proxmoxLarge/status -o json-pretty | sudo pct exec $CTN -- sh -c 'cat > /var/www/html/nodes/proxmoxLarge.json' &
12 +
13 + sudo pvesh get /nodes/proxmoxGPU/status -o json-pretty | sudo pct exec $CTN -- sh -c 'cat > /var/www/html/nodes/proxmoxGPU.json' &
Neuer Älter