Conditional Expressions - Cisco 6800 Series Provisioning Manual

Multiplatform phones
Hide thumbs Also See for 6800 Series:
Table of Contents

Advertisement

Open Profile Encryption with AES
The contents of the special purpose parameters, GPP_SA through GPP_SD, are mapped to the macro
expressions $SA through $SD. These parameters are only macro expanded as the argument of the --key ,
--uid, and --pwd options in a resync URL.

Conditional Expressions

Conditional expressions can trigger resync events and select from alternate URLs for resync and upgrade
operations.
Conditional expressions consist of a list of comparisons, separated by the and operator. All comparisons must
be satisfied for the condition to be true.
Each comparison can relate to one of the following three types of literals:
• Integer values
• Software or hardware version numbers
• Doubled-quoted strings
Version Numbers
Multiplatform phones (MPP) formal release software version uses this format, where BN==Build Number:
• Cisco IP Phone 6800 Series—sip68xx.v1-v2-v3MPP-BN
The comparing string must use the same format. Otherwise, a format parsing error results.
In the software version, v1-v2-v3-v4 can specify different digits and characters, but must start with a numeric
digit. When comparing the software version, v1-v2-v3-v4 is compared in sequence, and the leftmost digits
take precedence over the latter ones.
If v[x] includes only numeric digits, the digits are compared; if v[x] includes numeric digits + alpha characters,
digits are compared first, then characters are compared in alphabetical order.
Example of Valid Version Number
sipyyyy.11-0-0MPP-BN
By contrast: 11.0.0 is an invalid format.
Comparison
sip68xx.11-0-0MPP-BN < sip68xx.11-0-0MN-1MPP-BN
Quoted strings can be compared for equality or inequality. Integers and version numbers can also be compared
arithmetically. The comparison operators can be expressed as symbols or as acronyms. Acronyms are convenient
for expressing the condition in an Open format profile.
Operator
=
!=
<
Cisco IP Phone 6800 Series Multiplatform Phones Provisioning Guide
18
Alternate
Description
Syntax
eq
equal to
ne
not equal to
lt
less than
Applicable to Integer
Applicable to Quoted
and Version Operands
String Operands
Yes
Yes
Yes
Yes
Yes
No
Provisioning Scripts

Advertisement

Table of Contents
loading

Table of Contents