The SnmpMgrRequest function requests the specified operation be performed with the specified agent.
SNMPAPI SnmpMgrRequest(
LPSNMP_MGR_SESSION session, |
// SNMP session pointer |
BYTE requestType, |
// Get, GetNext, or Set |
RFC1157VarBindList *variableBindings, |
// variable bindings |
AsnInteger *errorStatus, |
// result error status |
AsnInteger *errorIndex |
// result error index |
); |
Value |
Meaning |
ASN_RFC1157_GETREQUEST |
Search and receive a value from a specified variable. |
ASN_RFC1157_GETNEXTREQUEST |
Search and receive a value from a variable without knowing the name of the variable. |
ASN_RFC1157_SETREQUEST |
Store a value within a specific variable. |
Value |
Meaning |
SNMP_ERRORSTATUS_NOERROR |
The agent reports that no errors occurred during transmission. |
SNMP_ERRORSTATUS_TOOBIG |
The agent could not place the results of the requested operation into a single SNMP message. |
SNMP_ERRORSTATUS_NOSUCHNAME |
The requested operation identified an unknown variable. |
SNMP_ERRORSTATUS_BADVALUE |
The requested operation tried to change a variable but it specified either a syntax or value error. |
SNMP_ERRORSTATUS_READONLY |
The requested operation tried to change a variable that was not allowed to change according to the community profile of the variable. |
SNMP_ERRORSTATUS_GENERR |
An error other than one of those listed here occurred during the requested operation. |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is NULL. To get extended error information, call GetLastError. GetLastError may return one of the following error codes:
Error Code |
Meaning |
SNMP_MGMTAPI_TIMEOUT |
The request timed-out |
SNMP_MGMTAPI_SELECT_FDERRORS |
Unexpected error file descriptors indicated by the Windows Sockets select function |
Retries and time-outs are supplied to the SnmpMgrOpen function. Each variable in the variable bindings list must be initialized to type ASN_NULL for Get and Get Next requests.
For more information, see RFC 1157.
file: /Techref/os/win/api/win32/func/src/f86_5.htm, 6KB, , updated: 2001/9/24 19:47, local time: 2024/11/19 19:21,
18.226.150.246:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/techref/os/win/api/win32/func/src/f86_5.htm"> SnmpMgrRequest</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.