最后活跃于 1775269017

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

santiago's Avatar santiago 修订了这个 Gist 1775269017. 转到此修订

没有任何变更

santiago's Avatar santiago 修订了这个 Gist 1775268969. 转到此修订

1 file changed, 13 insertions

copyHostsInfo.sh(文件已创建)

@@ -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' &
上一页 下一页