I have installed a PacketShaper unit at a central site and now I need to create classes and partitions for 30 branch offices, each which is on a different subnet.
Is there a way to automate the creation of the classes and partitions?
With the technique described here, you only need to manually create one subnet-based traffic class and its partition.
You will then capture the current configuration in a batch file, edit this file, and use copy and paste to create similar classes and partitions for the other branch offices.
Details appear below.
1. Use the browser or command-line interface to create a subnet-based traffic class for one branch office and then apply an appropriate partition to allocate bandwidth to this remote site.
2. In the command-line interface (CLI), use the setup capture command to capture the configuration in a batch file named config.cmd. The file is saved in the CMD directory.
The config.cmd file contains a series of CLI commands that will recreate the configuration when the file is run.
3. FTP the cmd/config.cmd file to a PC and open the file in a text editor.
4. Locate the traffic class you created for the one branch office and look at the CLI commands associated with creating the class ( class new and class rule ).
Also, look at the command for applying a partition ( partition apply ).
5. To create classes for other branch offices, copy and paste these CLI commands and modify the names and subnet ranges.
6. When you're done, you can FTP the file back to the corresponding PacketShaper unit.
7. Reset the current traffic tree using the class reset command, and then run the batch file ( run config.cmd ).
8. Use the traffic tree and partition show commands to make sure the new classes and partitions have been created (or display the Monitor Traffic page in the browser interface).