Synchronizing list of IP addresses

From ISPWiki
Jump to: navigation, search

In case of de-synchronization of IP addresses in BILLmanager and control panels, you can run the following utility to resolve the issue.

Execute the command:

/usr/local/mgr5/sbin/mgrctl -m billmgr fix.moduleip

This will start the synchronization process for all of the processing modules that support this procedure. The operation runs in the background, and may take a long time. Once completed, you will see the error message, if any, describing how to resolve it - either create an IP address in the billing panel, or delete it from a control panel, etc.

Sometimes you may need to resolve all conflicts using one method, so you may specify how to have the conflict resolved automatically. Specify a resolution method when starting the command:

/usr/local/mgr5/sbin/mgrctl -m billmgr fix.moduleip autosolve=add_to_billmgr

The autosolve parameters may have the following values:

  • add_to_billmgr - if the IP address is created in the control panel, but is missing in BILLmanager, add that IP into BILLmanager.
  • delete_from_panel - if the IP address is created in the control panel, but is missing in BILLmanager, delete that IP into BILLmanager.
  • add_to_panel - if the IP address is created in BILLmanager, but is missing in the control panel, add that IP into the control panel.
  • delete_from_billmgr - if the IP address is created in BILLmanager, but is missing in the control panel, delete that IP from the control panel.