[rancid] Questions about sub ProcessHistory

heasley heas at shrubbery.net
Thu Apr 5 19:52:35 UTC 2018


Thu, Apr 05, 2018 at 05:55:57PM +0000, Gauthier, Chris:
> I’m trying to get my Aruba Instant access points to be backed up by rancid and I’m using the module developed by miken32, but it really doesn’t support a lot of the Aruba stuff that I have.  I’m trying to add a few extra functions into the perl module, but have run into some difficulty with `sub ProcessHistory` in rancid.pm.  I’ve read the description, but am not understanding the third argument.
> 
> For example:
> ProcessHistory("COMMENTS","keysort","D99","!$_");   (from the aruba.pm file)
> 
> Or
> 
> ProcessHistory("COMMENTS","keysort","F1", "!Image: $_")  (from the ios.pm file)
> 
> What is the function of the “D99” and “F1” arguments and how do I leverage them for my own function?  And, what is the string in the last argument used for?

3rd arg is the argument to the 2nd arg, for keysort, its the key.  4th
arg is data/payload to be stored and later output.



More information about the Rancid-discuss mailing list