No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Command Reference

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5 storage systems. It describes hardware installation of those storage systems for helping you easily and quickly finish the installation.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
create iscsi target

create iscsi target


The create iscsi target command is used to create a target. Run this command if a storage system needs to implement functions such as LUN copy and remote replication with a remote device over iSCSI links.


create iscsi target local_control_id=? local_port_id=? remote_ip=? [ chap_user=? | chap_enabled=? | port=? | recovery_policy=? ] *





local_port_id=? ID of an Internet Small Computer System Interface (iSCSI) host port.

To obtain the value, run "show port general".

local_control_id=? ID of a controller.

Controller ID, the value is in the format of "XA", "XB", "XC", "XD", where the "X" is an integer ranging from 0 to

3, for example: "0A", "1C".

remote_ip=? IP address of a remote device.


chap_user=? Name of a CHAP user.

The value contains 4 to 223 characters (32 < ASCII code < 127) and must start with a letter or a digit.

chap_enabled=? Switch of the Challenge Handshake Authentication Protocol (CHAP) authentication function.

The value can be "yes" or "no", where:

  • "yes": The CHAP authentication function will be enabled.
  • "no": The CHAP authentication function will be disabled.
The default value is "no".
port=? ID of the employed port on a remote device.

The value ranges from "1" to "65535".The default value is "3260".

recovery_policy=? An iSCSI link recovery policy.

The value can be:

  • "automatic": indicates automatic recovery.
  • "manual": indicates manual recovery.
The default value is "automatic".



Usage Guidelines

Running this command with chap_enabled=? set to "yes" will prompt you to type CHAP passwords in interaction mode. The passwords are subject to the following


  • Each password is case sensitive and contains 12 to 16 characters.
  • Each password must be a combination of at least two of the following items:
    • Lowercase characters
    • Uppercase characters
    • Numbers
    • Special characters and the following: ` ~ ! @ # $ % ^ & * ( ) - _ = + \ | [ { } ]

      ; : ' " , < . > / ?

  • Each password must be different from a user name that is either in its normal or

reverse order.


To create a target, where the local controller is controller "0A", the ID of the employed port is "ENG0.A3.P0", the port ID is "3260", the IP address of the remote device is "", and the link recovery policy is automatic.

admin:/>create iscsi target local_control_id=0A local_port_id=ENG0.A3.P0 remote_ip=
Command executed successfully.

System Response


Updated: 2020-01-17

Document ID: EDOC1000181601

Views: 381324

Downloads: 56

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next