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.
  • 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.
  • 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
  • purehost create MY-SERVER-001

    Create a host object called MY-SERVER-001. HBA wwns can be added later using purehost setattr command.
  • 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
  • purehost create MY-SERVER-001 MY-SERVER-002

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

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

    Delete hosts MY-SERVER-001 MY-SERVER-002
  • 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.
  • 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
  • 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.
  • purehost list --all

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

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

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

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

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

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

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

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

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

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

    Rename host MY-SERVER-001 to YOUR-SERVER-001
  • 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.
  • purehost setattr MY-SERVER-001 --personality esxi

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

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

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

    Update the contents of an existing host with new wwn 1000000000000003

[ view all commands ]