ktbyers / netmiko_tools

Command line tools built on Netmiko to simplify information gathering
Apache License 2.0
93 stars 32 forks source link

Might need a special handler for panos (show run) #6

Open ktbyers opened 8 years ago

ktbyers commented 8 years ago
it's not show configuraiton in panos
it depends what configuration you want? which I know seems weird
you can either go to config mode and do a "show"
by default it would show in the curly brace format, or you can change that to set, json, or xml
or you can do: show config saved running-config.xml
that is the "napalm" config you would load into it
in reality you should run `set cli op-command-xml-output on` and then `show config saved running-config.xml` to get the correct xml output of it

depends on what is human readable? To me, most human readable is `set` commands, and that is only from config mode, at least as far as I have found, and I've looked once or twice
ktbyers commented 8 years ago
worth noting that items pushed from panorama would not show up in the config this way

john [11:47 AM] 
So pushed policy is in `show config pushed-shared-policy` and template config is in `show config pushed-template`. I am not aware of any way to make this show in set notation other than to pull it from panorama.
ktbyers commented 8 years ago
correct on the panorama configs, that is how I had my rancid setup 
grab the set and then grab `pushed` configs