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



[in] Points to an internal structure that specifies the session that will perform the request.
[in] Specifies the SNMP request type. This parameter can be one of the following values:




Search and receive a value from a specified variable.


Search and receive a value from a variable without knowing the name of the variable.


Store a value within a specific variable.

[in/out] Points to the variable bindings list.
[out] Points to a variable in which the error status result will be returned. This parameter can be one of the following values:




The agent reports that no errors occurred during transmission.


The agent could not place the results of the requested operation into a single SNMP message.


The requested operation identified an unknown variable.


The requested operation tried to change a variable but it specified either a syntax or value error.


The requested operation tried to change a variable that was not allowed to change according to the community profile of the variable.


An error other than one of those listed here occurred during the requested operation.

[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



The request timed-out


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.

See Also

SnmpMgrOpen, SnmpMgrClose

See also:

file: /Techref/os/win/api/win32/func/src/f86_5.htm, 6KB, , updated: 2001/9/24 20:47, local time: 2022/5/21 15:00,

 ©2022 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=""> 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?

  PICList 2022 contributors:
o List host: MIT, Site host, Top posters @20220521
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.

Welcome to!