From c37a6dd8a2f6a34f5078f99881387938b3ee7284 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Tue, 28 May 2024 11:07:13 -0600 Subject: [PATCH] Add files via upload --- proxmox/proxmox-query-vm-agents.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/proxmox/proxmox-query-vm-agents.sh b/proxmox/proxmox-query-vm-agents.sh index 7484499..060bf9c 100644 --- a/proxmox/proxmox-query-vm-agents.sh +++ b/proxmox/proxmox-query-vm-agents.sh @@ -13,6 +13,8 @@ for vmid in $(qm list |grep running |awk '{print $1}'); do continue; fi qm guest cmd $vmid get-host-name |tr -d '{}' |awk 'NF>0' + qm guest cmd 104 network-get-interfaces |grep 'ip-address" :' +# pvesh get /nodes/proxmox/qemu/104/agent/network-get-interfaces -o json-pretty |grep 'ip-address" :' # qm guest cmd $vmid get-osinfo done @@ -22,3 +24,11 @@ qm list VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID 100 lmde stopped 4096 21.00 0 104 pfsense-272-dhcp-for-HO running 1500 20.00 222982 + +NOTE for lxc containers: + +# lxc-info -i -n 105 +IP: 172.16.25.64 +IP: 192.168.1.253 +IP: 2600:100e:a001:1a9c:be24:11ff:fe96:3df9 +IP: 2600:100e:a011:4e4b:be24:11ff:fe96:3df9