snmpUnpublish (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

All NX devices

Firmware version:

1.60.00


Remove one or all published variables from the register.

 

Input:

OID : STRING

The OID representing the variable to unpublish.

 

All : BOOL (Default false)

Remove all published variables if set to true.

 

Output:

None.

 

 

Returns: INT

1

- Success.

0

- This function is not supported.

-5

- OID is not published.

-10

- Invalid input OID.

 

Declaration

FUNCTION snmpUnpublish : INT;
VAR_INPUT
  oid : STRING;

  all : BOOL := FALSE;

END_VAR;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
BEGIN
...
  snmpUnpublish(oid:="1.3.6.1.4.1.999.1.1");
...
END