tfSetSnmpEngineBoots
Table of Contents >> SNMP Programmer's Reference
| #include <trapi.h> |
| int tfSetSnmpEngineBoots | (ttUser32Bit engineBoots); |
Function Description
This function lets the user set the number of times the SNMP engine has been rebooted. This variable is used between SNMP entities to maintain time synchronization. Since the Treck SNMP agent is not allowed to carry information over reboots, it is necessary for the user to specify the number of times the agent has been rebooted. The user can call this function only prior to starting the agent to overwrite the default value of 0.
Parameters
- engineBoots
- The engine boots value that the Treck SNMP Agent should use at startup.
Returns
- TM_ENOERROR
- Success.
- TM_ALLOCATION_ERROR
- Failure to allocate memory for the agent global variables.
- TM_AGENT_RUNNING
- Failure, agent is already running.