OpenVZ Forum


Home » General » Support » Viewing specific VPS's user_beancounters from the node.
Viewing specific VPS's user_beancounters from the node. [message #8687] Sat, 02 December 2006 01:53 Go to next message
devonblzx is currently offline  devonblzx
Messages: 127
Registered: December 2006
Senior Member
Is it possible with some utility or something to view a specific VPS's user_beancounters file from the main node?

When I try to go to /vz/root/VPSID/proc/user_beancounters it displays the same information as whats in my /proc/user_beancounters.... I'm trying to write a script to display this information as well as the memory information on a web site run on the main node and this is causing me some problems.

Any help is appreciated. Thanks in advance,

Devon


http://static.openvz.org/userbars/openvz-user-2.png
ByteOnSite President
Re: Viewing specific VPS's user_beancounters from the node. [message #8690 is a reply to message #8687] Sat, 02 December 2006 02:27 Go to previous messageGo to next message
tanfwc is currently offline  tanfwc
Messages: 18
Registered: November 2006
Junior Member
Have you try this command?

vzctl exec VEID cat /proc/user_beancounters


http://static.openvz.org/userbars/openvz-user.png
Re: Viewing specific VPS's user_beancounters from the node. [message #8691 is a reply to message #8687] Sat, 02 December 2006 02:57 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Hi, this is the same question I raised a few days ago.

http://forum.openvz.org/index.php?t=tree&goto=8650&# msg_8650

The only way is to "vzctl exec VEID cat FILE"

Rick Blundell


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
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
Previous Topic: *SOLVED* Strange umount issue
Next Topic: Ideal Cento's Setup
Goto Forum:
  


Current Time: Sun Nov 17 10:51:19 GMT 2024

Total time taken to generate the page: 0.02891 seconds