- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-16-2013 12:38 PM
Is there a way to use the panxapi module and delete or modify a member from an address group? I have an address object I no longer use and want to remove all references. I can use panxapi to delete the address object as long as I manually remove the objects from all groups to which it is a member. I want to be able to write a program to remove all references, but can't get it to remove from the address groups.
Thanks,
Bart
01-17-2013 11:00 AM
to delete member addr1 from address-group group1 the xpath would
be something like:
/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='group1']/member[text()='addr1']
you can use 'or' to delete multiple members with one call:
/config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='group1']/member[text()='addr2' or text()='addr3']
there is also a command line program, panaddr, that can be used
to manage address objects.
to do the above you could do (--verbose shows the xpath used):
$ panaddr --verbose --delete --address-group group1 --member addr1
xpath: /config/devices/entry/vsys/entry[@name='vsys1']/address-group/entry[@name='group1']/member[text()='addr1']
delete: success: command succeeded
01-17-2013 07:32 PM
I don't have a panaddr. My PAN version is 20111226 (I think - not at my desk right now). Is there a newer pan version? If so, I don't see a download link.
01-18-2013 10:02 AM
Yes, it would be great to have those posted when they are available. Not sure why they aren't posted within software updates page. That would be my suggestion.
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!