Export (0) Print
Expand All

SnmpSvcSetLogType function

[SNMP is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use Windows Remote Management, which is the Microsoft implementation of WS-Man.]

The SnmpSvcSetLogType function adjusts the destination for the debug output from the SNMP service and from SNMP extension agents using the SnmpUtilDbgPrint function. This function is an element of the SNMP Utility API.

Syntax


void SnmpSvcSetLogType(
  _In_  INT nLogType
);

Parameters

nLogType [in]

Specifies a signed integer variable that represents the destination for the debug output from the SnmpUtilDbgPrint function. This parameter can be one of the following values.

ValueMeaning
SNMP_OUTPUT_TO_CONSOLE

The destination for the debug output is a console window.

SNMP_OUTPUT_TO_LOGFILE

The destination for the debug output is the SNMPDBG.LOG file in the SYSTEM32 directory.

SNMP_OUTPUT_TO_DEBUGGER

The destination for the debug output is a debugger utility.

 

Return value

This function does not return a value.

Remarks

Extension agents are encouraged to use the SnmpSvcSetLogType and SnmpSvcSetLogLevel functions during development to adjust the output of debugging information. Extension agents can integrate the information with the debug output from the SNMP service.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Snmp.h

Library

Snmpapi.lib

DLL

Snmpapi.dll

See also

Simple Network Management Protocol (SNMP) Overview
SNMP Functions
SnmpUtilDbgPrint
SnmpSvcSetLogLevel

 

 

Community Additions

ADD
Show:
© 2015 Microsoft