AddRemoteNeighbourTag

The AddRemoteNeighbourTag method adds a tag (varBind) to a remote neighbor.

Method Synopsis

AddRemoteNeighbourTag($refLocalNbr, $tag, $refVarOp)

Parameters

$refLocalNbr
Specifies a reference to the local neighbor to which the remote neighbors are to be added.
$tag
Specifies the key value for the varBind.
$refVarOp
Specifies a reference to an array of varops.

Description

The AddRemoteNeighbourTag method adds to remote neighbors a varBind whose key is defined by the $tag parameter and the value defined by the $refVarOp parameter (a reference to an array of varops). The key and value are added sequentially, that is, the values in the @$refVarOp array are assumed to be in the same order as the remote neighbor array. If remote neighbors do not exist, then AddRemoteNeighbourTag creates them.

The $tag parameter specifies a reference to the local neighbor to which the remote neighbor currently resides or will be added (if it does not currently exist).

Example Usage

$refRifIndex = $agent->SnmpGetNext($TestNE,...);
$TestNE->AddRemoteNeighbourTag($refLocal, "m_IfIndex", $refRifIndex);

Returns

Upon completion, the AddRemoteNeighbourTag method does not return any records.

See Also