1
2
3
4
5
6
7
8
9
10
11 MAPPINGS = {
12
13
14 'zCollectorClientTimeout': 'Modeler Controls',
15 'zCollectorDecoding': 'Modeler Controls',
16 'zCollectorPlugins': 'Modeler Controls',
17 'zFileSystemMapIgnoreNames': 'Modeler Controls',
18 'zFileSystemMapIgnoreTypes': 'Modeler Controls',
19 'zInterfaceMapIgnoreNames': 'Modeler Controls',
20 'zInterfaceMapIgnoreTypes': 'Modeler Controls',
21 'zIpServiceMapMaxPort': 'Modeler Controls',
22 'zLocalInterfaceNames': 'Modeler Controls',
23 'zLocalIpAddresses': 'Modeler Controls',
24 'zRouteMapCollectOnlyIndirect': 'Modeler Controls',
25 'zRouteMapCollectOnlyLocal': 'Modeler Controls',
26 'zRouteMapMaxRoutes': 'Modeler Controls',
27 'zHardDiskMapMatch': 'Modeler Controls',
28
29
30
31 'zCommandCommandTimeout': 'zencommand',
32 'zCommandExistanceTest': 'zencommand',
33 'zCommandLoginTimeout': 'zencommand',
34 'zCommandLoginTries': 'zencommand',
35 'zCommandPassword': 'zencommand',
36 'zCommandPath': 'zencommand',
37 'zCommandPort': 'zencommand',
38 'zCommandProtocol': 'zencommand',
39 'zCommandSearchPath': 'zencommand',
40 'zCommandUsername': 'zencommand',
41 'zKeyPath': 'zencommand',
42 'zTelnetEnable': 'zencommand',
43 'zTelnetEnableRegex': 'zencommand',
44 'zTelnetLoginRegex': 'zencommand',
45 'zTelnetPasswordRegex': 'zencommand',
46 'zTelnetPromptTimeout': 'zencommand',
47 'zTelnetSuccessRegexList': 'zencommand',
48 'zTelnetTermLength': 'zencommand',
49
50
51
52 'zDeviceTemplates': 'Misc',
53 'zFileSystemSizeOffset': 'Misc',
54 'zIcon': 'Misc',
55 'zIfDescription': 'Misc',
56 'zLinks': 'Misc',
57 'zPingMonitorIgnore': 'Misc',
58 'zProdStateThreshold': 'Misc',
59 'zPythonClass': 'Misc',
60 'zStatusConnectTimeout': 'Misc',
61
62
63
64 'zMaxOIDPerRequest': 'SNMP',
65 'zSnmpEngineId': 'SNMP',
66 'zSnmpAuthPassword': 'SNMP',
67 'zSnmpAuthType': 'SNMP',
68 'zSnmpCollectionInterval': 'SNMP',
69 'zSnmpCommunities': 'SNMP',
70 'zSnmpCommunity': 'SNMP',
71 'zSnmpMonitorIgnore': 'SNMP',
72 'zSnmpPort': 'SNMP',
73 'zSnmpPrivPassword': 'SNMP',
74 'zSnmpPrivType': 'SNMP',
75 'zSnmpSecurityName': 'SNMP',
76 'zSnmpTimeout': 'SNMP',
77 'zSnmpTries': 'SNMP',
78 'zSnmpVer': 'SNMP',
79
80
81
82
83
84
85
86 'zIdiomPassword': 'CiscoMonitor',
87 'zIdiomUsername': 'CiscoMonitor',
88
89
90
91 'zRancidGroup': 'RANCID',
92 'zRancidRoot': 'RANCID',
93 'zRancidType': 'RANCID',
94 'zRancidUrl': 'RANCID',
95
96
97
98 'zCiscoUCSManagerPassword': 'CiscoUCS',
99 'zCiscoUCSManagerPort': 'CiscoUCS',
100 'zCiscoUCSManagerUser': 'CiscoUCS',
101 'zCiscoUCSManagerUseSSL': 'CiscoUCS',
102
103
104
105 'zSugarCRMBase': 'Sugar',
106 'zSugarCRMPassword': 'Sugar',
107 'zSugarCRMTestAccount': 'Sugar',
108 'zSugarCRMUsername': 'Sugar',
109
110
111
112 'zSysedgeDiskMapIgnoreNames': 'Dell',
113
114
115
116 'zTelnetEnable': 'Telnet',
117 'zTelnetEnableRegex': 'Telnet',
118 'zTelnetLoginRegex': 'Telnet',
119 'zTelnetPasswordRegex': 'Telnet',
120 'zTelnetPromptTimeout': 'Telnet',
121 'zTelnetSuccessRegexList': 'Telnet',
122 'zTelnetTermLength': 'Telnet',
123
124
125
126 'zVCloudPassword': 'vCloud',
127 'zVCloudPort': 'vCloud',
128 'zVCloudUsername': 'vCloud',
129
130
131
132 'zVMwareViEndpointHost': 'VMware',
133 'zVMwareViEndpointMonitor': 'VMware',
134 'zVMwareViEndpointPassword': 'VMware',
135 'zVMwareViEndpointUser': 'VMware',
136 'zVMwareViEndpointUseSsl': 'VMware',
137
138
139
140 'zWebsphereAuthRealm': 'WebSphere',
141 'zWebsphereNode': 'WebSphere',
142 'zWebspherePassword': 'WebSphere',
143 'zWebsphereServer': 'WebSphere',
144 'zWebsphereURLPath': 'WebSphere',
145 'zWebsphereUser': 'WebSphere',
146 }
147
149 """
150 This is for display purposes only. Set the category of a zproperty.
151 This list is not persisted at all so it will need to be called
152 each time that zope starts up.
153 @type prop: String
154 @param prop: zProperty Id
155 @type category: String
156 @param category: What will show as the category for the zproperty
157 """
158 MAPPINGS[prop] = category
159
161 """
162 Uses the mapping defined in this file to
163 come up with a category for a given zproperty.
164 If none is found "Misc" is returned.
165 Note that the category IS case sensitive.
166 """
167 if MAPPINGS.get(prop):
168 return MAPPINGS[prop]
169
170 return "Misc"
171