LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » LxCenter » Command-line Management » [FIXED] BUG: VPS Limit not updated after command line
[FIXED] BUG: VPS Limit not updated after command line [message #52219] Thu, 01 January 2009 16:12 Go to next message
drank is currently offline drank  Bulgaria
Messages: 1324
Registered: June 2007
Senior Master
Hi, LxHelp

I set the Central Backup flag for a VPS via commandline like this:
# /script/update --subaction=limit --class=vps --name=myvps.vm --v-centralbackup_flag=on  
update succesfully executed

and then checked that it is set properly:
[root@srv001 ~]# /script/getproperty --class=vps --name=myvps.vm --v-centralbackup_flag=
on

But when I open the Limit page of this VPS via the CP, the checkbox for central backup is still unchecked.


Dragomir Denev
DGM
www.dgm.bg

[Updated on: Fri, 02 January 2009 08:32]

Report message to a moderator

Re: BUG: VPS Limit not updated after command line [message #52238 is a reply to message #52219] Fri, 02 January 2009 01:59 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
Sorry. The quota variables are all inside another object called as priv . To set the quota variable, you should set it as:

 
 /script/update --class=vps --name=vps.vm --subaction=limit --v-priv-centralbackup_flag=on
 


Please note the priv-

And to get the limit, you should use:

 
 /script/getproperty --class=vps --name=vps.vm --v-priv-centralbackup_flag=
 


The [b] hiphen [b] actually shows that the variables is in another object.


thanks.


On Fri, Jan 02, 2009 at 12:18:28PM +0530, Lxhelp wrote:
> It could be due to browser cache or something. Can you just refresh the page and see?
>
> thanks.
>


Re: BUG: VPS Limit not updated after command line [message #52281 is a reply to message #52238] Fri, 02 January 2009 06:13 Go to previous messageGo to next message
drank is currently offline drank  Bulgaria
Messages: 1324
Registered: June 2007
Senior Master
Thank you for the help. How would the reflect command look like then to get this information? I mean:
# /script/reflect --type=property --class=vps

does not display the priv object.


Dragomir Denev
DGM
www.dgm.bg
Re: BUG: VPS Limit not updated after command line [message #52283 is a reply to message #52281] Fri, 02 January 2009 06:18 Go to previous messageGo to next message
drank is currently offline drank  Bulgaria
Messages: 1324
Registered: June 2007
Senior Master
Could you then update the reflect command to display the proper variables since what I executed was:
# /script/reflect --type=update --subaction=limit --class=vps --name=vps.vm
                              disk_usage Disk:Disk Quota (MB) 
                              backup_num Backup:Number Of Backups 
                            memory_usage Burst Mem:Burstable Memory (MB)(openvz Only) 
                           guarmem_usage Guaranteed:Guaranteed Memory (MB)(openvz Only) 
                           process_usage Process:Number Of Processes(openvz Only) 
                           realmem_usage Realmem:Real Memory Usage (MB)(xen Only) 
                               cpu_usage Cpu:Cpu Usage (%) 100/CPU 
                           traffic_usage Traffic:Traffic (MB/month) 
                            uplink_usage Uplink Traffic(KB/s) 
                              swap_usage Swap:Swap (MB)(xen Only) 
                           cpuunit_usage CpuUNIT:CPU UNITS (default 1000) 
                            ioprio_usage Ioprio:IO Priority (0-7) 
                              ncpu_usage CpuNum:Number Of CPUS 
                           iptables_flag Enable Iptables (only For Openvz) 
                     backupschedule_flag Allow Backup Schedule 
                             backup_flag Allow Backing Up 
                   secondlevelquota_flag Second Level Quota (only For Openvz) 
                   managereversedns_flag Can Manage Reverse Dns 
                          managedns_flag Can Manage Dns 
                         rebuildvps_flag Can Rebuild Vps 
                      centralbackup_flag Enable Central Backup

and it did not show the priv properties. Thank you.


Dragomir Denev
DGM
www.dgm.bg
Re: BUG: VPS Limit not updated after command line [message #52287 is a reply to message #52283] Fri, 02 January 2009 06:48 Go to previous messageGo to next message
Lxhelp
Messages: 23691
Registered: July 2006
The Champion
It is there now.

thanks.


On Fri, Jan 02, 2009 at 11:18:31AM -0000, Dragomir Denev wrote:
>
>
> Could you then update the reflect command to display the proper variables since what I executed was:


Re: BUG: VPS Limit not updated after command line [message #52305 is a reply to message #52287] Fri, 02 January 2009 08:32 Go to previous message
drank is currently offline drank  Bulgaria
Messages: 1324
Registered: June 2007
Senior Master
Thank you

Dragomir Denev
DGM
www.dgm.bg
Previous Topic:How to get the internal name of a resource plan via its name?
Next Topic:How to get the list of timezones?
Goto Forum:
  


Current Time: Thu May 23 20:20:43 EDT 2013

Total time taken to generate the page: 0.01092 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software