vCO Workflow Script to Log the SNMP Data Received

The following is the vCO Workflow Script to Log the SNMP Data Recieved

 

System.log("==================================================");
System.log("==================================================");
for (var i = 0; i < arrProperties.length; i++)
{
    var objProperties;
		objProperties = arrProperties[i];

	var arrKeys;
		arrKeys = objProperties.keys;
	
	for (var ii = 0; ii < arrKeys.length; ii++)
	{
		var strKey;
			strKey = arrKeys[ii];
	
		var strValue;
			strValue = objProperties.get(strKey);
		
		System.log("Key: " + strKey);
		System.log("Value: " + strValue);
		System.log("==================================================");
	}		
}
System.log("==================================================");
System.log("==================================================");

Leave a Reply