Última atividade 1775269017

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

santiago's Avatar santiago revisou este gist 1775269017. Ir para a revisão

Sem alterações

santiago's Avatar santiago revisou este gist 1775268969. Ir para a revisão

1 file changed, 13 insertions

copyHostsInfo.sh(arquivo criado)

@@ -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' &
Próximo Anterior