Is there a way to use the defined variables in functions? i.e., Device.Type, etc? I want to check the device type and call a function to query SNMP data based on the device type. I tried a few things but couldn’t get it to work.
Yes you can if the execution context has a device object. function that gets devices type would look like:
device_property(“Device.Type”)
Thanks Uldis. I had to use device_property(“Type”) to get the value. Since I need to compare the returned string to another, I need a string compare function. I don’t see one.
I don’t see anyway of telling the difference between devices unless each device type has a different string length.
Is there a string compare function coming in Beta 12? And is that coming out soon? ![]()