Cisco SPA901-UK Provisioning Guide - Page 56

Upgrade Rule, <Report_Rule ua=na>[ --delta ], </Report_Rule&gt

Page 56 highlights

Creating Provisioning Scripts Using Provisioning Parameters 2 • Add the following to your provisioning file: [ --delta ] http://reportTargetServer/reportPath/$PN_$MA_$SN.xml Upgrade Rule The IP Telephony device provides one configurable remote upgrade parameter, Upgrade_Rule. This parameter accepts a syntax similar to the profile rule parameters. URL options not supported for upgrades, but conditional expressions and assignment expressions can be used. If conditional expressions are used, the parameter can be populated with multiple alternatives, separated by the | character. The syntax for each alternative is as follows: [ conditional-expr ] [ assignment-expr ] URL As in the case of Profile_Rule* parameters, the Upgrade_Rule parameter evaluates each alternative until a conditional expression is satisfied or an alternative has no conditional expression. The accompanying assignment expression is evaluated, if specified. Then, an upgrade to the specified URL is attempted. If the Upgrade_Rule contains a URL without a conditional expression, the device upgrades to the firmware image specified by the URL. Subsequently, it does not attempt to upgrade again until either the rule itself is modified or the effective combination of scheme + server + port + filepath is changed, following macro expansion and evaluation of the rule. In order to attempt a firmware upgrade, the device disables audio at the start of the procedure, and reboots at the end of the procedure. For this reason, an upgrade driven by the contents of Upgrade_Rule is only automatically initiated by the device if any voice line is currently inactive. For example, http://p.tel.com/firmware/spa021025.bin In this example, the Upgrade_Rule upgrades the firmware to the image stored at the indicated URL. The following is another example: ("$F" ne "beta-customer")? http://p.tel.com/firmware/spa021025.bin | http://p.tel.com/firmware/spa-test-0527s.bin This example directs the unit to load one of two images, based on the contents of a general purpose parameter, GPP_F. Cisco Small Business IP Telephony Devices Provisioning Guide 55

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114

Creating Provisioning Scripts
Using Provisioning Parameters
Cisco Small Business IP Telephony Devices Provisioning Guide
55
2
Add the following to your provisioning file:
<Report_Rule ua="na">[ --delta ]
http://reportTargetServer/reportPath/$PN_$MA_$SN.xml
</Report_Rule>
Upgrade Rule
The IP Telephony device provides one configurable remote upgrade parameter,
Upgrade_Rule. This parameter accepts a syntax similar to the profile rule
parameters. URL options not supported for upgrades, but conditional expressions
and assignment expressions can be used. If conditional expressions are used, the
parameter can be populated with multiple alternatives, separated by the |
character. The syntax for each alternative is as follows:
[ conditional-expr ] [ assignment-expr ] URL
As in the case of Profile_Rule* parameters, the Upgrade_Rule parameter evaluates
each alternative until a conditional expression is satisfied or an alternative has no
conditional expression. The accompanying assignment expression is evaluated, if
specified. Then, an upgrade to the specified URL is attempted.
If the Upgrade_Rule contains a URL without a conditional expression, the device
upgrades to the firmware image specified by the URL. Subsequently, it does not
attempt to upgrade again until either the rule itself is modified or the effective
combination of scheme + server + port + filepath is changed, following macro
expansion and evaluation of the rule.
In order to attempt a firmware upgrade, the device disables audio at the start of
the procedure, and reboots at the end of the procedure. For this reason, an
upgrade driven by the contents of Upgrade_Rule is only automatically initiated by
the device if any voice line is currently inactive.
For example,
In this example, the Upgrade_Rule upgrades the firmware to the image stored at
the indicated URL. The following is another example:
(“$F” ne “beta-customer”)? http://p.tel.com/firmware/spa021025.bin
This example directs the unit to load one of two images, based on the contents of
a general purpose parameter, GPP_F.