Unsolved

7 Posts

216

August 2nd, 2021 06:00

changing iscsiHostPort configuration with SMcli fails

(there is still a post of mine in the moderator queue, which gives some background for the reasoning)

After some research I came up with the commands below to change the "iSCSI Host Ports" from static IP to DHCP. Luckly, the first command with a "-p password" included did succeed! I was also able to change the other port from static IP to DHCP.

But, there are two more ports that must be changed to DHCP.

Now for some reasons all attempts to change to DHCP fail with an error. Any idea how to switch the remaining two ports to DHCP? The "SMclient" GUI shows the names as "0-0", "0-1", "1-0", and "1-1". So, both "1-N" have to be changed.

 

SMcli mgmt-port -c "show controller;"
SMcli mgmt-port -c "show controller 0;"
SMcli mgmt-port -c "show controller [0];"
SMcli mgmt-port -c "show controller [0] iscsiHostPort [0];"
SMcli mgmt-port -c "show controller [0] iscsiHostPort;"
SMcli mgmt-port -c "set controller [0] iscsiHostPort;"
SMcli mgmt-port -c "set controller [0] iscsiHostPort [0];"
SMcli mgmt-port -c "set controller [0] iscsiHostPort [0] IPV4ConfigurationMethod=dhcp IPV4Address=0.0.0.0;"
SMcli mgmt-port -c "set controller [0] iscsiHostPort [0] IPV4ConfigurationMethod=dhcp IPV4Address=0.0.0.0;" -p password
SMcli mgmt-port -c "show controller [0];"
SMcli mgmt-port -c "set controller [0] iscsiHostPort [0];"
SMcli mgmt-port -c "set controller [0] iscsiHostPort [0] IPV4ConfigurationMethod=dhcp IPV4Address=0.0.0.0 IPV4SubnetMask=0.0.0.0 IPV4Gate
wayIP=0.0.0.0;" -p password
SMcli mgmt-port -c "set controller [0] iscsiHostPort [1] IPV4ConfigurationMethod=dhcp IPV4Address=0.0.0.0 IPV4SubnetMask=0.0.0.0 IPV4GatewayIP=0.0.0.0;" -p password
SMcli mgmt-port -c "set controller [1] iscsiHostPort [1] IPV4ConfigurationMethod=dhcp IPV4Address=0.0.0.0 IPV4SubnetMask=0.0.0.0 IPV4GatewayIP=0.0.0.0;" -p password
SMcli mgmt-port -c "set controller [0] iscsiHostPort [2] IPV4ConfigurationMethod=dhcp IPV4Address=0.0.0.0 IPV4SubnetMask=0.0.0.0 IPV4GatewayIP=0.0.0.0;" -p password
SMcli mgmt-port -c "set controller [0] iscsiHostPort [0];"

SMcli mgmt-port -c "set controller [0] iscsiHostPort [0] IPV4ConfigurationMethod=dhcp IPV4Address=0.0.0.0;" -p password
Performing syntax check...

Encountered "0" at line 1, column 30.
Was expecting:
    "[" ...


SMcli failed.

 

7 Posts

August 2nd, 2021 07:00

After more try&error this appeared to work. There are two management interfaces, named 0 and 1:

SMcli port1 -p password -c "set controller [1] iscsiHostPort [0] IPV4ConfigurationMethod=dhcp;"
SMcli port1 -p password -c "set controller [1] iscsiHostPort [1] IPV4ConfigurationMethod=dhcp;"

SMcli port0 -p password -c "reset controller [0];"
SMcli port1 -p password -c "reset controller [1];"

 

The "reset" may not be strictly required.

 

No Events found!

Top