NetXMS Support Forum

English Support => General Support => Topic started by: [email protected] on August 30, 2013, 12:19:22 PM

Title: instance discovery filter of Filesystem.Volumes
Post by: [email protected] on August 30, 2013, 12:19:22 PM
Hi.

I'm trying to autmatically create DCIs using FileSystem.FreePerc({instance}).
In the "Instance Discovery tab" 
           Instance discovery method:    Agent Table
           Table name:                         FileSystem.Volumes.
I need to retrieve only volumes that have been formatted to "NTFS" and have a drive letter asigned.

Is every instance an array of values that correspond to table's row data?
Something like:  if (($1[3] == "NTFS) && ($1[0] like ':\'))
Or is it possible to check several attributes to identify exact table rows?
Title: Re: instance discovery filter of Filesystem.Volumes
Post by: Victor Kirhenshtein on August 30, 2013, 07:33:16 PM
Hi!

In fact, instance discovery using tables is not working yet. You can use agent list as discovery method and use list FileSystem.MountPoints.

Best regards,
Victor
Title: Re: instance discovery filter of Filesystem.Volumes
Post by: [email protected] on August 31, 2013, 11:33:37 AM
Hi Victor.

Thank you for your answer and for the product you are creating.
It's really cool!!!

Best regards,
Alexey