Mistake on this page? Email us

Generate a Vendor ID and Class ID

This section explains how to generate a Vendor ID and Class ID. These identifiers are used to verify that an update is correctly matched to your device.

You can either generate a random Vendor ID and Class ID, or derive a Vendor ID and Class ID from the device's vendor domain and model name.

  • Generating a random Vendor ID and Class ID creates a different set of IDs every time you run the command.
  • Deriving the Vendor ID and Class ID from the device's domain and model name creates the same set of IDs every time you run the command.

For more information, see the unique identifiers section.

Note: Take note of the Vendor and Class IDs. You need these values later in the tutorial.

Generate a random Vendor ID and Class ID

To generate a random Vendor ID and Class ID, run:

 python -c "import uuid; vendor_id = uuid.uuid4(); class_id = uuid.uuid4(); print('\\nvendor-id: {}\\nclass-id: {}\\n'.format(vendor_id, class_id))"

Derive a Vendor ID and Class ID

To derive your Vendor ID and Class ID from the device's vendor domain and model name, run:

python -c "import uuid; vendor_id = uuid.uuid5(uuid.NAMESPACE_DNS, '<vendor domain>'); class_id = uuid.uuid5(vendor_id, '<model name>'); print('\\nvendor-id: {}\\nclass-id: {}\\n'.format(vendor_id, class_id))"

Where:

  • <vendor domain> is the device manufacturer's domain name. This value must include a period, for example, vendor.com.
  • <model name> is the device's model name.