I am baffled by this particular issue and need some help.
I wrote a PowerShell script to add a role to several NetApp controllers. The command is as follows:
$commands = 'security login role modify -role netapp-harvest-role -access readonly -cmddirname cluster identity show '
The error says: " Error: "identity" was not expected. Please specify -fieldname first.
However, I ran the command on the cluster CLI and it works without a problem. Its not accepting the second argument in the -cmddirname attribute. However, it does work with a single argument in this command.
I tried directly with "plink.exe" and "Invoke-NcSSH" but neither of them worked.