Leaked source code of windows server 2003
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.

338 lines
11 KiB

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