home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / bin / snmp.txt < prev    next >
Encoding:
Text File  |  1995-07-11  |  2.6 KB  |  57 lines

  1.  
  2.  
  3. NOTES ON SNMP DEVELOPMENT FOR WINDOWS/NT 
  4. ========================================================
  5.  
  6. The SNMP service for Windows NT requires that the TCPIP service
  7. be running.  Use the network control panel application to install and 
  8. configure the TCPIP service.  You can then also use the network control
  9. panel application to install and configure the SNMP service.
  10.  
  11. When you install the SNMP service it adds the following files to your
  12. <windir>\system32 directory
  13.  
  14. snmp.exe     -- The SNMP agent service
  15. snmptrap.exe -- Receives SNMP traps and forwards them to mgmtapi.dll
  16. mgmtapi.dll  -- DLL for generating SNMP management requests and
  17.                 receiving information
  18. inetmib2.dll -- MIB II extension agent DLL
  19. lmmib2.dll   -- LAN Manager MIB 2 extension agent DLL
  20.  
  21. If you are developing an extension agent DLL, you must configure
  22. the registry so that the SNMP agent will load the extension agent
  23. DLL.  You can use the regedt32.exe program that comes with Windows NT
  24. to add this information.  SNMP configuration is found in
  25. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP\Parameters.
  26. You will need to add another entry under the ExtensionAgents Key.  Simply
  27. follow the same format that you see for the existing extension agent DLLs--
  28. that is provide a pointer to another registry entry that contains the 
  29. physical path where the DLL can be found.  NOTE: the key name and values
  30. are case sensitive.  Make sure that they match.  If you have problmes
  31. look in the system log.  Also type "Net Help Start SNMP" to see how to
  32. configure error logging of the SNMP agent.
  33.  
  34.  
  35. You must stop and restart the SNMP service for it to load the new
  36. extension agent DLLs.
  37.  
  38. The files in the SNMPUTIL directory contain the source to the 
  39. SNMPUTIL.EXE utility.  The usage of this utility is:
  40.  
  41. usage:  snmputil [get|getnext|walk] agent community oid [oid ...] 
  42.         snmputil trap                                             
  43.  
  44. This utility will allow you to retrieve data from any SNMP agent
  45.  
  46. In the MSTOOLS directory, you will find the MIB compiler.
  47. The SNMP Programmer's Reference describes the usage of the MIB compiler
  48. that creates the file MIB.BIN that the SNMPUTIL.EXE program uses.  
  49. You can use the MIB compiler, MIBCC.EXE, to compile your own private
  50. MIBs as well.  The file MIB.BIN must be placed in the path for the SNMP 
  51. Manager APIs to be able to function properly.  MIBCC.EXE by default places
  52. the file MIB.BIN in the <windir>\system32 directory.
  53.  
  54. The files in the TESTDLL directory are the sources for the TESTDLL.DLL.
  55. This DLL impliments the toaster MIB.  See the note above about installing
  56. this DLL.
  57.