DCI Table "valueAsMac"?

Started by Staj, February 06, 2017, 04:14:18 PM

Previous topic - Next topic

Staj

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?

Staj

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?

Victor Kirhenshtein

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


Staj

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.