Class XenServer
XenServer/XCP-ng related deployment utilities.
Namespace: Neon.Deployment
Assembly: Neon.Deployment.dll
Syntax
public static class XenServer
Methods
IsRunning(string, string, string)
Determines whether a specific XenServer/XCP-ng host machine is running by logging into it.
Declaration
public static bool IsRunning(string addressOrFQDN, string username, string password)
Parameters
Type | Name | Description |
---|---|---|
string | addressOrFQDN | Specifies the IP address or hostname for the target XenServer host machine. |
string | username | Specifies the username to be used to connect to the host. |
string | password | Specifies the host password. |
Returns
Type | Description |
---|---|
bool |
|
RemoveVMs(string, string, string, string)
Connects to a XenServer/XCP-ng host and removes any VMs matching the name or file wildcard pattern, forceably shutting the VMs down when necessary. Note that the VM's drives will also be removed.
Declaration
public static void RemoveVMs(string addressOrFQDN, string username, string password, string nameOrPattern)
Parameters
Type | Name | Description |
---|---|---|
string | addressOrFQDN | Specifies the IP address or hostname for the target XenServer host machine. |
string | username | Specifies the username to be used to connect to the host. |
string | password | Specifies the host password. |
string | nameOrPattern | Specifies the VM name or pattern including '*' or '?' wildcards to be used to remove VMs. |