ADVERTISEMENT

purehost commands

The purehost command displays and manage Host objects in Pure Flash Storage Array

Below list contains some of the most useful purehost commands.

  • purehost connect MY-SERVER-001 --vol MY_VOL_001

    Connect volume MY_VOL_001 to host MY-SERVER-001. This will Provide the R/W access to the volume.Next available lun address will used by default.
    Copied
  • purehost connect MY-SERVER-001 --vol MY_VOL_001 --lun 10

    Connect volume MY_VOL_001 to host MY-SERVER-001 and assign LUN id 10. This will Provide the R/W access to the volume.
    Copied
  • purehost connect MY-SERVER-001 MY-SERVER-002 --vol MY_VOL_001

    Connect volume MY_VOL_001 to hosts MY-SERVER-001 and MY-SERVER-002
    Copied
  • purehost create MY-SERVER-001

    Create a host object called MY-SERVER-001. HBA wwns can be added later using purehost setattr command.
    Copied
  • purehost create MY-SERVER-001 --wwnlist 1000000000000001,10:00:00:00:00:00:00:01

    Create a host object called MY-SERVER-001 and add HBA wwns to it
    Copied
  • purehost create MY-SERVER-001 MY-SERVER-002

    Create hosts MY-SERVER-001 and MY-HOST-002
    Copied
  • purehost delete MY-SERVER-001

    Delete host MY-SERVER-001
    Copied
  • purehost delete MY-SERVER-001 MY-SERVER-002

    Delete hosts MY-SERVER-001 MY-SERVER-002
    Copied
  • purehost disconnect MY-SERVER-001 --vol MY_VOL_001

    Disconnect volume MY_VOL_001 from host MY-SERVER-001. This will remove the visibility of the volume to the host.
    Copied
  • purehost disconnect MY-SERVER-001 MY-SERVER-002 --vol MY_VOL_001

    Disconnect volume MY_VOL_001 from hosts MY-SERVER-001 and MY-SERVER-002
    Copied
  • purehost list

    List all the hosts in a Flash Array with its member WWNs or IQNs or NQNs. This will also show the Host Groups if it part of any.
    Copied
  • purehost list --all

    List all the hosts in a Flash Array along with its member initiators connected to volumes through target ports
    Copied
  • purehost list --connect

    List all the hosts in a Flash Array which have connected volumes
    Copied
  • purehost list --connect --private

    List all the hosts with non shared volumes. Volumes are not assigned through hostgroup.
    Copied
  • purehost list --connect --shared

    List all the hosts with shared volumes assigned through hostgroup
    Copied
  • purehost list --filter "wwn='1000000000000003'"

    Display the host with WWN 1000000000000003 as a member
    Copied
  • purehost list --personality

    Display the list hosts along with the personality set against each. The personality is define using the purehost setattr command.
    Copied
  • purehost list MY-SERVER*

    Display the details of all the Hosts those name start with MY-SERVER
    Copied
  • purehost list MY-SERVER-001

    Display the details of Host MY-SERVER-001
    Copied
  • purehost list MY-SERVER-001 --connect

    List all the volumes connected to Host MY-SERVER-001
    Copied
  • purehost list MY-SERVER-001 --personality

    Display the personality of host MY-SERVER-001
    Copied
  • purehost rename MY-SERVER-001 YOUR-SERVER-001

    Rename host MY-SERVER-001 to YOUR-SERVER-001
    Copied
  • purehost setattr MY-SERVER-001 --addwwnlist 1000000000000003

    Add new HBA wwn 1000000000000003 to host MY-HOST-001. 1000000000000003 should not be part of any other host.
    Copied
  • purehost setattr MY-SERVER-001 --personality esxi

    Set the personality of host MY-SERVER-001 to esxi. Some other values are aix, solaris etc..
    Copied
  • purehost setattr MY-SERVER-001 --remwwnlist 1000000000000003

    Remove HBA wwn 1000000000000003 from host MY-SERVER-001
    Copied
  • purehost setattr MY-SERVER-001 --wwnlist ""

    Remove all wwns from MY-HOST-001
    Copied
  • purehost setattr MY-SERVER-001 --wwnlist 1000000000000003

    Update the contents of an existing host with new wwn 1000000000000003
    Copied

[ view all commands ]