Discussion:
[PVE-User] how to check commands behind webconsole
Muhammad Yousuf Khan
2013-05-10 14:57:16 UTC
Permalink
actually i perform most of the task via CLI and do not prefer working on
Web console. is there anything by which i can check which command has web
console run. in earlier versions commands were showed in the status bar.
however in latest one it just show the success or failure status.
please help me and guide me how can i check the commands run via web
console.

actually i am working on snapshot command but giving me error.

400 wrong number of arguments and via webconsole it is working fine. so
need webconsole help to understand the commands

Thanks
Myk
Dietmar Maurer
2013-05-10 15:42:41 UTC
Permalink
why don't you use/read the manual pages?

From: pve-user-***@pve.proxmox.com [mailto:pve-user-***@pve.proxmox.com] On Behalf Of Muhammad Yousuf Khan
Sent: Freitag, 10. Mai 2013 16:57
To: pve-***@pve.proxmox.com
Subject: [PVE-User] how to check commands behind webconsole

actually i perform most of the task via CLI and do not prefer working on Web console. is there anything by which i can check which command has web console run. in earlier versions commands were showed in the status bar. however in latest one it just show the success or failure status.
please help me and guide me how can i check the commands run via web console.
actually i am working on snapshot command but giving me error.
400 wrong number of arguments and via webconsole it is working fine. so need webconsole help to understand the commands

Thanks
Myk
Muhammad Yousuf Khan
2013-05-10 19:40:19 UTC
Permalink
Because it is more easier for a user to understand where he is making
mistakes and why command is not working. for example i run the command via
following the manual format which is mentioned as below

qm snapshot <vmid> <snapname> [OPTIONS]

***@acivirtsrv:~# qm snapshot 502 testsnap -freezefs -vmstate
Formatting '/var/lib/vz/images/502/vm-502-state-testsnap.raw', fmt=raw
size=4819255296
Undefined subroutine &PVE::QemuServer::gqa_unfreezefs called at
/usr/share/perl5/PVE/QemuServer.pm line 4287.

so i dont know that is it an error or not but this is some thing
making me worried. i see no error creating snapshot via webconsole

secondly, how could we list snapshots via command line?


Thanks in advance


Myk
why don’t you use/read the manual pages?****
** **
*Sent:* Freitag, 10. Mai 2013 16:57
*Subject:* [PVE-User] how to check commands behind webconsole****
** **
actually i perform most of the task via CLI and do not prefer working on
Web console. is there anything by which i can check which command has web
console run. in earlier versions commands were showed in the status bar.
however in latest one it just show the success or failure status. ****
please help me and guide me how can i check the commands run via web
console. ****
actually i am working on snapshot command but giving me error.****
400 wrong number of arguments and via webconsole it is working fine. so
need webconsole help to understand the commands
Thanks****
Myk****
** **
** **
Dietmar Maurer
2013-05-11 06:40:28 UTC
Permalink
Because it is more easier for a user to understand where he is making mistakes
and why command is not working. for example i run the command via following
the manual format which is mentioned as below
qm snapshot <vmid> <snapname> [OPTIONS]
qm help snapshot
To get a more detailed help.
Formatting '/var/lib/vz/images/502/vm-502-state-testsnap.raw', fmt=raw
size=4819255296
Undefined subroutine &PVE::QemuServer::gqa_unfreezefs called at
/usr/share/perl5/PVE/QemuServer.pm line 4287.
This is a bug. I suggest you do not use the '-freezefs' option (It has
not effect currently).
secondly, how could we list snapshots via command line?
There is no extra command for that, but you can use the API, like:

# pvesh get /nodes/<nodename>/qemu/<vmid>/snapshot

Does that help?
Muhammad Yousuf Khan
2013-05-11 09:20:42 UTC
Permalink
Thanks it is working, how ever i seems like i have to learn "pversh" to get
more control over pve node.
Post by Muhammad Yousuf Khan
Post by Muhammad Yousuf Khan
Because it is more easier for a user to understand where he is making
mistakes
Post by Muhammad Yousuf Khan
and why command is not working. for example i run the command via
following
Post by Muhammad Yousuf Khan
the manual format which is mentioned as below
qm snapshot <vmid> <snapname> [OPTIONS]
qm help snapshot
To get a more detailed help.
Post by Muhammad Yousuf Khan
Formatting '/var/lib/vz/images/502/vm-502-state-testsnap.raw', fmt=raw
size=4819255296
Undefined subroutine &PVE::QemuServer::gqa_unfreezefs called at
/usr/share/perl5/PVE/QemuServer.pm line 4287.
This is a bug. I suggest you do not use the '-freezefs' option (It has
not effect currently).
Post by Muhammad Yousuf Khan
secondly, how could we list snapshots via command line?
# pvesh get /nodes/<nodename>/qemu/<vmid>/snapshot
Does that help?
Loading...