I dont think rpc will be good option as the command "request system license add " dose not have rpc May be junos_command will do it but I am not sure
user@switch> request system license add jj | display xml rpc <rpc-reply xmlns:junos="http://xml.juniper.net/junos/17.3R2/junos"> <message> xml rpc equivalent of this command is not available. </message> <cli> <banner>{master:0}</banner> </cli> </rpc-reply> Nitzan On Mon, Mar 26, 2018 at 2:51 PM Jean Benoit <j...@unistra.fr> wrote: > On Sun, Mar 25, 2018 at 03:59:14PM +0100, adamv0...@netconsultings.com > wrote: > > [...] > > If not how can I send ^D (ctrl+D a.k.a end of file) in expect script > please? > > > # ASCII 4: EOT (end of transmission) > set ctrlD \004 > > send $ctrlD > > -- > Jean > _______________________________________________ > juniper-nsp mailing list juniper-nsp@puck.nether.net > https://puck.nether.net/mailman/listinfo/juniper-nsp > _______________________________________________ juniper-nsp mailing list juniper-nsp@puck.nether.net https://puck.nether.net/mailman/listinfo/juniper-nsp