Option in the Database Manager CLI.
All output is written to the file specified as <file_name>.
-o <file_name>
Store the reply to the commands for displaying the operational state of the database instance in the file state.txt:
dbmcli –d myDB –u DBM,DBM –o state.txt db_state