- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
08-25-2019 07:36 PM
Hi,
Need help in creating a ansible playbook for " Device Serail Number Swap in Panorama".
CLI command: > replace device old <old SN#> new <new SN#>
XML API:
<replace><device><old>*old device serial number*</old><new>*new device serial number*</new></device></replace>
08-26-2019 10:01 AM
This looks like an OP command, so you just use panos_op
to do this:
- name: Perform Swap panos_op: provider: '{{ provider }}' cmd: '<replace><device><old>*old device serial number*</old><new>*new device serial number*</new></device></replace>' cmd_is_xml: true
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!