1) vzlist –a : To list all VPS.
2) vzlist : To list all Running VPS.
3) vzctl start <VPSID> : To Start a VPS.
4) vzctl stop <VPSID> : To Stop a VPS.
5) vzctl stop <VPSID> –fast : To Stop a VPS quickly and forcefully.
6) vzctl restart <VPSID> : To Restart a VPS.
7) vzctl status <VPSID> : To view the status of the particular VPS.
8) vzctl enter <VPSID> : To enter in a particular VPS.
9) vzcalc -v <VPSID> : To view the resources used by the VPS.
10) vzctl exec <VPSID> <COMMAND> : To execute a commands against the VPS.
12) vzdqcheck [options] <path> : To counts inodes and disk space used.
Options available to the vzdqcheck command are:
-h:-Usage info.
-V:- vzquota version info.
-v:- Verbose mode
-q:- Quiet mode.
13) vzcpucheck –v : To get the CPU usage.
14) vzmemcheck [-v] [-A] : Shows the Node memory parameters.
Options available to the vzmemcheck command are:
-v:- Display information for each Container.
-A:- Display absolute values (in megabytes).
15) vzpid <pid> : To display the ID of the Container where the process is running.
16) vzsplit -n <numve> -f <conf_name> -s <swapsize> -v <yes|no> : To generate a sample VE configuration file.
-n numv :- Specify the number of containers.
-f conf_name :- Specify the configuration sample name to write configuration
-s swapsize :-Specify the swap size in Kbytes.
-v yes|no :- Whether to generate VSwap enabled configuration.
17) vzcfgvalidate : To catch typical mistakes in the configuration.
It can be invoked as follows:
# cd /etc/vz/conf
# vzcfgvalidate <config_file>
18) vzctl set <VPSID> --hostname <HOSTNAME> --save : To set the Hostname of a VPS.
19) vzctl set <VPSID> --ipadd <IP> --save : To add a new IP to the hosting VPS
20) vzctl set <VPSID> --ipdel <IP> --save : To delete the IP from VPS
21) vzctl set <VPSID> --userpasswd root:<NEW PASSWORD> --save : To reset root password of a VPS.
22) vzctl set <VPSID> --nameserver <IP> --save : To add the nameserver IP’s to the VPS.
23) exit : log out from VPS.
24) vzctl destroy <VPSID> : To destroy the VPS.
2) vzlist : To list all Running VPS.
3) vzctl start <VPSID> : To Start a VPS.
4) vzctl stop <VPSID> : To Stop a VPS.
5) vzctl stop <VPSID> –fast : To Stop a VPS quickly and forcefully.
6) vzctl restart <VPSID> : To Restart a VPS.
7) vzctl status <VPSID> : To view the status of the particular VPS.
8) vzctl enter <VPSID> : To enter in a particular VPS.
9) vzcalc -v <VPSID> : To view the resources used by the VPS.
10) vzctl exec <VPSID> <COMMAND> : To execute a commands against the VPS.
12) vzdqcheck [options] <path> : To counts inodes and disk space used.
Options available to the vzdqcheck command are:
-h:-Usage info.
-V:- vzquota version info.
-v:- Verbose mode
-q:- Quiet mode.
13) vzcpucheck –v : To get the CPU usage.
14) vzmemcheck [-v] [-A] : Shows the Node memory parameters.
Options available to the vzmemcheck command are:
-v:- Display information for each Container.
-A:- Display absolute values (in megabytes).
15) vzpid <pid> : To display the ID of the Container where the process is running.
16) vzsplit -n <numve> -f <conf_name> -s <swapsize> -v <yes|no> : To generate a sample VE configuration file.
-n numv :- Specify the number of containers.
-f conf_name :- Specify the configuration sample name to write configuration
-s swapsize :-Specify the swap size in Kbytes.
-v yes|no :- Whether to generate VSwap enabled configuration.
17) vzcfgvalidate : To catch typical mistakes in the configuration.
It can be invoked as follows:
# cd /etc/vz/conf
# vzcfgvalidate <config_file>
18) vzctl set <VPSID> --hostname <HOSTNAME> --save : To set the Hostname of a VPS.
19) vzctl set <VPSID> --ipadd <IP> --save : To add a new IP to the hosting VPS
20) vzctl set <VPSID> --ipdel <IP> --save : To delete the IP from VPS
21) vzctl set <VPSID> --userpasswd root:<NEW PASSWORD> --save : To reset root password of a VPS.
22) vzctl set <VPSID> --nameserver <IP> --save : To add the nameserver IP’s to the VPS.
23) exit : log out from VPS.
24) vzctl destroy <VPSID> : To destroy the VPS.
No comments:
Post a Comment