santiago

santiago / copyHostsInfo.sh

Last active 4 weeks ago

Like 0

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

santiago revised this gist 7 months ago · bf91d7e

No changes

santiago revised this gist 7 months ago · b79b922

1 file changed, 13 insertions

copyHostsInfo.sh (file created)
@@ -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' &