Microsoft KB Archive/130699

{|
 * width="100%"|

BUG: SNMP Service Produces Bad "Error on getproc(InitEx) 127"

 * }

Q130699

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK) for Windows NT

-

SYMPTOMS
When the SNMP service is started with debug level 2 or greater, it returns this error message:

error on getproc(InitEx) 127

RESOLUTION
This error message should be ignored.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are reasearching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

How to Start the SNMP Service
The SNMP service can be started from either the control panel or from a console window.

Type "net help start snmp" in a console box to see how to configure error logging of the SNMP agent.

The syntax of the command is:

  net start snmp [/logtype: type] [/loglevel: level] where:


 * /LOGTYPE: type determines where the log will be created. The possible values are 2 for file, 4 for eventlog, and 6 for both. The default is 4. The file option creates a file under \WINNT\SYSTEM32 called SNMPDBG.LOG.
 * /LOGLEVEL: level determines the debug level. The higher the number, the more the detail obtained. The default is 1 (minimum), and the range is from 1 to 20.

Here is an example:

  net start snmp /logtype:6 /loglevel:10 This starts the SNMP service with loglevel 10, and logs events in the eventlog as well as in SNMPDBG.LOG.

The SNMP service can also be started from a console window without typing "net start." This makes all error messages go to the console window and can be used to help in debugging when writing SNMP applications. For example, the following starts the SNMP service:

"cmd-prompt> snmp" Additional query words:

Keywords : kbnetwork kbAPI kbOSWinNT310bug kbOSWinNT350bug kbSDKPlatform kbSNMP kbGrpDSNet

Issue type : kbbug

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch