ansitest/proxmox/proxmox-get-lxc-container-ips.sh

13 lines
163 B
Bash
Raw Normal View History

2024-05-28 11:05:53 -06:00
#!/bin/bash
pct list
echo '====='
for ctr in $(pct list |grep running |awk '{print $1}'); do
echo "VMID $ctr"
lxc-info -i -n $ctr
echo '====='
done
exit;