[rancid] Additional Commands

Andy andy at benthamroad.co.uk
Tue Dec 21 09:59:09 UTC 2010


Hi,
Have you created a ‘GetLicense’ subroutine in fnrancid to process the
output?
Something like;

sub GetLicense{
 while (<INPUT>) {
        last if(/$prompt/);
        ProcessHistory("","","","$_");
    }
    return(1);
}

Andy


From: Chris Kilian [mailto:chris.kilian at seccomglobal.com] 
Sent: 21 December 2010 04:59
To: Andy; rancid-discuss at shrubbery.net
Subject: RE: [rancid] Additional Commands

Andy

I have tried that by adding the below get system fortiguard section to the
existing config as below.

@commandtable = (
        {'get system status'            => 'GetSystem'},
        {'show full-configuration'      => 'GetConf'},
        {'get system fortiguard'        => 'GetLicense'}

To the fnrancid file yet I am getting the below error in the logs.

Undefined subroutine &main::GetLicense called at /home/rancid/bin/fnrancid
line 325, <INPUT> line 23348

Any idea if anything else needs to be changed?

Kind Regards

Chris Kilian



More information about the Rancid-discuss mailing list