Just wanted to add for the benefit of all, I like to edit my etc/rancid.types.conf and add a new “type”. Here is what the additional lines look like:

 

paloaltofw;script;rancid -t paloaltofw

paloaltofw;login;panlogin

paloaltofw;module;panos

paloaltofw;inloop;panos::inloop

paloaltofw;command;panos::ShowInfo;show system info

paloaltofw;command;panos::ShowInventory;show chassis inventory

paloaltofw;command;rancid::RunCommand;set cli config-output-format set

paloaltofw;command;rancid::RunCommand;configure

paloaltofw;command;panos::ShowConfig;show

 

This gives you a more human readable configuration.

 

In your router.db you would need to add:

 

Firewall1.yourdomain.com;paloaltofw;up

 

Chris

 

From: heasley
Sent: Wednesday, April 5, 2023 4:03 PM
To: Chris Weakland
Cc: Anwar Durrani; [email protected]
Subject: Re: [rancid] login script for PaloAlto PA850

 

Wed, Apr 05, 2023 at 07:21:17AM -0400, Chris Weakland:

> Palo Alto support has bee. built into Rancid for some time, no need for any

additional scripts.  The device type is:  paloalto

 

indeed; there is also device type paloaltoxml for the xml config.

 

> Your router.db looks incorrect, it should be:

>

> Firewall1.yourdomain.com;paloalto;up

 

to be pedantic, additional fields are simply ignored.

 

_______________________________________________
Rancid-discuss mailing list
[email protected]
https://www.shrubbery.net/mailman/listinfo/rancid-discuss

Reply via email to