<div>you'll probably have to (or want to) for clogin into something like soniclogin so that it can do what is necessary to get the login prompt determination right. (see also the paloalto login script)<br/>
And you'll want a forked rancid from one of the other examples like urancid that sends the right sets of commands. Urancid for ubiquiti devices is a pretty simple and good one to copy, or the fortinet one.<br/>
<br/>
<br/>
<font color="#888888"><font color="#888888">Sent from my android device.</font></font><br/><br/>-----Original Message-----<br/>From: Kevin Geil <KGeil@orda.org><br/>To: heasley <heas@shrubbery.net>, "doug.hughes@keystonenap.com" <doug.hughes@keystonenap.com><br/>Cc: "rancid-discuss@shrubbery.net" <rancid-discuss@shrubbery.net><br/>Sent: Fri, 02 Mar 2018 9:11<br/>Subject: RE: [rancid] Sonicwall: clogin sends password after first login?<br/><br/></div>Thanks, I figured it was something like that. Is it recommended to use a custom version of clogin, or do I just discard the error text when I write the script that retrieves the configuration?
<br/>
<br/>
Thanks again,
<br/>
<br/>
Kevin
<br/>
-----Original Message-----
<br/>
From: heasley [mailto:<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>]
<br/>
Sent: Thursday, March 1, 2018 6:38 PM
<br/>
To: <a href="mailto:doug.hughes@keystonenap.com">doug.hughes@keystonenap.com</a>
<br/>
Cc: <a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a>; Kevin Geil <<a href="mailto:KGeil@orda.org">KGeil@orda.org</a>>
<br/>
Subject: Re: [rancid] Sonicwall: clogin sends password after first login?
<br/>
<br/>
Thu, Mar 01, 2018 at 05:23:20PM -0500, <a href="mailto:doug.hughes@keystonenap.com">doug.hughes@keystonenap.com</a>:
<br/>
> most likely it's having a problem recognizing your prompt. That's a pretty complex one and embedded spaces are bound to complicate things.
<br/>
>
<br/>
>
<br/>
> Sent from my android device.
<br/>
>
<br/>
> -----Original Message-----
<br/>
> From: Kevin Geil <<a href="mailto:KGeil@orda.org">KGeil@orda.org</a>>
<br/>
> To: "<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a>" <<a href="mailto:rancid-discuss@shrubbery.net">rancid-discuss@shrubbery.net</a>>
<br/>
> Sent: Thu, 01 Mar 2018 16:06
<br/>
> Subject: [rancid] Sonicwall: clogin sends password after first login?
<br/>
>
<br/>
> Hi, I hope some<a href="geo:0,0?q=one+can+point+me+in">one can point me in</a> the right direction here: I'm trying to monitor a sonicwall device with Rancid, and am having a hiccup at the first step. I can get clogin to authenticate to the device, but it immediately sends the password a second time after login, so the sonicwall sees it as a command, and returns an error. I'm guessing it's my lack of understanding of Clogin, but after reading documentation, I still can't figure it out. Thanks in advance to anyone who can help. I have tried adding a timeout value, and playing with the -noenable option, but to no avail.
<br/>
<br/>
There is no support for Sonic. So, I do not know if clogin would work with it. you will need to add support yourself.
<br/>
<br/>
> Thanks again,
<br/>
>
<br/>
> Kevin
<br/>
>
<br/>
>
<br/>
> My .cloginrc file looks like this:
<br/>
>
<br/>
> add noenable sonic {1}
<br/>
> add method sonic ssh
<br/>
> add cyphertype sonic aes128-ctr
<br/>
> add user sonic ReadOnlyAdmin
<br/>
> add password sonic {mypassword}
<br/>
>
<br/>
> And the output looks like this:
<br/>
> root@ubuntu:/var/lib/rancid/bin# ./clogin -f /var/lib/rancid/.cloginrc
<br/>
> -noenable sonic
<br/>
>
<br/>
> ReadOnlyAdmin@sonic's password:
<br/>
>
<br/>
> Copyright (c) 2016 Dell | SonicWALL, Inc.
<br/>
> Using username 'ReadOnlyAdmin'.
<br/>
> Password:
<br/>
> ReadOnlyAdmin@MY NSA4600_Primary> mypassword % Error encountered at
<br/>
> '^' marker:
<br/>
> mypassword
<br/>
> ^
<br/>
> % Error: No matching command found.
<br/>
> ReadOnlyAdmin@MY NSA4600_Primary>
<br/>
>
<br/>
>
<br/>
<br/>
> _______________________________________________
<br/>
> Rancid-discuss mailing list
<br/>
> <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a>
<br/>
> <a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a>
<br/>
<br/>