tfModifySysObjId
Table of Contents >> SNMP Programmer's Reference
| #include <trapi.h> |
| int tfModifySysObjId | ( |
| ttOidPtr sysOid, | |
| int oidLen | |
| ); |
Function Description
This function lets the user modify MIB-II sysObjectID object instance. By definition, sysObjectID is "The vendor's authoritative identification of the network management subsystem contained in the entity. The value is allocated within the SMI enterprises subtree and provides an easy and unambiguous means for determining what is being managed." Its length must not exceed TM_SNMP_MAX_NAME_LEN defined in trimpl.h .
Parameters
- sysOid
- The new sysObjectId.
- oidLen
- The new sysObjectId's lentgh (number of elements of the OID).
Returns
- TM_ENOERROR
- No error.
- TM_ALLOCATION_ERROR
- Failure to allocate memory for the agent global variables.
- TM_SYSOID_TOOLONG
- sysObjectId is too long.