autogen-uniqueid

Profile Config Commands

Auto-generates a unique ID for devices using this profile. When executed in the device configuration mode, this command generates a unique ID for the logged device. A device‘s unique ID is a combination of a user-defined string (prefix, suffix, or both) and a substitution token. The WiNG implementation provides two built-in substitution tokens: $SN and $MiNT-ID that represent the device‘s serial number and MiNT-ID respectively. The value referenced by these substitution tokens are internally retrieved and combined with the user-defined string to auto generate a unique identity for the device.

The general format of this command is: <PREFIX><SUBSTITUTION-TOKEN><SUFFIX>. You can provide both (prefix and suffix) or just a prefix or suffix.

For example, given the following set of inputs:

  • user-defined prefix – TestAP505
  • substitution token – $SN

The unique ID is generated using TestAP505$SN, where $SN is replaced with the device‘s serial number.

When executed on an AP505 (having serial number 1902W-2013400000), the autogen-uniqueid TestAP505$SN command generates the unique ID: TestAP5051902W-2013400000. When configured on an AP505 profile, all AP505s using the profile auto-generate a unique ID in which the device‘s serial number is preceded by the string ‘TestAP505‘.

Supported in the following platforms:

  • Access Points — AP505i, AP510i/e, AP560i/h
  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000

Syntax

autogen-uniqueid <WORD>

Parameters

autogen-uniqueid <WORD>
autogen-uniqueid <WORD> Auto-generates a device‘s unique ID (not exceeding 64 characters in length)

The ID generated is a combination of the text provided and the value referenced through the substitution token $SN or $MiNT-ID. Where ever the autogen-uniqueid is used the device‘s serial number OR MiNT-ID is referenced depending on the substitution token used.

  • <WORD> – Specify a auto generate unique ID format using one of the following substitution tokens:

Available tokens:

  • $SN - references SERIAL NUMBER of the device
  • $MINT-ID - references MINT-ID of the device

For example, Test-$SN-TechPubs. In this example ‘Test‘ and ‘TechPubs‘ represent the user-defined prefix and suffix respectively. And $SN is the substitution token.

Example

nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#autogen-uniqueid Test-$MiNT-ID-TechPubs

nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#show context
nx9000 B4-C7-99-6C-88-09
 use profile default-nx9000
 use rf-domain TechPubs
 hostname nx9500-6C8809
 license AAP 66069c24b3bb1259b34ff016c723a9e299dd408f0ff891e7c5f7e279a382648397d6b3e975e356a1
 license HTANLT 66069c24b3bb1259eb36826cab3cc83999dd408f0ff891e74b62b2d3594f0b3dde7967f30e49e497
 timezone Asia/Calcutta
 use database-policy default
 use nsight-policy noc
 autogen-uniqueid Test-$MiNT-ID-TechPubs
 ip default-gateway 192.168.13.2
 device-upgrade auto rfs4000 ap505 ap510
 interface ge1
  switchport mode access
  switchport access vlan 1
 interface ge2
 --More--
nx9500-6C8809(config-device-B4-C7-99-6C-88-09)#

Related Commands

no When executed in the device configuration mode, removes the device‘s autogen-uniqueid. When executed in the profile configuration mode, removes the autogen-uniqueid on all devices using the profile.