Hello,
I have build a function so I can see how many users are connected to a specified port. For Citrix I use this:
Function name: No_of_CTXsessions
if(array_size(oid_column("1.3.6.1.2.1.6.13.1.2.192.168.1.100.1494"))>0,array_size(oid_column("1.3.6.1.2.1.6.13.1.2.192.168.1.100.1494")), "0")
The part 192.168.1.100 is the op address of the device that I am probing. This works as it should. The problem is, that I want to convert this to a universal function, and not hardcode the IP addres. I have tried this:
if(array_size(oid_column("1.3.6.1.2.1.6.13.1.2.[Device.FirstAddress].1494"))>0,array_size(oid_column("1.3.6.1.2.1.6.13.1.2.[Device.FirstAddress].1494")), "0")
This is not working. Anyone got an idea how to get this to work?
Thanks!