OpenVZ Forum


Home » General » Support » Viewing specific VPS's user_beancounters from the node.
Re: Viewing specific VPS's user_beancounters from the node. [message #8694 is a reply to message #8687] Sat, 02 December 2006 18:49 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

i used this, simple bash simple script "vzubc"

#!/bin/sh
# Copyright (C) 2006 SYSTS . ORG All rights reserved.
# Thorsten Schifferdecker <tsd@debian.systs.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# Show the ubc (User Beancounters) of given VE or all

VEID=$1
UBC_FILE="/proc/user_beancounters"

if [ -z "$VEID" ]; then
cat $UBC_FILE
else
sed -e "/$VEID:/,/numiptent/!d;" -e '/dummy/d' $UBC_FILE
fi

# EOF

so you can use

# vzubc $VEID

or

# vzubc
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Strange umount issue
Next Topic: Ideal Cento's Setup
Goto Forum:
  


Current Time: Sun Oct 13 13:43:28 GMT 2024

Total time taken to generate the page: 0.06068 seconds