please dont rip this site Prev Next

SnmpMgrRequest info  Overview  Group

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.

variableBindings
[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 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

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


file: /Techref/os/win/api/win32/func/src/f86_5.htm, 6KB, , updated: 2001/9/24 19:47, local time: 2024/11/13 05:48,
TOP NEW HELP FIND: 
3.139.103.204: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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://linistepper.com/Techref/os/win/api/win32/func/src/f86_5.htm"> SnmpMgrRequest</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?