|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| No
| Win32s
| No
| Import Library
| mgmtapi.lib
| Header File
| mgmtapi.h
| Unicode
| No
| Platform Notes
| None
|
|
|
SnmpMgrRequest
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
| );
|
|
Parameters
session
[in] Points to an internal structure that specifies the session that will
perform the request.
requestType
[in] Specifies the SNMP request type. This parameter can be one of the
following values:
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.
|
[in/out] Points to the variable bindings list.
errorStatus
[out] Points to a variable in which the error status result will be returned.
This parameter can be one of the following values:
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.
|
errorIndex
[out] Points to a variable in which the error index result will be returned.
Return Values
If the function succeeds, the return value is TRUE.
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
|
Remarks
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.
See Also
SnmpMgrOpen, SnmpMgrClose
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|