Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

340 lines
10 KiB

  1. ; NETSNMP.INX
  2. ;
  3. ; Simple Network Management Protocol
  4. ;
  5. ; Copyright (c) 1993-1999, Microsoft Corporation
  6. [Version]
  7. Signature="$Windows NT$"
  8. LayoutFile=layout.inf
  9. Provider=%Msft%
  10. [SNMP]
  11. CopyFiles = CpyFiles_Sys
  12. DelFiles = DelObsolete_Sys
  13. Uninstall = SNMP.Remove
  14. StartServices = SNMP, SNMPTRAP
  15. [SNMP.Remove]
  16. DelReg = SNMP.DelReg
  17. DelFiles = DelFiles_Sys
  18. [DestinationDirs]
  19. CpyFiles_Sys = 11 ;%windir%\System32
  20. DelFiles_Sys = 11 ;%windir%\System32
  21. DelObsolete_Sys = 11 ;%windir%\System32
  22. [SNMP.Services]
  23. AddService = SNMP, 0x10, SNMP_Service_Inst, SNMP_Evt
  24. AddService = SNMPTRAP, 0x10, SNMPTRAP_Service_Inst, SNMPTRAP_Evt
  25. [SNMP.Remove.Services]
  26. DelService = SNMP, 0x04
  27. DelService = SNMPTRAP, 0x04
  28. ;-------------------------------------------------------------------------
  29. ; SNMP subagent sections/entries
  30. ; In order to add an SNMP subagent:
  31. ; - define an entry in each of [SNMP.SNMPAgent] and [SNMP.Remove.SNMPAgent]
  32. ; - define [SNMP.Add<subagent>] and [SNMP.Remove.Del<subagent>]
  33. ; - make sure the binary is copied/removed by [CpyFiles_Sys] and [DelFiles_Sys]
  34. ; - any other particular registry configuration should go in [SNMP.AddReg] and [SNMP.DelReg]
  35. ;-------------------------------------------------------------------------
  36. [SNMP.SNMPAgent]
  37. AddAgent = SNMP.AddLMMIB2Agent
  38. AddAgent = SNMP.AddINETMIB1Agent
  39. AddAgent = SNMP.AddHOSTMIBAgent
  40. AddAgent = SNMP.AddSNMPAgent
  41. AddAgent = SNMP.AddEVNTAgent
  42. AddAgent = SNMP.AddWINSSNMPAgent
  43. AddAgent = SNMP.AddDHCPSNMPAgent
  44. AddAgent = SNMP.AddIGMPSNMPAgent
  45. AddAgent = SNMP.AddIPMulticastSNMPAgent
  46. @s:AddAgent = SNMP.AddRIPSNMPAgent
  47. @s:AddAgent = SNMP.AddOSPFSNMPAgent
  48. @s:AddAgent = SNMP.AddBOOTPSNMPAgent
  49. AddAgent = SNMP.AddIPXSNMPAgent
  50. AddAgent = SNMP.AddIASSNMPAgent
  51. [SNMP.Remove.SNMPAgent]
  52. DelAgent = SNMP.Remove.DelLMMIB2Agent
  53. DelAgent = SNMP.Remove.DelINETMIB1Agent
  54. DelAgent = SNMP.Remove.DelHOSTMIBAgent
  55. DelAgent = SNMP.Remove.DelSNMPAgent
  56. DelAgent = SNMP.Remove.DelEVNTAgent
  57. DelAgent = SNMP.Remove.DelWINSSNMPAgent
  58. DelAgent = SNMP.Remove.DelDHCPSNMPAgent
  59. DelAgent = SNMP.Remove.DelIGMPSNMPAgent
  60. DelAgent = SNMP.Remove.DelIPMulticastSNMPAgent
  61. @s:DelAgent = SNMP.Remove.DelRIPSNMPAgent
  62. @s:DelAgent = SNMP.Remove.DelOSPFSNMPAgent
  63. @s:DelAgent = SNMP.Remove.DelBOOTPSNMPAgent
  64. DelAgent = SNMP.Remove.DelIPXSNMPAgent
  65. AddAgent = SNMP.Remove.DelIASSNMPAgent
  66. [SNMP.AddLMMIB2Agent]
  67. ServiceName = "SNMP"
  68. AgentName = "LANManagerMIB2Agent"
  69. AgentPath = "%SystemRoot%\System32\lmmib2.dll"
  70. [SNMP.AddINETMIB1Agent]
  71. ServiceName = "SNMP"
  72. AgentName = "RFC1156Agent"
  73. AgentPath = "%SystemRoot%\System32\inetmib1.dll"
  74. [SNMP.AddHOSTMIBAgent]
  75. ServiceName = "SNMP"
  76. AgentName = "HostMIB"
  77. AgentPath = "%SystemRoot%\System32\hostmib.dll"
  78. [SNMP.AddSNMPAgent]
  79. ServiceName = "SNMP"
  80. AgentName = "SNMPMIB"
  81. AgentPath = "%SystemRoot%\System32\snmpmib.dll"
  82. [SNMP.AddEVNTAgent]
  83. ServiceName = "SNMP"
  84. AgentName = "SNMP_EVENTS"
  85. AgentPath = "%SystemRoot%\System32\evntagnt.dll"
  86. [SNMP.AddWINSSNMPAgent]
  87. ServiceName = "WINS"
  88. AgentName = "WINSMibAgent"
  89. AgentPath = "%SystemRoot%\System32\winsmib.dll"
  90. [SNMP.AddDHCPSNMPAgent]
  91. ServiceName = "DHCPServer"
  92. AgentName = "DhcpMibAgent"
  93. AgentPath = "%SystemRoot%\System32\dhcpmib.dll"
  94. [SNMP.AddIGMPSNMPAgent]
  95. ServiceName = "RemoteAccess"
  96. AgentName = "IGMPMibAgent"
  97. AgentPath = "%SystemRoot%\System32\igmpagnt.dll"
  98. [SNMP.AddIPMulticastSNMPAgent]
  99. ServiceName = "RemoteAccess"
  100. AgentName = "IPMulticastMibAgent"
  101. AgentPath = "%SystemRoot%\System32\mcastmib.dll"
  102. @s:[SNMP.AddRIPSNMPAgent]
  103. @s:ServiceName = "RemoteAccess"
  104. @s:AgentName = "RIPMibAgent"
  105. @s:AgentPath = "%SystemRoot%\System32\ripagnt.dll"
  106. @s:[SNMP.AddOSPFSNMPAgent]
  107. @s:ServiceName = "RemoteAccess"
  108. @s:AgentName = "OSPFMibAgent"
  109. @s:AgentPath = "%SystemRoot%\System32\ospfagnt.dll"
  110. @s:[SNMP.AddBOOTPSNMPAgent]
  111. @s:ServiceName = "RemoteAccess"
  112. @s:AgentName = "BOOTPMibAgent"
  113. @s:AgentPath = "%SystemRoot%\System32\btpagnt.dll"
  114. [SNMP.AddIPXSNMPAgent]
  115. ServiceName = "RemoteAccess"
  116. AgentName = "IPXMibAgent"
  117. AgentPath = "%SystemRoot%\System32\rtipxmib.dll"
  118. [SNMP.AddIASSNMPAgent]
  119. ServiceName = "IAS"
  120. AgentName = "IASAgent"
  121. AgentPath = "%SystemRoot%\System32\iasperf.dll"
  122. [SNMP.Remove.DelLMMIB2Agent]
  123. AgentName = "LANManagerMIB2Agent"
  124. [SNMP.Remove.DelINETMIB1Agent]
  125. AgentName = "RFC1156Agent"
  126. [SNMP.Remove.DelHOSTMIBAgent]
  127. AgentName = "HostMIB"
  128. [SNMP.Remove.DelSNMPAgent]
  129. AgentName = "SNMPMIB"
  130. [SNMP.Remove.DelEVNTAgent]
  131. AgentName = "SNMP_EVENTS"
  132. [SNMP.Remove.DelWINSSNMPAgent]
  133. AgentName = "WINSMibAgent"
  134. [SNMP.Remove.DelDHCPSNMPAgent]
  135. AgentName = "DhcpMibAgent"
  136. [SNMP.Remove.DelIGMPSNMPAgent]
  137. AgentName = "IGMPMibAgent"
  138. [SNMP.Remove.DelIPMulticastSNMPAgent]
  139. AgentName = "IPMulticastMibAgent"
  140. [SNMP.Remove.DelRIPSNMPAgent]
  141. AgentName = "RIPMibAgent"
  142. [SNMP.Remove.DelOSPFSNMPAgent]
  143. AgentName = "OSPFMibAgent"
  144. [SNMP.Remove.DelBOOTPSNMPAgent]
  145. AgentName = "BOOTPMibAgent"
  146. [SNMP.Remove.DelIPXSNMPAgent]
  147. AgentName = "IPXMibAgent"
  148. [SNMP.Remove.DelIASSNMPAgent]
  149. AgentName = "IASAgent"
  150. ;-------------------------------------------------------------------------
  151. ; File operations performed on SNMP service installation
  152. ; - copy files to %windir%system32 directory
  153. ; - copy files to %windir%help directory
  154. ; - delete obsoleted files from %windir%\system32 directory
  155. ;-------------------------------------------------------------------------
  156. [CpyFiles_Sys]
  157. lmmib2.dll,,,2
  158. hostmib.dll,,,2
  159. snmpmib.dll,,,2
  160. evntagnt.dll,,,2
  161. evntcmd.exe,,,2
  162. evntwin.exe,,,2
  163. snmp.exe,,,2
  164. snmptrap.exe,,,2
  165. accserv.mib,,,2
  166. authserv.mib,,,2
  167. dhcp.mib,,,2
  168. @@!p:ftp.mib,,,2
  169. hostmib.mib,,,2
  170. @@!p:http.mib,,,2
  171. @@!p:inetsrv.mib,,,2
  172. ipforwd.mib,,,2
  173. lmmib2.mib,,,2
  174. mcastmib.mib,,,2
  175. mib_ii.mib,,,2
  176. mipx.mib,,,2
  177. mripsap.mib,,,2
  178. msft.mib,,,2
  179. msipbtp.mib,,,2
  180. msiprip2.mib,,,2
  181. nipx.mib,,,2
  182. smi.mib,,,2
  183. wfospf.mib,,,2
  184. wins.mib,,,2
  185. [CpyFiles_Sys.Security]
  186. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
  187. [DelObsolete_Sys]
  188. snmpcfg.exe,,,1
  189. ;-------------------------------------------------------------------------
  190. ; File operations performed when SNMP service gets uninstalled
  191. ; - delete files from %windir%\system32 directory
  192. ; - delete files from %windir%\help directory
  193. ;-------------------------------------------------------------------------
  194. [DelFiles_Sys]
  195. lmmib2.dll,,,1
  196. hostmib.dll,,,1
  197. snmpmib.dll,,,1
  198. evntagnt.dll,,,1
  199. evntcmd.exe,,,1
  200. evntwin.exe,,,1
  201. snmp.exe,,,1
  202. snmptrap.exe,,,1
  203. accserv.mib,,,1
  204. authserv.mib,,,1
  205. dhcp.mib,,,1
  206. @@!p:ftp.mib,,,1
  207. hostmib.mib,,,1
  208. @@!p:http.mib,,,1
  209. @@!p:inetsrv.mib,,,1
  210. ipforwd.mib,,,1
  211. lmmib2.mib,,,1
  212. mcastmib.mib,,,1
  213. mib_ii.mib,,,1
  214. mipx.mib,,,1
  215. mripsap.mib,,,1
  216. msft.mib,,,1
  217. msipbtp.mib,,,1
  218. msiprip2.mib,,,1
  219. nipx.mib,,,1
  220. smi.mib,,,1
  221. wfospf.mib,,,1
  222. wins.mib,,,1
  223. ;-------------------------------------------------------------------------
  224. ; Service Install Sections
  225. ;-------------------------------------------------------------------------
  226. [SNMP_Service_Inst]
  227. DisplayName = %SNMP_Display%
  228. ServiceType = %SERVICE_WIN32_OWN_PROCESS%
  229. StartType = %SERVICE_AUTO_START%
  230. ErrorControl = 1
  231. ServiceBinary = "%%SystemRoot%%\System32\snmp.exe"
  232. Dependencies = EventLog
  233. StartName = LocalSystem
  234. AddReg = SNMP_AddReg
  235. Description = %SNMP_Desc%
  236. [SNMPTRAP_Service_Inst]
  237. DisplayName = %SNMPTRAP_Display%
  238. ServiceType = %SERVICE_WIN32_OWN_PROCESS%
  239. StartType = %SERVICE_DEMAND_START%
  240. ErrorControl = 1
  241. ServiceBinary = "%%SystemRoot%%\System32\snmptrap.exe"
  242. Dependencies = EventLog
  243. StartName = "NT AUTHORITY"\LocalService
  244. AddReg = SNMPTRAP_AddReg
  245. Description = %SNMPTRAP_Desc%
  246. [SNMP_AddReg]
  247. HKR,"Parameters", "EnableAuthenticationTraps", 0x00010003, 1
  248. HKR,"Parameters", "NameResolutionRetries", 0x00010003, 16
  249. HKR,"Parameters\ExtensionAgents", , 0x00000010 ; no values
  250. HKR,"Parameters\PermittedManagers", , 0x00000010 ; no values
  251. HKR,"Parameters\TrapConfiguration", , 0x00000010 ; no values
  252. HKR,"Parameters\ValidCommunities", , 0x00000010 ; no values
  253. HKR,"Parameters\RFC1156Agent", "sysContact", 0x00000002, ""
  254. HKR,"Parameters\RFC1156Agent", "sysLocation", 0x00000002, ""
  255. HKR,"Parameters\RFC1156Agent", "sysServices", 0x00010003, 76
  256. HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog", "ConfigurationType", 0x00010003, 0
  257. HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog", "TranslatorEnabled", 0x00000002, "No"
  258. HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog\Parameters", "BaseEnterpriseOID", 0x00000002, "1.3.6.1.4.1.311.1.13.1"
  259. HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog\Parameters", "SupportedView", 0x00000002, "2.0"
  260. HKLM,"SOFTWARE\Microsoft\SNMP_EVENTS\EventLog\Sources", , 0x00000010 ; no values
  261. [SNMP.DelReg]
  262. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\Application\EvntAgnt"
  263. ;-------------------------------------------------------------------------
  264. ; Event sources registered when SNMP is installed
  265. ;-------------------------------------------------------------------------
  266. [SNMP_Evt]
  267. AddReg = SNMP_Evt_AddReg
  268. AddReg = EVNTAGNT_Evt_AddReg
  269. ;-------------------------------------------------------------------------
  270. ; register SNMP.EXE as an event source
  271. ;-------------------------------------------------------------------------
  272. [SNMP_Evt_AddReg]
  273. HKR,, EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\snmp.exe"
  274. HKR,, TypesSupported, %REG_DWORD%, 0x00000007
  275. ;-------------------------------------------------------------------------
  276. ; register EVNTAGNT.DLL as an event source
  277. ;-------------------------------------------------------------------------
  278. [EVNTAGNT_Evt_AddReg]
  279. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\Application\EvntAgnt", EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\evntagnt.dll"
  280. HKLM,"SYSTEM\CurrentControlSet\Services\EventLog\Application\EvntAgnt", TypesSupported, %REG_DWORD%, 0x00000007
  281. ;-------------------------------------------------------------------------
  282. ; Event sources registered when SNMPTRAP service is installed
  283. ;-------------------------------------------------------------------------
  284. [SNMPTRAP_Evt]
  285. AddReg = SNMPTRAP_Evt_AddReg
  286. ;-------------------------------------------------------------------------
  287. ; register SNMPTRAP.EXE as an event source
  288. ;-------------------------------------------------------------------------
  289. [SNMPTRAP_Evt_AddReg]
  290. HKR,, EventMessageFile, %REG_EXPAND_SZ%, "%%SystemRoot%%\System32\snmptrap.exe"
  291. HKR,, TypesSupported, %REG_DWORD%, 0x00000007