Difference between revisions of "ESXi - 6.7 iscsi"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 6: Line 6:
: List all the iSCSI Host Bus Adapters on the system.
: List all the iSCSI Host Bus Adapters on the system.
:* <code>esxcli iscsi adapter list</code>
:* <code>esxcli iscsi adapter list</code>
* '''get'''
: '''get'''
: List the iSCSI information for the iSCSI Host Bus Adapter.
:: List the iSCSI information for the iSCSI Host Bus Adapter.
:* <code>esxcli iscsi adapter get '''NAME'''</code>
::* <code>esxcli iscsi adapter get '''NAME'''</code>
* '''set'''
:: '''set'''
: Set the iSCSI name and alias for the iSCSI Host Bus Adapter.
::: Set the iSCSI name and alias for the iSCSI Host Bus Adapter.
:* <code>esxcli iscsi adapter set '''CMD OPTIONS'''</code>
:::* <code>esxcli iscsi adapter set '''CMD_OPTIONS'''</code>
 
  '''NAME'''
  '''NAME'''
   -A|--adapter=<str>    The iSCSI adapter name. (required)
   -A{{!}}--adapter=<str>    The iSCSI adapter name. (required)
  '''CMD OPTIONS'''
  '''CMD_OPTIONS'''
   -A|--adapter=<str>            The iSCSI adapter name. (required)
   -A{{!}}--adapter=<str>            The iSCSI adapter name. (required)
   -a|--alias=<str>              The iSCSI initiator alias.
   -a{{!}}--alias=<str>              The iSCSI initiator alias.
   -n|--name=<str>              The iSCSI initiator name.
   -n{{!}}--name=<str>              The iSCSI initiator name.
   -s|--skip-if-session-active  Do not change initiator name if a session is active on the adapter.
   -s{{!}}--skip-if-session-active  Do not change initiator name if a session is active on the adapter.


=== auth ===
=== auth ===
==== chap ====
==== chap ====
* '''get'''
::* '''get'''
: Get the iSCSI CHAP authentication for the iSCSI Host Bus Adapter.
::: Get the iSCSI CHAP authentication for the iSCSI Host Bus Adapter.
:* <code>esxcli iscsi adapter auth chap get '''CMD OPTIONS'''</code>
:::* <code>esxcli iscsi adapter auth chap get '''CMD_OPTIONS'''</code>
 
  '''CMD_OPTIONS'''
  '''CMD OPTIONS'''
   -A{{!}}--adapter=<str>    The iSCSI adapter name. (required)
   -A|--adapter=<str>    The iSCSI adapter name. (required)
   -d{{!}}--direction=<str>  The iSCSI CHAP authentication direction. Options are: [uni, mutual]
   -d|--direction=<str>  The iSCSI CHAP authentication direction. Options are: [uni, mutual]
::* '''set'''
 
::: Set the iSCSI CHAP authentication for the iSCSI Host Bus Adapter.
* '''set'''
:::* <code>esxcli iscsi adapter auth chap set '''CMD_OPTIONS'''</code>
: Set the iSCSI CHAP authentication for the iSCSI Host Bus Adapter.
  '''CMD_OPTIONS'''
:* <code>esxcli iscsi adapter auth chap set '''CMD OPTIONS'''</code>
   -A{{!}}--adapter=<str>    The iSCSI adapter name. (required)
 
   -N{{!}}--authname=<str>  The iSCSI CHAP authentication name
  '''CMD OPTIONS'''
   -D{{!}}--default          Resetting iSCSI CHAP authenthication setting to default.
   -A|--adapter=<str>    The iSCSI adapter name. (required)
   -d{{!}}--direction=<str>  The iSCSI CHAP authentication direction. Options are: [uni, mutual]
   -N|--authname=<str>  The iSCSI CHAP authentication name
   -l{{!}}--level=<str>      The iSCSI CHAP authentication level. Options are: [prohibited, discouraged,
   -D|--default          Resetting iSCSI CHAP authenthication setting to default.
   -d|--direction=<str>  The iSCSI CHAP authentication direction. Options are: [uni, mutual]
   -l|--level=<str>      The iSCSI CHAP authentication level. Options are: [prohibited, discouraged,
                         preferred, required]
                         preferred, required]
   -S|--secret=<str>    The iSCSI CHAP authentication secret. The recommended length is at least 12
   -S{{!}}--secret=<str>    The iSCSI CHAP authentication secret. The recommended length is at least 12
                         bytes. (secret)
                         bytes. (secret)
                         WARNING: Providing secret values on the command line is insecure because it
                         WARNING: Providing secret values on the command line is insecure because it
Line 50: Line 46:


=== capabilities ===
=== capabilities ===
* '''get'''
::* '''get'''
: List the iSCSI details for the iSCSI Host Bus Adapter.
::: List the iSCSI details for the iSCSI Host Bus Adapter.
:* <code>esxcli iscsi adapter capabilities get '''CMD OPTIONS'''</code>
:::* <code>esxcli iscsi adapter capabilities get '''CMD_OPTIONS'''</code>
 
  '''CMD_OPTIONS'''
  '''CMD OPTIONS'''
   -A{{!}}--adapter=<str>    The iSCSI adapter name. (required)
   -A|--adapter=<str>    The iSCSI adapter name. (required)


== ibftboot ==
== ibftboot ==

Revision as of 02:45, 9 February 2022

iscsi

VMware Internet Small Computer Systems Interface (iSCSI) commands.

adapter

  • list
List all the iSCSI Host Bus Adapters on the system.
  • esxcli iscsi adapter list
get
List the iSCSI information for the iSCSI Host Bus Adapter.
  • esxcli iscsi adapter get NAME
set
Set the iSCSI name and alias for the iSCSI Host Bus Adapter.
  • esxcli iscsi adapter set CMD_OPTIONS
NAME
 -A|--adapter=<str>    The iSCSI adapter name. (required)
CMD_OPTIONS
 -A|--adapter=<str>            The iSCSI adapter name. (required)
 -a|--alias=<str>              The iSCSI initiator alias.
 -n|--name=<str>               The iSCSI initiator name.
 -s|--skip-if-session-active   Do not change initiator name if a session is active on the adapter.

auth

chap

  • get
Get the iSCSI CHAP authentication for the iSCSI Host Bus Adapter.
  • esxcli iscsi adapter auth chap get CMD_OPTIONS
CMD_OPTIONS
 -A|--adapter=<str>    The iSCSI adapter name. (required)
 -d|--direction=<str>  The iSCSI CHAP authentication direction. Options are: [uni, mutual]
  • set
Set the iSCSI CHAP authentication for the iSCSI Host Bus Adapter.
  • esxcli iscsi adapter auth chap set CMD_OPTIONS
CMD_OPTIONS
 -A|--adapter=<str>    The iSCSI adapter name. (required)
 -N|--authname=<str>   The iSCSI CHAP authentication name
 -D|--default          Resetting iSCSI CHAP authenthication setting to default.
 -d|--direction=<str>  The iSCSI CHAP authentication direction. Options are: [uni, mutual]
 -l|--level=<str>      The iSCSI CHAP authentication level. Options are: [prohibited, discouraged,
                       preferred, required]
 -S|--secret=<str>     The iSCSI CHAP authentication secret. The recommended length is at least 12
                       bytes. (secret)
                       WARNING: Providing secret values on the command line is insecure because it
                       may be logged or preserved in history files. Instead, specify this option
                       with no value on the command line, and enter the value on the supplied
                       prompt.

capabilities

  • get
List the iSCSI details for the iSCSI Host Bus Adapter.
  • esxcli iscsi adapter capabilities get CMD_OPTIONS
CMD_OPTIONS
 -A|--adapter=<str>    The iSCSI adapter name. (required)

ibftboot

logicalnetworkportal

networkportal

physicalnetworkportal

plugin

session

software