Pan Configurator service-edit.php

Announcements

Changes to the LIVEcommunity experience are coming soon... Here's what you need to know.

Reply
clyde.franklin
L4 Transporter

Pan Configurator service-edit.php

With Pan Configurator  service-edit.php if I want to delete unused objects is it possible to set a count limit? For exampel I dont want to do all 500 at one time unt say 100 at a time. Look to see if there is a string   like "maxcount' to end comman below.

 

" php address-edit.php  in=2473.xml out=/dev/null actions=delete 'filter=( object is.unused)' 


Accepted Solutions
swaschkut
L2 Linker

if you like to do a demo then save your changes in another "offline" file and show this.

There is no need to do a demo on a production system.

 

 

1) pa_address-edit in=[INPUT.txt] out=[OUTPUT.txt] actions=delete 'filter=(object is.unused)'

 

2) pa_address-edit in=[OUTPUT.txt] out=/dev/null actions=display 'filter=(object is.unused)'

[output can be empty or as mentioned above you must run " actions=delete 'filter=(object is.unused)' " twice or more often - depending on the configuration file]

View solution in original post


All Replies
swaschkut
L2 Linker

there is right now no flag/counter available.

 

 

Please also remind the following:

If an addressgroup object is unused and deleted with this script, there could be still address objects available which must be deleted with a second run of the same command.

 

What is the need behind your request?

 

 

BTW: address-edit.php and service-edit.php are very similiar

clyde.franklin
L4 Transporter

Just doing some unused object cleanup as as a start I was looking to just doa handful of deletes just as  a POC to leadership team as a demo bit if all or nothing thats fine as well.  Was just wondering if feature was a avail. For example service-merger.php has a "mergecountlimit" paramter and was wondering id service-edit had similiar

swaschkut
L2 Linker

if you like to do a demo then save your changes in another "offline" file and show this.

There is no need to do a demo on a production system.

 

 

1) pa_address-edit in=[INPUT.txt] out=[OUTPUT.txt] actions=delete 'filter=(object is.unused)'

 

2) pa_address-edit in=[OUTPUT.txt] out=/dev/null actions=display 'filter=(object is.unused)'

[output can be empty or as mentioned above you must run " actions=delete 'filter=(object is.unused)' " twice or more often - depending on the configuration file]

View solution in original post

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!