Generate new hosts through host prototype functionality

Import child template which will gather information about end Access Point:
Import parrent template wich will take inpute from wireless manager anc create access points:
How it works?

I have new host with custom SNMP address:
With custom macros configured:
Now assign template:
Now new host (Access Points) has been generated:
How it works:
At first deside the values we would like to work for example:
     entPhysicalName = 1.3.6.1.2.1.47.1.1.1.1.7
entPhysicalSerialNum = 1.3.6.1.2.1.47.1.1.1.1.11
Then we discover all these values. Two discovery macros, Three items per each:
discovery[{#NAME},1.3.6.1.2.1.47.1.1.1.1.7,{#SN},1.3.6.1.2.1.47.1.1.1.1.11]
And now the values discovered we use further to create host with unique identifier respectively hostname underneath the hood is serial number:
Off corse the group "access points" must be created before:
And finally all magic happens under template which happens to assign over here:
The final product is how the data has been gathered under each host: