(Optional) Set the
authentication information for CHAP.
esxcli <conn_options> iscsi adapter auth chap set --direction=uni --chap_username=<name> --chap_password=<pwd> --level=[prohibited, discouraged, preferred, required] --secret=<string> --adapter=<adapter_name>
You can set per-target
CHAP for static targets, per-adapter CHAP, or apply the command to the
discovery address.
|
|
Per-adapter CHAP
|
esxcli iscsi adapter auth chap set
|
Per-discovery CHAP
|
esxcli iscsi adapter discovery sendtarget auth chap set
|
Per-target CHAP
|
esxcli iscsi adapter target portal auth chap set
|
The following
example sets adapter-level CHAP.
esxcli <conn_options> iscsi adapter auth chap set --direction=uni --chap_username=User1 --chap_password=MySpecialPwd --level=preferred --secret=uni_secret --adapter=vmhba33
|