[rancid] Creating a new rancid login file

Remsik,Robert Robert.Remsik at colostate.edu
Mon Sep 12 21:43:24 UTC 2016


Closer!

I had to fix a couple id10t errors, and tell audiorancid that it's prompt is > versus #.

Now it's dumping the entire raw file during one 'ProcessHistory' call.  Is there a way to only have it dump the contents per calls (so we can get error messages per call) or just have it be okay with only one call? and not complain about all the other missed commands?

Also, it's currently inserting ';' in front of almost all lines.  Is there a way to not insert ';'s?

Thank you in advance,


--- Excerpt of the .new file ---

Thank you again in advance,

Robert


rancid at SERVER:~$ audiorancid -d 10.174.0.247
executing audiologin -t 90 -c"show storage-history;show system active-alarms;show system assembly;show system feature;show system version;show voip firewall;show voip tls certificate;show running-config" 10.174.0.247
PROMPT MATCH: Mediant 1000>  show storage-history
[#>]
HIT COMMAND:Mediant 1000>  show storage-history
    In ShowStorageHistory: Mediant 1000>  show storage-history
10.174.0.247: missed cmd(s): show system active-alarms, show system assembly, show system feature, show system version, show voip firewall, show voip tls certificate
10.174.0.247: End of run not found
;






Robert Remsik

ACNS

Desk Phone: 970 491 7120

Robert.Remsik at colostate.edu


________________________________
From: heasley <heas at shrubbery.net>
Sent: Saturday, September 10, 2016 8:16 AM
To: Remsik,Robert
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Creating a new rancid login file

Fri, Sep 09, 2016 at 09:30:26PM +0000, Remsik,Robert:
> Hello!
>
>
> I'm trying to create a new rancid login file for an audiocodes device and I need a little help debugging what's going on & how to fix it.
>
>
> I've created audiologin which can successfully loginto and run all the commands required (per FAQ 3.2).  However, when I try using audiorancid (based upon hrancid) to call audiologin I'm getting an error that it can't run the commands which does not make sense to me yet.  What I see as a result of CLI running audiorancid is it's creating the file to write to(it shows up in the file system), and then it attempts to 'select' this file and then proceeds to error out.  This doesn't make sense to me as the excerpt from hrancid (which works against HP switches), is identical (minus debug commands) and does not have this problem.  Any help is appriciated!
>
> Thank you in advance,
>
>
>
> I've created the type 'ac' as defined in /etc/base.types.conf so when/if rancid-run gets ahold of it it'll find the correct files.
>
> ac;script;audiorancid
> ac;login;audiologin
>
> rancid at server:~/var/rancid-3.4.99/logs$ audiorancid 10.174.0.247
> commandstr: show storage-history;show system active-alarms;show system assembly;show system feature;show system version;show voip firewall;show voip tls certificate;show running-config
> Debug 1
> Debug 2
> 10.174.0.247: missed cmd(s): all commands

try
export NOPIPE=YES
audiorancid -a ip

that should leave an ip.raw file behind and may provide the cause.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20160912/45d6bfbe/attachment.html>


More information about the Rancid-discuss mailing list