NetXMS Support Forum

English Support => General Support => Topic started by: Staj on February 06, 2017, 04:14:18 PM

Title: DCI Table "valueAsMac"?
Post by: Staj on February 06, 2017, 04:14:18 PM
SNMP_VarBind's valueAsMac displays my OID's octet string value just how I need it but I'm trying to obtain this MAC address formatted string from a value within an SNMP DCI Table's Transformation script. How can I display a SNMP Table value as a MAC address in the same way as SNMP_VarBind's valueAsMac?
Title: Re: DCI Table "valueAsMac"?
Post by: Staj on February 06, 2017, 05:16:00 PM
valueAsMac seems to be defined in SNMP_Variable::getValueAsMACAddr which has no relation with table get NXSL method definition as far as I can tell, is there really no work around for this?
Title: Re: DCI Table "valueAsMac"?
Post by: Victor Kirhenshtein on February 23, 2017, 07:40:27 PM
You want to get value as MAC address for table cell? And this table was retrieved by SNMP? Or you are doing direct SNMP request from the script?

Best regards,
Victor

Title: Re: DCI Table "valueAsMac"?
Post by: Staj on March 07, 2017, 06:34:58 AM
I want to get a MAC value from an SNMP table shown as a formatted MAC address in the table, I wanted to achieve this through a DCI Table Transformation script.