Cisco Cisco Broadband Access Center for Cable 5.0
8-17
Cisco Broadband Access Center for Cable Administrator’s Guide
OL-2445-02
Chapter 8 Broadband Access Center for Cable Support Tools and Advanced Concepts
The Configuration File Utility
Specifying Macro Variables at the Command Line
Usage Guidelines
You use the runCfgUtil.sh command to specify macro variables.
Syntax Description
You must use this syntax when using the unCfgUtil.sh command when specifying macro variables at
the command line:
the command line:
runCfgUtil.sh -l <file> -m <"key_value_pairs”>
Where:
•
-l—Specifies the input file is on the local file system.
•
<file>—Identifies the input template file being parsed.
•
-m—Identifies the username to use when connecting to the RDU.
•
<“key_value_pairs”>—Identifies the key value pairs for macro variables. When multiple macro
variables are required, a double comma separator is inserted between the key value pairs.
variables are required, a double comma separator is inserted between the key value pairs.
To specify values for macro variables at the command line:
Step 1
Change directory to /opt/CSCObpr/rdu/samples/templates.
Step 2
Select a template file to use.
Step 3
Identify the macro variables in the template. In this example, the macro variables are macro1 (option 3)
and macro11 (option 4.2).
and macro11 (option 4.2).
Step 4
Identify the values for the macro variables. The value for macro1 will be set to 1, and the value for
macro11 to 64000.
macro11 to 64000.
Step 5
Run the configuration file utility using this command:
runCfgUtil.sh -l macro.tmpl -m "macro1=1,,macro11=64000"
Where:
•
-unprov.tmpl—Identifies the input file.
•
macro1=1,,macro11=64000—Identifies the key value pairs for macro variables. Since multiple
macro variables are necessary, a double comma separator is inserted between the key value pairs.
macro variables are necessary, a double comma separator is inserted between the key value pairs.
After running the utility, results similar to these should appear:
# /opt/CSCObpr/rdu/bin/runCfgUtil.sh -l macro.tmpl -m "macro1=1,,macro11=64000"
Broadband Provisioning Registrar Configuration Utility
Version: 2.5.1.5
Outputting binary contents
Off
File Bytes
Option
Description
Value
0
030101
3
Network Access Control
On
3
041F
4
Class of Service
5
010101
4.1
Class ID
1
8
02040000FA00
4.2
Maximum Downstream Rate
64000 bits/sec
14
03040000FA00
4.3
Maximum Upstream Rate
64000 bits/sec