Closed omaxx closed 1 year ago
👋
Did you set auth_secondary like the message says? I don’t juniper but if I recall correctly we go to root shell and that prompts for a password, even if the password is the same as the “main” password you need to set auth secondary.
If that doesn’t work we will need logs probably. And probably some help on testing since I don’t have any juniper to test with.
I tried but it doesn't help. Junos doesn't ask any password when go from exec to config mode.
user@host> configure
Entering configuration mode
{master:0}[edit]
user@host# commit
configuration check succeeds
commit complete
{master:0}[edit]
user@host# exit
Exiting configuration mode
{master:0}
user@host>
Scrapli cfg does not edit the config in config mode. It gets into a shell and insets the config as a file. Please get channel logs
but how do you apply new config without entering to config mode?
but how do you apply new config without entering to config mode?
Scrapli cfg does not edit the config in config mode. It gets into a shell and insets the config as a file.
like I said if you enable secondary auth and get channel log we could see…
It try to open root shell and it could not, because it doesn't have root password.
I think I understand what is a problem: it try to open root shell to create file in /config folder and next it try to load and apply it it from config mode
Two things could be optimized: file could be created in user home folder, so it is not necessary to be a root it is also possible to load config directly from terminal, so no need to create file at all
file could be created in user home folder, so it is not necessary to be a root
willing to review pr for this
it is also possible to load config directly from terminal, so no need to create file at all
Then just use scrapli without cfg, there were reasons for this that I don’t recall now but I have no interest in changing this. If there is no need for file ops and you can just send configs then just use scrapli to do this yourself and not futz with cfg.
Script for changing config on junos device:
User has
su
privileges for make configuration changes. But got an error: