« Promox divers » : différence entre les versions
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 23 : | Ligne 23 : | ||
printf "%-25s %8.2fM / %8.2fM (%s%%)\n", $1, used, $2, $3 | printf "%-25s %8.2fM / %8.2fM (%s%%)\n", $1, used, $2, $3 | ||
}' | sort -k2 -hr | }' | sort -k2 -hr | ||
</syntaxhighlight> | |||
ressource_list.sh | |||
<syntaxhighlight lang="sh" copy> | |||
#Script bash pour afficher les services (LXE, VM) | |||
for id in $(qm list | awk 'NR>1 {print $1}'); do | |||
echo "VM $id" | |||
qm config $id | grep -E '^(cores|memory|scsi0|virtio0|sata0)' | |||
echo | |||
done | |||
for id in $(pct list | awk 'NR>1 {print $1}'); do | |||
echo "LXC $id" | |||
pct config $id | grep -E '^(cores|memory|rootfs|mp0)' | |||
echo | |||
done | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Catégorie:Proxmox]] | [[Catégorie:Proxmox]] | ||