N1 Service Provisioning System 4.1 Reference Guide

Passing Data to an Individual CLI Argument

To pass data to the CLI from an external file, you can use the file: option. For instance, you may want to store the session ID of the session you have just started and then use it to authenticate commands.

To save the session ID to a file called session, type:


cr_cli -cmd udb.login -u [user] -p [password] > session 

Then, to pass the session ID to another command, type:


cr_cli -cmd hdb.h.la -s file:session