This article will explain how to perform basic tasks through the CLI at the instance level on instances hosted on NetScaler SDX appliances.
Instructions
1. First we need to get the XenServer IP address in order to SSH into it. Go to the shell of the SVM and run networkconfig:
bash-2.05b# networkconfig
----------------------------------------------------------------------------
NetScaler SDX initial network configuration.
This menu allows you to set and modify the initial IPv4 network addresses.
The current value is displayed in brackets ([]).
Selecting the listed number allows the address to be changed.
----------------------------------------------------------------------------
1. Management Service Host Name [nssdx-mgmt]:
2. Management Service IPv4 address [10.25.141.65]:
3. XenServer IPv4 address [10.25.141.15]:
4. Netmask [255.255.255.0]:
5. Gateway IPv4 address [10.25.141.1]:
6. Default Interface [0/1]:
7. DNS IPv4 Address [8.8.8.8]:
8. Cancel and quit.
9. Save and quit.
On the GUI of the SDX, go to System > Network Configuration for the XenServer IP.


2. After we get the XenServer IP, we SSH to it from the SVM shell by:
bash-2.05b# ssh 10.25.141.15
3. Once logged into the XenServer we need to get the uuid for the instance we want to perform the tasks on.
[root@netscaler-sdx ~]# xe vm-list
uuid ( RO) : 0a440743-8e5f-0cfa-b951-31ec5e295488
name-label ( RW): vijayn-11.0
power-state ( RO): running
4. With the uuid of the VM we could perform the following tasks:
[root@netscaler-sdx ~]# xe vm-
vm-assert-can-be-recovered
vm-compute-maximum-memory
vm-destroy ===== Destroy instance
vm-memory-dynamic-range-set
vm-param-list
vm-shutdown ===== Shutdown instance
vm-call-plugin
vm-compute-memory-overhead
vm-disk-add
vm-memory-limits-set
vm-param-remove
vm-snapshot
vm-cd-add
vm-copy
vm-disk-list
vm-memory-shadow-multiplier-set
vm-param-set
vm-snapshot-with-quiesce
vm-cd-eject
vm-copy-bios-strings
vm-disk-remove
vm-memory-static-range-set
vm-pause ===== Pause instance
vm-start ===== Start instance
vm-cd-insert
vm-crashdump-list
vm-export
vm-memory-target-set
vm-reboot ===== Reboot instance
vm-suspend ===== Suspend instance
vm-cd-list
vm-data-source-forget
vm-import
vm-migrate
vm-recover
vm-uninstall
vm-cd-remove
vm-data-source-list
vm-install
vm-param-add
vm-reset-powerstate ===== Reset Power State of instance (need to be used with --force)
vm-unpause ===== Unpause instance
vm-checkpoint
vm-data-source-query
vm-is-bios-customized
vm-param-clear
vm-resume ===== Resume instance from suspend state
vm-vcpu-hotplug
vm-clone
vm-data-source-record
vm-list ===== List instance IDs
vm-param-get
vm-retrieve-wlb-recommendations
vm-vif-list
The commands need to be configured by: xe [command] vm=<UUID> or xe [command] uuid=<UUID>