Closed jakovlev54 closed 10 months ago
This command is required to exit the logical system to the main device.
When entering commands manually everything is ok:
netconf@router_1_re1> set cli logical-system TEST
Logical system: TEST
netconf@router_1_re1:TEST> show interfaces descriptions
Interface Admin Link Description
xe-3/2/9.0 up down Test_for_LS
netconf@router_1_re1:TEST> clear cli logical-system
Cleared default logical system
netconf@router_1_re1> show route instance MMM
Instance Type
Primary RIB Active/holddown/hidden
MSN vrf
MMM.inet.0 968/0/0
netconf@router_1_re1>
no idea! but we almost certainly aren't sending an extra newline just for fun!
45 | 2024-01-19 10:34:09,413 | DEBUG | 10.12.1.10:22 | read : b'clear cli\n ^\nsyntax error, expecting command>.\nnetconf@router_1_re1:TEST clear cli \x08\x08\x08logical-system'
I don't Junos but seems like you're upsetting it somewhere/someway (maybe in some previous command??) based on the syntax error output. Logs look like we correctly write it and then the error is pointing to the "cli" or after the cli part. is complete on space not disabled maybe for some reason? is there "more" to that command -- like "clear clis logical-system" or something?
JUNOS responds ambiguously - reason is again in authorization. Thanks for the answer!
Hello, Carl!
Can you help me find out why in Scrapli, when using the "clear cli logical-system" command, a line break occurs after the word "cli"?
Fragment of scrapli.log:
Fragment of code: