--- ds5perf_old.pl 2019-03-15 19:24:18.000000000 +0500 +++ ds5perf.pl 2019-06-04 09:25:26.141802966 +0500 @@ -134,7 +134,7 @@ } ## end if ( isdigit($hosts_count...)) my @host_topology; - my $cmd_host_topology = "$SMcli_cmd \"show hostTopology;\" 2>/dev/null"; + my $cmd_host_topology = "$SMcli_cmd \"show storageArray hostTopology;\" 2>/dev/null"; @host_topology = run_cmd($cmd_host_topology); # test hostTopology cmd @@ -173,7 +173,7 @@ exit; sub set_params { - my $cmd = "$SMcli_cmd \"show hostTopology;\" 2>/dev/null"; + my $cmd = "$SMcli_cmd \"show storageArray hostTopology;\" 2>/dev/null"; my @out = run_cmd_simple($cmd); my $succes_line = grep {/SMcli completed successfully/} @out; @@ -188,7 +188,7 @@ if ( defined $authorization && $authorization ne '' ) { if ( defined $error_text && isdigit($error_text) && $error_text > 0 ) { # change parameter "-R" by "-u" - $cmd = "$SMcli -n $storage_name -e -u $user_name -p $user_pw -c \"show hostTopology;\" 2>/dev/null"; + $cmd = "$SMcli -n $storage_name -e -u $user_name -p $user_pw -c \"show storageArray hostTopology;\" 2>/dev/null"; @out = run_cmd_simple($cmd); $succes_line = grep {/SMcli completed successfully/} @out; @@ -201,7 +201,7 @@ $error_text = grep {/command line option to allow an insecure connection/} @out; if ( defined $error_text && isdigit($error_text) && $error_text > 0 ) { # add "-k" parameter - $cmd = "$SMcli -n $storage_name -e -u $user_name -p $user_pw -k -c \"show hostTopology;\" 2>/dev/null"; + $cmd = "$SMcli -n $storage_name -e -u $user_name -p $user_pw -k -c \"show storageArray hostTopology;\" 2>/dev/null"; @out = run_cmd_simple($cmd); $succes_line = grep {/SMcli completed successfully/} @out; @@ -217,7 +217,7 @@ $error_text = grep {/command line option to allow an insecure connection/} @out; if ( defined $error_text && isdigit($error_text) && $error_text > 0 ) { # add "-k" parameter - $cmd = "$SMcli -n $storage_name -e$authorization -k -c \"show hostTopology;\" 2>/dev/null"; + $cmd = "$SMcli -n $storage_name -e$authorization -k -c \"show storageArray hostTopology;\" 2>/dev/null"; @out = run_cmd_simple($cmd); $succes_line = grep {/SMcli completed successfully/} @out; @@ -229,7 +229,7 @@ } - error( "SMcli cmd not work! \"$SMcli -n $storage_name -e$authorization -c \"show hostTopology;\" 2>/dev/null\" : " . __FILE__ . ":" . __LINE__ ); + error( "SMcli cmd not work! \"$SMcli -n $storage_name -e$authorization -c \"show storageArray hostTopology;\" 2>/dev/null\" : " . __FILE__ . ":" . __LINE__ ); return 0; }