Previous Topic: mvelTrace FunctionNext Topic: snmpGetUpSinceTime Function


snmpCounter64 Function

This function evaluates two 32-bit numeric values and returns a value containing the 64-bit representation. Use this function to certify devices. The hiVal is shifted 32 bits left and the lowVal is added and the result is placed in a 64-bit return variable.

Syntax

This function has the following format:

Object snmpCounter64 (Long hiVal, Long lowVal)

Parameters

hiVal

The 32-bit numeric value representing the high-order bits.

lowVal

The 32-bit numeric value representing the low-order bits.

Return Values

Returns the 64-bit representation of the two 32-bit numeric values, or returns "null" when either 32-bit value input is null.

Examples

The following expression produces the following result for a hiVal of 88 and a lowVal of 558.

Expression:

snmpCounter64 (hiVal, lowVal)

Result:

377957122606

Advanced Example

The following expression is taken from “Cisco CBQos ClassMap” Vendor Certification. This certification contains many snmpMax examples:

PrePolicyPackets=snmpMax(0,snmpCounter64(cbQosCMPrePolicyPktOverflow,cbQosCMPrePolicyPkt))