ADVERTISEMENT

purehgroup commands

The purehgroup command displays and manages HostGroup objects in Pure Flash Storage Array

Below list contains some of the most useful purehgroup commands.

  • purehgroup connect MY-HOSTS --vol MY_VOL_001

    Connect volume MY_VOLUME_001 to hostgroup MY-HOSTS. This will assign a lun id to the volume. The lun id will start from 254 and go down up to 1If all LUNs in the [1...254] range are taken, Purity//FA starts at LUN 255 and counts up to the maximum LUN 16383, assigning the first available LUN to the connection.
    Copied
  • purehgroup connect MY-HOSTS --vol MY_VOL_001 --lun 100

    Connect volume MY_VOLUME_001 to hostgroup MY-HOSTS and assign LUN id 100
    Copied
  • purehgroup create MY-HOSTS

    Create a hostgroup called MY-HOSTS
    Copied
  • purehgroup create MY-HOSTS --hostlist MY-HOST-001,MY-HOST-002

    Create hostgroup MY-HOSTS and add existing hosts MY-HOST-001 and MY-HOST-002 in to it
    Copied
  • purehgroup delete MY-HOSTS

    Delete empty hostgroup MY-HOSTS.
    Copied
  • purehgroup delete MY-HOSTS_1 MY-HOSTS-2

    Delete empty hostgroups MY-HOSTS-1 and MY-HOSTS-2
    Copied
  • purehgroup disconnect MY-HOSTS --vol MY_VOL_001

    Disconnect volume MY_VOLUME_001 from hostgroup MY-HOSTS
    Copied
  • purehgroup list

    List all the hostgroups a with member hosts
    Copied
  • purehgroup list --connect

    List all the hostgroups and connected volumes
    Copied
  • purehgroup list --connect MY-HOSTS

    List all the connected volumes for hostgroup MY-HOSTS
    Copied
  • purehgroup list --filter "host_list='MY-SERVER-001'"

    Display the Host Group where Host MY-SERVER-001 is a member
    Copied
  • purehgroup list --space

    List all the hostgroups with the total capacity of volumes provisioned to each and the consumption
    Copied
  • purehgroup rename MY-HOSTS YOUR-HOSTS

    Rename hostgroup MY-HOSTS with YOUR-HOSTS
    Copied
  • purehgroup setattr MY-HOSTS --addhostlist MY-HOST-002,MY-HOST-003

    Add MY-HOST-002 and MY-HOST-003 to existing hostgroup MY-HOSTS
    Copied
  • purehgroup setattr MY-HOSTS --hostlist ""

    Remove all the hosts from hostgroup MY-HOSTS
    Copied
  • purehgroup setattr MY-HOSTS --hostlist ""

    Remove all the hosts from hostgroup MY-HOSTS
    Copied
  • purehgroup setattr MY-HOSTS --hostlist MY-HOST-002,MY-HOST-003

    Replace members of MY-HOSTS with new hosts MY-HOST-002 and MY-HOST-003
    Copied
  • purehgroup setattr MY-HOSTS --remhostlist MY-HOST-002,MY-HOST-003

    Remove MY-HOST-002 and MY-HOST-003 from hostgroup MY-HOSTS
    Copied

[ view all commands ]