The action parameter of the CLI diagsi command that you have attempted is available only in CLI interactive command mode. It is not available in CLI single command mode or CLI script mode.
Resubmit the CLI diagsi command in CLI interactive command mode.