Typically the device serial number is taken for these purposes.
What I learned from this recent technote is, that device serial numbers are guaranteed to be unique only
for DataPower devices of the same hardware type. You may want use in this case:
for DataPower devices of the same hardware type. You may want use in this case:
str:concat(dp:variable('var://service/system/ident')/identification/(serial-number|product-id)) |
So far, so good, but since last Friday DataPower Virtual editions are generally available (XG45
/ XI52).
These virtual editions run in VMware hypervisor environments and are "just another" DataPower form factor.
There is only one problem wrt unique device identifiers for virtual DataPower devices
(I did point xpath++ tool to a virtual DataPower device) -- all have the same device serial number:
So what can you do to get a unique identifier for virtual DataPower devices?
Good news -- the UUID of the VMWare virtual machine can be used as appliance-unique identifier instead:
There is some other information available for virtual appliances, which may be useful, too:
(I did point xpath++ tool to a virtual DataPower device) -- all have the same device serial number:
$ echo "<foobar/>" | xpath++ "dp:variable('var://service/system/ident')/identification/serial-number" - ------------------------------------------------------------------------------- <serial-number>0000000</serial-number> $ |
So what can you do to get a unique identifier for virtual DataPower devices?
Good news -- the UUID of the VMWare virtual machine can be used as appliance-unique identifier instead:
$ echo "<foobar/>" | xpath++ "dp:variable('var://service/system/status')/statistics/Hypervisor/UUID" - ------------------------------------------------------------------------------- <UUID>564DF044-848F-E59E-8349-28A433B30F33</UUID> $ |
There is some other information available for virtual appliances, which may be useful, too:
$ echo "<foobar/>" | xpath++ "dp:variable('var://service/system/status')/statistics/Hypervisor" - | tidy -q -xml <Hypervisor> <Edition>production</Edition> <Hypervisor>VMware Virtual Platform</Hypervisor> <VirtualCPUs>4</VirtualCPUs> <Memory>4</Memory> <UUID>564DF044-848F-E59E-8349-28A433B30F33</UUID> </Hypervisor> $ |
Hermann < myXsltBlog/> < myXsltTweets/>