Hello,
in instance Discovery ...
I configured parameter as Net.Interface.BytesOut({instance}) and in instance discovery I am using Agent List with List name Net.InterfaceList. I found some source code on this forum, so I modified it to:
But it is not working, I guess that if statement ($1 ~= "10.200.*.*") is incorrect. I would like to return one instance which start with 10.200 IP address. Any idea how to do that? Thank you
Edit: Well, it is returning whole instance (ifType, IP, MAC Name) ... How I can return only Name?
in instance Discovery ...
I configured parameter as Net.Interface.BytesOut({instance}) and in instance discovery I am using Agent List with List name Net.InterfaceList. I found some source code on this forum, so I modified it to:
Code Select
if ($1 ~= "10.200.*.*")
{
return %(true, $1); // at this point $1 contains first matching group
}
return false;
But it is not working, I guess that if statement ($1 ~= "10.200.*.*") is incorrect. I would like to return one instance which start with 10.200 IP address. Any idea how to do that? Thank you
Edit: Well, it is returning whole instance (ifType, IP, MAC Name) ... How I can return only Name?