This document contains instructions and steps on how to automatically create any desired number of Policy Groups in a Symantec Messaging Gateway (SMG) appliance.
The script provided in this article will create the desired number of Policy Groups, each one constructed as follows:
Automatically create Policy Groups
Download and install Mozilla Firefox: http://www.mozilla.org/en-US/firefox
Install the 'iMacros' add-on: https://addons.mozilla.org/en-US/firefox/addon/imacros-for-firefox
Download the iMacro file named "SMG_PolicyGroups.iim" from the attachments section below.
Edit the file and enter the correct IP address of the SMG appliance in place of "<your_SMG_IP>"
Copy the iMacro file to the predefined macros folder in iMacros (check the iMacros add-on settings for the folder's location).
Open Firefox and connect to the SMG Control Center.
Open the 'iMacros' side pane by clicking on the icon next to the 'home page' one.
The iMacro named "SMG_PolicyGroup.iim" should be visible in the side pane.
Select the file and click on the "Play" tab below, then enter the number of desired groups to create under the "Repeat Macro" section.
When ready, click the "Play (Loop)" button to start the automatic groups creation.
This article may be useful for testing purposes on the following Messaging Gateway versions: 9.5.2, 9.5.3