Previous Topic: snmpSvcs FunctionNext Topic: Global Variables


storePortReconfig Function

This function returns a string containing XML representing the values of ifNumber, ifTableLastChange, ifStackLastChange. You can use XML to track device changes and to rediscover interfaces on a device, when needed.

Syntax

This function has the following format:

String storePortReconfig ( Integer ifNumber, Long ifTableLastChange, Long ifStackLastChange )

Parameters

ifNumber

The number of ports on the device.

ifTableLastChange

The date and time of the latest port table change in milliseconds, calculated from a start date and time of January 1, 1970 GMT.

ifStackLastChange

The date and time of the latest port stack change in milliseconds, calculated from a start date and time of January 1, 1970 GMT.

Return Values

Returns a string containing XML in the form that is shown in the following example.

Example

The following expression produces the following result for an ifNumber of 5, ifTableLastChange of 123456, and ifStackLastChange of 234567:

Expression:

storePortReconfig ( ifNumber, ifTableLastChange, ifStackLastChange )

Result:

<ReconfigData>
     <ReconfigValue name="ifNumber" value="5"/>
     <ReconfigValue name="ifTableLastChange" value="123456"/>
     <ReconfigValue name="ifStackLastChange" value="234567"/>
</ReconfigData>