Unix Incantations
Monday, March 5, 2012
How much memory have you allocated?
for i in `virsh list | grep running | cut -d " " -f 3 | grep -v 9`; do virsh dumpxml $i | grep memory | sed s/\
// | sed s/\<\\/memory\>// ; done | xargs | sed s/\ /+/g | bc
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment