The cli record-script command starts the command-line recording tool to capture commands in a management session in the exact sequence that the commands were issued. The commands are saved to a script that you name.
cli record-script name cli stop-recording
where name is the name of the recording script that you create.