Pernix Data CLI commands

Importing and Connecting

As with any 3rd party PowerShell module the first thing you have to do is import it and connect to the FVP Management Server with the administrator credentials of the vCenter server associated with Management Server.

The module can be imported into either WindowsPowerShell console or the VMware PowerCLI.

import-module prnxcli
Connect-PrnxServer host-ip -Username name -Password password

Working With Flash Clusters

#Create New FlashCLuster
New-PrnxFlashCluster DataCenterClusterUUid -Name ClusterName -Description DescriptionString

#Remove an empty Flash Cluster
Remove-PrnxFlashCluster - ObjID FlashClusterName

#Remove all Flash CLusters
Get-PrnxObject -Type FlashCluster | Remove-PrnxFlashCluster

#Remove all VMs, SSDs, and Datastores then delete the FlashCluster
Remove-PrnxFlashCluster -ObjId FlashClusterName -Force

#Get Details about a FlashCluster
Get-PrnxFlashClusterDetail -ObjId ClusterName -FlashCluster FlashClusterName

#Display details for all available FlashCLusters
Get-PrnxObject -Type FlashCluster | Get-PrnxFlashClusterDetail ClusterName

#Note: For all previous examples the variable ClusterName can be the vCenter Cluster's name, UUID or any valid reference.

Working With Datastores

#Add a Datastore to a Flash Cluster with the default profile
Add-PrnxDatastoreToFlashCluster -FlashCluster FCName -Name DatastoreName

#Add a Datastore to a Flash Cluster, and set a Write Through Acceleration Policy
Add-PrnxDatastoreToFlashCluster -FlashCluster FCName -Name DatastoreName -WriteThrough

#Add a Datastore to a Flash Cluster and a Write Back Acceleration Policy with X Peers
Add-PrnxDatastoreToFlashCluster -FlashCluster FCName -Name DatastoreName -WB -NumWBPeers int

#Remove a DataStore From a Flash CLuster
Remove-PrnxObjectFromFlashCluster -FlashCluster FCName -Name DataStoreName

#Get all VMFS objects
Get-PrnxVMFS

#Get all VMFS objects from a Host
Get-PrnxVMFS -Host HostIPAddress

#Get all VMFS objects in a Cluster
Get-PrnxVMFS -Cluster ClusterName

Working With Virtual Machines

#Add a VM to a Flash Cluster with the default profile
Add-PrnxVirtualMachineToFlashCluster -FlashCluster FCName -Name VMName

#Add a VM to a Flash Cluster and set Write Through Acceleration Policy
Add-PrnxVirtualMachineToFlashCluster -FlashCluster FCName -Name VMName -WriteThrough

#Add a VM to a Flash Cluster and set Write Back Acceleration Policy with X Peers
Add-PrnxVirtualMachineToFlashCluster -FlashCluster FCName -Name VMName -WB -NumWBPeers int

#Remove a VM from a Flash Cluster
Remove-PrnxObjectFromFlashCluster -FlashCluster FCName -Name VMName

#Get all Virtual Machines
Get-PrnxVM

#Get all Virtual Machines from a Host
Get-PrnxVM -Host HostIPAddress

#Get all Virtual Machines in a Cluster
Get-PrnxVM -Cluster ClusterName

#Disable caching for a VM on next power cycle event
Add-PrnxVirtualMachineToBlacklist -ObjID VMName

#Re-enable caching for a VM on next power cycle event
Remove-PrnxVirtualMachineFromBlacklist -ObjID VMName

Working With Flash Devices

 

#Add a Flash Device (SSD) to a Flash Cluster
Add-PrnxFlashDeviceToFlashCluster - FlashCluster FCName -Name DeviceName

#Add a Flash Device (SSD) to a Flash Cluster and force a reformat
Add-PrnxFlashDeviceToFlashCluster - FlashCluster FCName -Name DeviceName -ForceReformat

#Remove a VM from a Flash Cluster
Remove-PrnxObjectFromFlashCluster -FlashCluster FCName -Name DeviceName

#Get all SCSI LUNs
Get-PrnxSCSILun

#Get all SCSI LUNs from a Host
Get-PrnxSCSILun -Host HostIPAddress

#Get all SCSI LUNs in a Cluster
Get-PrnxSCSILun -Cluster ClusterName

#Get all available SCSI LUNs in a Cluster
Get-PrnxSCSILun -Cluster ClusterName -Available

Working With The Generic “PrnxObject” and “PrnxProperty”

#Add all objects of a certain type to a Flash Cluster
Add-PrnxObjectToFlashCluster -FlashCluster FCName -Type ObjectType

#Remove an object from a Flash Cluster
Remove-PrnxObjectFromFlashCluster -FLashCLuster FCName -Name ObjectName 

#Get all objects from the Management Server
Get-PrnxObject

#Get all objects of a certain type from the Management Server
Get-PrnxObject -Type ObjectType

#Get all objects of a certain type from a host
Get-PrnxObject -Type ObjectType -Host hostname

#Get all objects of a certain type from a cluster
Get-PrnxObject -Type ObjectType -Cluster clustername

#Return the last 10 samples over 400 seconds of statistics for an object
Get-PrnxObjectStats Object

#Return the last X samples of statistics for an object
Get-PrnxObjectStats Object -NumberOfSamples

#Set a Property on an Object
Set-PrnxProperty Object -Name Property -Value Value

Changing Between Write Though and Write Back Modes

#Set Acceleration Policy to Write Through for a VM or DataStore
Set-PrnxAccelerationPolicy -Name VMorDataStoreName -WT

#Set Acceleration Policy to Write Back for a VM or DataStore with 0, 1, or 2 Peers 
Set-PrnxAccelerationPolicy -Name VMorDataStoreName -WB -NumWBPeers int

#Tag a Virtual Machine as a 'Vadp' Appliance
Set-PrnxAccelerationPolicy VMName -Vadp

Clear PernixData Replay State

#Clear Replay State on a Flash Device for all inactive VMs with replay pending
Clear-PrnxReplayState -ObjID DeviceObject -All

#Clear Replay State of a VM
Clear-PrnxReplayState -vmID VMName

Get FVP Version

Get-PrnxVersion

Getting Further Help

get-help PrnxCommand -full