Possible to copy passwords for OSPF, IKE psk, SNMP auth, etc via cli 'set output' from one template to another?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Possible to copy passwords for OSPF, IKE psk, SNMP auth, etc via cli 'set output' from one template to another?

L1 Bithead

I want to copy some authentication pieces from one set of templates to another but i do not know what these passwords actually are. 

 

In Panorama CLI if I output the config from the template in the 'set' format from one template, edit the template name to the new one and paste it back into panorama. It appears to take the config just fine and shows the passwords fields have been filled. Just not sure if the passwords are the same since the output 'set' passwords are a hashed/encrypted values. 

 

With cisco devices at least, you can 'show run' and copy a entire switch config and even though the passwords are hashed, the new device you copy it to will have the correct passwords for authentication etc. 

 

Trying to see if this works the same way or if I need to find another way to copy template config between templates.

 

Thanks!

1 REPLY 1

Cyber Elite
Cyber Elite

Hi @UNCC_Brandon ,

 

I have used set commands to copy hashed passwords, and it works fine.

 

If the config section is very large, I also use the 'load config partial' command.  https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClbLCAS  Always use mode merge.  You can easily get the XPaths (XML Path) from the API GUI.

 

Thanks,

 

Tom

Help the community: Like helpful comments and mark solutions.
  • 1194 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!