Beruflich Dokumente
Kultur Dokumente
May 2000 175758-001 Prepared by: Industry Standard Server Division Compaq Computer Corporation
Contents
Extending Identification..............3 Why Extend Your Management Capability? ...........3 Identification Basics in Device Type Manager................3 The Rule Set..............................5 Before You Begin.......................7 When Can Identification Be Modified? ...................................8 Using Device Type Manager.......8 Using the Graphical Interface ....8 Creating New Device Categories .................................9 Editing Device Categories .......16 Deleting Device Categories .....17 Using the Command Line Utility ..........................................18 Working Examples using the DTM Command Line................22 Seeing the Results of Adding an SNMP Rule Set...................23 Using the Edit Command to Modify an Existing SNMP Rule Set...................................26 Using the Delete Command to Remove an SNMP Rule Set ...........................................27 Using the Add Command to Add a DMI Rule Set .................28 Appendix A: Compaq Insight Manager XE Identification ........30 Discovery.................................30 Transient Identification States ......................................30 SNMP and DMI Precedence....30 SNMP Identification .................31 Third Party Rules .....................33 DMI Identification .....................34 Appendix B: Identification Flowcharts .................................36
Notice
The information in this publication is subject to change without notice and is provided AS IS WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK ARISING OUT OF THE USE OF THIS INFORMATION REMAINS WITH RECIPIENT. IN NO EVENT SHALL COMPAQ BE LIABLE FOR ANY DIRECT, CONSEQUENTIAL, INCIDENTAL, SPECIAL, PUNITIVE, OR OTHER DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, OR LOSS OF BUSINESS INFORMATION), EVEN IF COMPAQ HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. The limited warranties for Compaq products are exclusively set forth in the documentation accompanying such products. Nothing herein should be construed as constituting a further or additional warranty. This publication does not constitute an endorsement of the product or products that were tested. The configuration or configurations tested or described may or may not be the only available solution. This test is not a determination of product quality or correctness, nor does it ensure compliance with any federal, state or local requirements. Compaq, NonStop, Deskpro, Compaq Insight Manager, Systempro, Systempro/LT, ProLiant, ROMPaq, QVision, SmartStart, NetFlex, QuickFind, PaqFax, and Prosignia are registered with the United States Patent and Trademark Office. ActiveAnswers, Netelligent, Systempro/XL, SoftPaq, Fastart, QuickBlank, QuickLock are trademarks and/or service marks of Compaq Computer Corporation. Microsoft, Windows and Windows NT are trademarks and/or registered trademarks of Microsoft Corporation. Intel, Pentium and Xeon are trademarks and/or registered trademarks of Intel Corporation. Other product names mentioned herein may be trademarks and/or registered trademarks of their respective companies.
2000 Compaq Computer Corporation. All rights reserved. Printed in the U.S.A. Compaq Insight Manager XE Device Type Manager Utility White Paper prepared by Industry Standard Server Division First Edition (May 2000) Document Number 175758-001
175758-001
Extending Identification
Compaq Insight Manager XE V2.0 attempts to discover all devices on your network. After a device is discovered, it attempts to identify the device by asking each device a series of questions. The answers to the questions are compared to the expected answers stored in the Compaq Insight Manager XE database. In this way, Compaq Insight Manager XE classifies devices that it discovers. Using Compaq Insight Manager XE, Compaq products are easily and precisely identified. However, most networks contain devices from multiple vendors. With the addition of Device Type Manager, or DTM, administrators can also extend the identification capability of Compaq Insight Manager XE to third party devices.
It is important to remember that some rule sets cannot be replaced or modified. Compaq Insight Manager XE will always recognize Compaq devices in the same way when using SNMP. You have complete flexibility however, when using DMI, as Compaq identification is applied only when there is no identification based on third party DMI rule sets. See Appendix A and Appendix B for descriptions of the identification process.
175758-001
Rule sets are prioritized such that if a device does match more than one rule set, the rule set with the highest priority wins. Compaq Insight Manager XE includes the following device types: Cluster Desktop Portable Printer Server Unknown. Workstation Repeater Router Management Processor Other Remote Access Device Switch
Device types are static and cannot be changed or added to in Compaq Insight Manager XE. The Device Type of Other has been added to provide a Device Type for collecting devices that do not fit into any of the other specific Device Types. For example, the DEC Bridge 500, a network bridge, may be classified as Other. A discovered device assumes the type of Unknown and no assigned Product Name. This is changed only if the device then matches some identification rule. The Product Name is simply a logical name to refer to the rule set. The administrator can add as many rule sets as needed to identify devices discovered on the network and later modify or delete these same rules. Some rule sets such as those that identify Compaq devices using SNMP cannot be changed, nor can third party rules take precedence. With DMI, the hard coded rules can be overruled. Some devices may meet the requirements of more than one rule set. For this situation, each rule set is assigned a number or priority. When a device meets the requirements of more than one rule set, the rule set with the lowest numberwhich is also the highest prioritydetermines the device Product Name identity. Unless you specify a priority, the last rule set added has the highest priority. Note: The Compaq Insight Manager XE database is updated immediately with each DTM command. However, the device will not be identified or appear in a Query Result with the new product category until you run a discovery and identification task. HTTP Automatic Discovery does not find the new product category.
175758-001
175758-001
All constituents are optional provided that at least one constituent is not NULL. The wildcard character of the asterisk (*), is an acceptable entry for a constituent. The wildcard instructs the identification process to continue searching for an expected response if a match is not found in the first MIF that is encountered. When a device is discovered, the components of each DMI element are then sent to the device in turn. The response value is then compared with the expected value in each case, as per the value compare rule required. Using the Any Value compare rule implies that any response is sufficient. When a full match is made and its priority is higher than the last full match, the device then assumes this new identity. If the priority is one, the identification process is complete. When there are multiple elements in a rule set for a DMI device, the rule elements must be entered with the most unique element as the first element across all rules in a specific rule set. In the following table, the product name Desktop 1 is identified uniquely by Element A for a given rule set. Desktop 2 is identified by Elements A and B and Desktop 3 meets the criteria of Elements A, B, and C. For Desktop 2 to be identified successfully enter Element B as the first element, and Element A as the second element. To successfully identify Desktop 3, enter Element C as the first Element, enter Element B as the second element and Element A as the last Element.
Table 1. DMI Element Order
Product Name Desktop 1 Desktop 2 Desktop 3 Correct order of Entry for Each Element A BA CBA
Prioritization
A device might satisfy the specifications of several members of an SNMP rule set family, which is identified by a system object identifier (sysOID). (Appendix A contains more information about OIDs.) For example, a machine can be running Windows NT and providing routing service functionality. One rule set can be defined that identifies this device as an NT server and another rule set might identify it as a router. Which identity is correct? To set the identity the user prefers for this discovered device, the user assigns an identification priority to all rule sets that share a common SysOID. The highest priority rule set determines the device identity. An identification priority of one (1) is highest. When a rule set matches with priority one, the process stops whether all rule sets have been checked or not. A priority of one implies that the best match has been found,
175758-001
If the user adds a new rule set without specifying a priority, DTM assigns a priority of one to the new rule set and adjusts all of the other members of that family. No matter how the priority of one rule set is changed, DTM appropriately adjusts the priority of the other family members. When an arbitrary MIB variable is used, the user must supply the variable OID in the standard number-dot format (i.e. 1.2.3.1.2.1.1). When using the DTM graphical client, the user can take advantage of the Compaq Insight Manager XE MIB database. The user is allowed to search the MIB database for a specific MIB and a specific MIB variable. DTM will look for the variable in that MIB definition and provide the user with the corresponding OID. The MIB variable name can only be translated to its OID by DTM using the MIB database, provided the corresponding MIB has been previously compiled into the database using the SNMP Extensions Toolkit. The DTM graphical client also allows the user to query a user specified target device using SNMP or DMI to determine or verify suitable rules and corresponding values. Some devices are both SNMP- and DMI-compliant. Positive identification using SNMP takes precedence over DMI. That is, if DMI cannot identify a device, the SNMP device information is applied.
175758-001
Register the MIBs for any third party devices on your network. Registering associated MIBs with Compaq Insight Manager XE allows you to reference that MIB when defining SNMP based rule sets.
CAUTION: Use either the DTM graphical user interface or the DTM command line to access a specific database. Do not use the programs simultaneously.
The opening page of DTM is used to select a Product Category and then act on it by adding to it, editing the existing information, or deleting it from the database. The Device Type field is used to filter the product category name list.
175758-001
To create a new product category: 1. From the toolbar, click on Tools. 2. From the menu, select Device Type Manager. 3. In the Device Category Information box, select a device type to filter the product names that are associated with the device type. You can also select a product name if you plan to create a new name using it as a template (within the restrictions of identification of Compaq devices). 4. Click New to create a new device identification rule. If you have not selected a product name, you are prompted to select a management protocol. Select the appropriate protocol, which opens the Add page for the protocol you selected.
175758-001
10
1. On the Add New SNMP Category page, complete the following fields: a. Select a Device Type is one is not yet selected. b. Enter a Product Name or change the Default name (When used by a Template having Device type and Product Name selected when creating a New DTM Rule). c. Specify a priority for the rule set if it is not the default of one (1). d. Enter a launch URL to be shown on the device links field on the device page if needed.
175758-001
11
2. Enter the System Object Identifier in a number dot format. You may know the SysOID for the target device. If you do not, use the Get assist tool button to query a specific target node for its SysOID. Figure 3 illustrates the Get Device Response for this OID page. a. Enter the community string if it is not the default "public." b. Enter the IP address of the target device. c. Click Get Value. If the device is found, the correct SysOID is entered in the field. Click Apply to transfer the value to the Add page.
Figure 4 shows the Get Device Response to this OID page with the value transferred.
175758-001
12
3. On the Add page continue building the rule set by specifying additional criteria using MIB variables. Assuming that you do not know the MIB variable OID, click the MIB Variable OID Get button. See Figure 2. The Get SNMP Object Identifier page opens, as shown in Figure 5,. Select the MIB Definition File Name and variable and click Get Object ID. The OID is returned. Click Apply to transfer it to the Add page.
4. On the Add page, click the Object Value Get button to get the value of the MIB variable on the target device. The Get Device Response to this OID page opens, but has a different purpose than earlier. Because DTM knows the device, the value retrieved is the value for the MIB OID on this device. This value will be specific. For example, for the sysDescr value might be "Hardware: x86 Family 6 Model 7 At/AT" See Figure 6. 5. Select a data type. The type must match the variable data type in the MIB. Note that only String and Integer are supported. 6. Select the appropriate comparison rule. This is your choice of value testing, based on the response you expect. 7. Click the Add button to create the new product category. A successful add operation will result in the device being displayed using the new identification after the next discovery and identification task runs. 8. Click Clear to clear the screen to default values or click Cancel to return to the opening screen without executing a change.
175758-001
13
175758-001
14
To complete a rule set for a new DMI product category, you need the information from a MIF for the device. Table 2 describes the constituents of the elements that you specify in the rule set. You can specify up to three elements.
Table 2. DMI Element Constituents
Element Constituent Component Name Group Class Value The MIF on the system or an asterisk (*) to represent any MIF in place on the system. The name of the group class from the MIF. For example DMTF|ComponentID is a group class. You must be familiar with a specific MIF to get the correct Group Class name. The name of a second group constituent of the Class. For example, DMTF|Processor or DMTF|Filter Information are "same" group class names in DMTF|ComponentID. The name of a characteristic identified as an Attribute in a MIF. Examples are Manufacturer or Version Number in the Win32sl.MIF. Use the default of zero unless you are familiar with DMI indices.
Attribute Index
You will also need the IP address of the target device or a similar device that will be identified by the new rule set. As with SNMP devices, choose a Device Type or Product Name based on your objective of creating a new category or modifying the device type and/or the product name. To complete the new DMI product category 1. On the Add New DMI Category page, complete the following fields shown in Figure 7: a. Device type. b. Product Name. c. Priority Note: The default priority for the rule set is 1. Enter a different priority if the default value will not be used. d. URL Launch Note: If needed, enter a launch URL to be shown in the Device Links field on the device page. If you leave the field blank, the default URL is used. 2. Enter the DMI elements for one to three elements. Select the Get button for each element you create. 3. On the Get DMI Element Value page, shown in Figure 8, complete the following steps: a. Enter the component name, group class, same group class, and attribute from the device MIF. You can use a wildcard for all entries except the attribute. Use the index default of zero. b. Enter the IP address of the target device. c. Select the Get Value button to retrieve a value. d. Select Apply to transfer the DMI elements and values to the Add page. You must specify at least one element and value. The results of the previous steps are shown in Figure 9.
175758-001
15
Figure 9 shows the response for the value on the target device.
4. DTM displays the elements on the Add page by separating the constituents with a caret (^) for readability only. For example: Compaq PC Systems MIF ^ DMTF|ComponentID ^ ^ Manufacturer ^ 0 5. For each element, select the appropriate comparison rule. Note that only string is supported. 6. Click the Apply button to create the new product category. Click Clear to clear the screen back to the default values or click Cancel to return to the opening screen with no change. Figure 10 illustrates the added DMI category and rule set.
175758-001
16
Figure 10: Add New DMI Category Rule Set with Two Elements Defined.
175758-001
17
5. Modify any editable fields that you want to change. Grayed fields cannot be edited. 6. Click Apply when all changes have been made. Select Cancel to return with no change.
175758-001
18
To use the command line DTM utility: 1. From the desktop, click on Start. 2. Select Programs. 3. Select Command Prompt. 4. At the prompt, change to the root directory of Compaq Insight Manager XE 2.0 using a command shell line, for example: >cd \Compaq Insight Manager XE V2.0. 5. At the prompt, enter the DTMgr command and the appropriate parameter list. The following tables list and describe the switches, commands, and arguments for SNMP and DMI rule sets.
175758-001
19
-q, Q
-e, E
Edit: Instructs DTM to make the changes indicated by the commands and arguments included in this command line. Product Name or Rule Set is specified to identify the rule set record to change. The product name is specified using the n command with the product name as an argument. When using the rule set as the record identifier, a full rule set specification is required. The link protocol must be included. Items that can be changed using edit including Priority, LaunchURL, compare rule and device type.
Used to identify the rule set management protocol. The protocol is specified as an argument either as a string or integer: for SNMP use SNMP or the value 1; for DMI, the string DMI or the value 2. Used to specify the name of the product category. <Product Name> is specified as a string which may include SPACE character.
t, T <Device Type>
Use this command to specify the Device Type. This command is optional. The default <Device Type> is server. <Device Type> can be specified as either an integer value or by its equivalent string name. e.g. t 1 or - t server
u, U <URL string> *
The URL string that is displayed in the device page, links section for that particular device. $HOSTNAME, $IPADDRESS or $ADDRESS can be used to generate a host independent launch specification that is completed when the link for a particular device is shown.
175758-001
20
These commands form the SNMP specific commands and corresponding arguments for SNMP rule set definition.
Table 6. SNMP DTMgr Commands and Arguments
s, S <SysOID string> Specify SysOID. An SNMP dot-number format ID string that specifies MIB II System Object ID. This command and argument are mandatory. Specify priority. The argument is a number that specifies the priority of this rule set in relation to other rule sets in the same SysOID family. If no priority is specified, a value of one is assumed (highest priority). The priority of all other members of this SysOID family will be adjusted accordingly. This priority bares no relation to the DMI rule set priority mentioned in the DMI section. This command and argument are optional. o, O The O command argument is enclosed by ( ). Each argument must include a MIB OID, value, data type specification and string compare rule specification. This command and argument are optional. .
-p, P <priority>
(<MIB variable OID string>, <MIB variable value string>, <MIB variable OID string> <MIB variable value string> <MIB variable DataType>
SNMP style dot-format OID string used to identify the user selected MIB variable This argument specifies the value this variable must have for the object to be identified as in this category. This argument is used to specify the data type for the specified variable value. It is specified as either a string or as an integer: String (or 1) Integer (or 2)
Specified as of 5 compare rule types: StartsWith (or 1) implies that the condition is met if either string is fully contained by the other with the first character anchored. Contains (or 2) implies that the compare string is contained within the source string. The compare string will not match if it is longer or invalid string than the source string. Match or Exact (or 3) implies an exact match with strings of equal length and matching string. If one string is longer than the other, this compare will fail. EndsWith (or 4) implies that the condition is met if either string is fully contained by the other with the last character anchored. AnyValue (or 5) implies that the string compare will always succeed provided there is a response.
The next command uses a named rule that includes arguments. > DTMgr t 5 n wind p 5 e v -u mymachine.com
175758-001
21
These command lines are equivalent if wind is the name of the rule set defined in the first example. (Note that the OID compare rule is changeable without affecting the rule set definition). The commands in Table 7 are DMI specific commands.
Table 7. DMI DTMgr Commands and Arguments
-p, P <priority> Specify the priority. The argument is a number that specifies the priority for this rule set in relation to all other DMI rule sets. If no priority is specified, a value of one is assumed (highest priority). This priority bares no relation to the SNMP rule set priority mentioned in that section. This command and argument are optional. mn, Mn (<MIF component name>, <MIF group class name>, <MIF same group class name>, <MIF attribute name>, <MIF index value>, This is the command and argument for specifying a DMI MIF rule set. There can be up to 3 rules in the rule set and these are correspondingly entered as m1, m2 and m3 for rule set 1, 2 and 3 correspondingly. Rule set 1 must always be specified when creating a new rule set and similarly for rule set 2, if there are 2 rules. The rule set is enclosed in (), contains no spaces, and each component is separated from its neighbors using a comma. The element value is always assumed to be a string. All seven components must be specified as either a string or as NULL. <MIF element value>, This argument specifies the value this element must have for the object to be identified as in this category.
Specified as: StartsWith (or 1) implies that the condition is met if either string is fully contained by the other with the first character anchored. Contains (or 2) implies that the compare string is contained within the source string. The compare string will not match if it is longer or invalid string than the source string. Match or Exact (or 3) implies an exact match with strings of equal length and matching string. If one string is longer than the other, this compare will fail. EndsWith (or 4) implies that the condition is met if either string is fully contained by the other with the last character anchored. AnyValue (or 5) implies that the string compare will always succeed provided there is a response.
The following example is a DMI command line that adds a record to the database. Commands must be on one line. (For legibility, the following example extends across two lines.) dtmgr -a -l dmi -p 1 -t workstation -n MyMachine -m1 (*,DMTF|ComponentID|*,DMTF|Processor|*,1,0,Compaq,anyvalue)"
175758-001
22
Commands with arguments Must specify: -f,F File <full path and file name> -l,L <Link protocol> -n,N <Product Name> -t,T <Product Type> (as a code value or string name Optional: -p,P Specify name priority in case of multiple identities. -u,U Specify <default URL string> to associate with this type. SNMP:Mandatory -s,S SNMP:Optional: -o,O DMI:
Must specify rule set 1, rule sets 2,3 are optional. CompareRule: StartsWith, Contains, Match or Exact, EndsWith, AnyValue. DATABASE ACCESS: --------------WARNING!!! Don't use this program when Maple is active. WARNING!!! C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>
175758-001
23
Note the difference between -d for delete and -D for Debug mode. Nothing harmful should happen if you get use the wrong switch because -D is not a command and without any other command, the line will not have a valid command as required. Furthermore, if -d is intended as Debug, -d together with the intended command will result in the line failing, as it would have two commands specified. Two commands on a line are not allowed.
Figure 12: Query Results before modifying device identification of the device tag.
The administrator of this network has decided to identify the device tag as a Server with the Product Name of VAX. This can be accomplished using either the DTM graphical interface or the command line. This example uses the command line method. As a first step, the administrator will have to identify the System Object Identifier used by this device, a name for the product category, and a device type.
175758-001
24
Executing this command will result in a console dialog similar to the dialog in the following table. The command failed because spaces were used in the filename. DTM uses the space character as parameter delimiter and consequently, names with spaces must be enclosed within quotes. Note too that the entire DTM parameter is enclosed in double quotes. The command is then executed again after reducing the name to VAX and the rule set is successfully added to the database.
C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>dtmgr "-a -l SNMP -t Server -s 1.3.6.1.4.36.2.15.1.6.1 -n VAX Server" C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>runtime\bin\jre -ms8m mx750m cp lib\jgl3.1.0.jar;.;lib\swing.jar;lib\windows.jar;lib\msxml.jar; lib\activation.jar;lib\mail.jar compaq.Discovery.DTMgr.DTMgr "-a -l SNMP -t Server -s 1.3.6.1.4.36.2.15.1.6.1 -n VAX Server" Trying connection to database using property file: \config\database.props Database connection test successful for URL: jdbc:odbc:insight_db User: sa pwd: Database Machine: KDD3A Database Version: Microsoft SQL Server 6.50 - 6.50.258 (Intel X86) Aug 15 1997 19:06:08 Copyright (c) 1988-1997 Microsoft Corporation Database Driver: JDBC-ODBC Bridge (SQLSRV32.DLL) 1.1001 (03.70.0623) An argument was found when a command was expected at position: 9 C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>DTMgr "-a -l SNMP -t Server -s 1.3.6.1.4.36.2.15.1.6.1 -n VAX" C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>runtime\bin\jre -ms8m mx750m -cp lib\jgl3.1.0.jar;.;lib\swing.jar;lib\windows.jar;lib\msxml.jar; lib\activation.jar;lib\mail.jar compaq.Discovery.DTMgr.DTMgr "-a -l SNMP -t Server -s 1.3.6.1.4.36.2.15.1.6.1 -n VAX" Trying connection to database using property file: \config\database.props Database connection test successful for URL: jdbc:odbc:insight_db User: sa pwd: Database Machine: KDD3A Database Version: Microsoft SQL Server 6.50 - 6.50.258 (Intel X86) Aug 15 1997 19:06:08 Copyright (c) 1988-1997 Microsoft Corporation Database Driver: JDBC-ODBC Bridge (SQLSRV32.DLL) 1.1001 (03.70.0623) Success, added record VAX to the SNMP database. C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>
175758-001
25
The following diagram shows the result of adding the new product category in the Query Results of All Devices.
Figure 13: Query Results after Modifying Identification of the device tag.
These results were displayed by performing discovery or running device identification task. The device is now identified with the product name of VAX and has a device type of server. DTM added the new identification information to the database immediately. The change will be reflected in the next run of or executing device identification task for the device.
175758-001
26
VAX -u $ipaddress:2301"
C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>runtime\bin\jre -ms8m
-mx750m -cp lib\jgl3.1.0.jar;.;lib\swing.jar; lib\windows.jar;lib\msxml.jar;lib\activation.jar;lib\mail.jar compaq.Discovery.DTMgr.DTMgr "-e -l SNMP -n VAX -u $ipaddress:2301" Trying connection to database using property file: \config\database.props Database connection test successful for URL: jdbc:odbc:insight_db User: sa pwd: Database Machine: KDD3A Database Version: Microsoft SQL Server 6.50 - 6.50.258 (Intel X86) Aug 15 1997 19:06:08 Copyright (c) 1988-1997 Microsoft Corporation Database Driver: JDBC-ODBC Bridge (SQLSRV32.DLL) 1.1001 (03.70.0623) Success, edited record VAX in the SNMP database.
C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>
175758-001
27
VAX" d:\maple>runtime\bin\jre -ms8m -mx750m -cp lib\jgl3.1.0.jar;.; lib\swing.jar;lib\windows.jar;lib\msxml.jar; lib\activation.jar;lib\mail.jar compaq.Discovery.DTMgr.DTMgr "-d -l SNMP -n VAX" Trying connection to database using property file:\config\database.props Database connection test successful for URL: jdbc:odbc:insight_db User: sa pwd: Database Machine: KDD3A Database Version: Microsoft SQL Server 6.50 - 6.50.258 (Intel X86) Aug 15 1997 19:06:08 Copyright (c) 1988-1997 Microsoft Corporation Database Driver: JDBC-ODBC Bridge (SQLSRV32.DLL) 1.1001 (03.70.0623) Success, deleted record VAX from the SNMP database.
C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>
Running a discovery and identification task again will reveal that the device tag has reverted to the type unknown.
175758-001
28
175758-001
29
Executing this command will result in a console dialog similar to the dialog in the following table.
C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0> d:\maple>dtmgr "-a -l dmi -p 1 -t workstation -n MyMachine -m1 (*,DMTF|ComponentID|*,DMTF|Processor|*,1,0,Compaq,anyvalue)" d:\maple>runtime\bin\jre -ms8m -mx750m -cp lib\jgl3.1.0.jar;.;lib\swing.jar;lib\windows.jar;lib\msxml.jar;lib\activation.ja r;lib ail.jar compaq.Discovery.DTMgr.DTMgr "-a -l dmi -p 1 -t workstation -n MyMachine -m1 (*,DMTF|ComponentID|*,DMTF|Processor|*,1, Compaq,anyvalue)" Trying connection to database using property file: \config\database.props Database connection test successful for URL: jdbc:odbc:insight_db User: sa pwd: Database Machine: KDD3A Database Version: Microsoft SQL Server 6.50 - 6.50.258 (Intel X86) Aug 15 1997 19:06:08 Copyright (c) 1988-1997 Microsoft Corporation Database Driver: JDBC-ODBC Bridge (SQLSRV32.DLL) 1.1001 (03.70.0623) Success, added record MyMachine to the DMI database. C:\Program Files\COMPAQ\Compaq Insight Manager XE 2.0>
Editing and deleting rule sets from the DMI database is done in exactly the same manner as illustrated earlier for SNMP. Specify the following items: -e for edit or -d for delete, the rule set name, the management protocol, and the items to change or add.
175758-001
30
175758-001
31
If this succeeds, Compaq Computer identification is attempted. If Compaq identification succeeds, identification will then check to see if DMI is supported on the device and will then, update the device info with the product type and product name information. If Compaq identification does not identify the device, third party rules are checked. Third party identification assigns the identity with the highest priority if there is more than one match. If third party identification succeeds, identification will then check to see if DMI is supported on the device and finally, update the device information with the product type and product name information. If there is no match using third party rules, the device is marked as type OTHER and product named Unknown SNMP Device. DMI identification then proceeds if: 1. DMI is enabled 2. SNMP is enabled and SNMP identification fails 3. SNMP is enabled and SNMP identifies object as Unknown SNMP Device, Unknown Compaq SNMP device, or Type UNKNOWN There are three steps in DMI identification. First, DMI identification looks for a match with one or more third party DMI rule sets. If third party identification succeeds, identification terminates and the device information is updated. If the device is not identified using third party rule sets, identification using hard-coded rules based on the Compaq Systems MIF is tried. Finally, if identification fails using the Compaq MIF hard-coded checks, generic MIF queries are issued. If the initial SNMP get of the sysName, sysOID and sysUpTime fails on any of these three variables on all attempts with all community strings, the SNMP identification is abandoned and the existing object identity is not changed. In general, if an SNMP get fails by returning a NULL value or a time out error, SNMP identification of this device is assumed to be invalid and is abandoned.
SNMP Identification
Identification loops while trying to retrieve SysObjectId, SysName SysUptime
with each user defined community string. If there is an error in fetching any one of these values for any reason including Time Out, for all known values of community string, SNMP identification fails and the identification of the device is not changed via SNMP. If there is no error, the device name is set to the value returned as the SysName. The device is also marked as SNMP enabled.
175758-001
32
Compaq Rules
We then check for Compaq Computer MIB cpqHoMibStatusArray (OID 1.3.6.1.4.1.232.11.2.10.1) variable on the target device. If the MIB is present and responds with a value, the process of identifying using Compaq rules continues otherwise we move on to checking the third Party rules. If the response value is NULL, the object is labeled as type OTHER, product name as Unknown SNMP Device. From the cpqHoMibStatusArray value response, characters at index 4,5 ( 0 based) which represents the second Octet (System Flags) in the response string are converted to an integer. If the least significant bit is 1, the object is a desktop and is running the Desktop Management agents, and the product type is correspondingly set to DESKTOP. If it is 0, the object is a Server and the product type is set to SERVER. All other possible values are considered as not valid.
Compaq Desktop
Get the cpqProductName (OID 1.3.6.1.4.1.232.2.2.4.2) variable from the device. If the response is NULL or there is a Time Out, SNMP identification is cancelled, as the result may not be correct at this time. If there is a NOSUCHNAME error response, identification is set to indicate an error to allow third party SNMP identification to have a go next. If the returned value is NULL or NULL string, the product name is set to Unknown Compaq SNMP device and the type is left as DESKTOP. Otherwise, the product name is set to the product name response value and the type left as DESKTOP. From the cpqHoMibStatusArray value response, the presence of Compaq MIB ID 2 is checked to see if the device has form factor information. If it does, get product form factor (OID 1.3.6.1.4.1.232.2.2.2.2) variable from the device. If the response is NULL or there is a Time Out, SNMP identification is cancelled, as the result may not be correct at this time. If there is a NOSUCHNAME error response, identification is set to indicate an error to allow third party SNMP identification to have a go next as the MIB did indicate it should have this information. If the form factor is for a laptop (type 2 or 3) the device type is changed to PORTABLE.
Compaq Server
Get the cpqProductName (OID 1.3.6.1.4.1.232.2.2.4.2) variable from the device. If the response is NULL or there is a Time Out, SNMP identification is cancelled as the result may not be correct at this time. If there is a NOSUCHNAME error response, identification is set to indicate an error to allow third party SNMP identification to have a go next. If the returned value is NULL or NULL string, the product name is set to Unknown Compaq SNMP device and the type is left as SERVER. From the cpqHoMibStatusArray value response, the presence of Compaq MIB ID 2 is checked to see if the device has RIB information. If it does, get the RIB card type (OID 1.3.6.1.4.1.232.9.2.2.10) variable from the device. If the response is NULL or there is a Time Out, SNMP identification is cancelled, as the result may not be correct at this time. If there is a NOSUCHNAME error response, identification is set to indicate an error to allow third party SNMP identification to have a go next as the MIB did indicate it should have this information. If the rib response value is 2 or 3, the device type is changed to Management card.
175758-001
33
175758-001
34
DMI Identification
DMI checking includes: Confirmation that DMI is supported (on the discovered device); the DMI flag for the device on the XE server is then enabled. Application of the third party rules. Application of Compaq rules if third party rules fail to identify. Application of generic DMI rules if Compaq rules fail to identify.
where the caret (^) used to distinguish the components of the MIF element. If the manufacturer (rule1) includes the word Compaq, a Compaq Computer object is assumed. If the version (rule2) response includes the word Deskpro, the product name assigned is the version response string. If it does not include this string, the product response string is examined. If the product response string is longer than 5 characters in length, the product name assigned is the product response string. If it is 5 or less characters in length, the product name assigned is Compaq client. If the product name assigned includes the strings server (case insensitive) or ProLiant, the type is marked as SERVER. If the product name assigned includes the strings laptop, notebook or portable, the type is marked as PORTABLE. Otherwise, the type assigned is DESKTOP. If the DMI query response is NULL or the manufacturer does not include the word Compaq, there is no Compaq specific rule set match.
175758-001
35
If the response to the DMI query is not NULL, the individual responses are examined. If the response to rule 1 is not NULL, it is checked to see if the response value matches any of the following strings: Portable Personal Computer Notebook Personal Computer Desktop Personal Computer Tower Personal Computer Mini-tower Personal Computer Rack-mount Personal Computer Small Form Factor Personal Computer Personal Computer
If it matches any of these strings, the product type is set to DESKTOP. This product name match checking attempts to find legacy DMI devices that do not follow the DMI naming standards. If the name does not match any of the above and the response is not a NULL string, the product name is still set to the response to rule1. However, the response is also examined for several key words to determine the type as follows Type is set to SERVER if the word server is included in the name. The check is case insensitive. Type is set to DESKTOP if the word desktop is included in the name. The check is case insensitive. Type is set to PORTABLE if the any of the words laptop, notebook, portable are included. The check is case insensitive.
If the response to rule1 is a NULL or NULL string, and the response to rule2 is not NULL, the product name is set to the response to rule2. Again the type is determined in a similar fashion. If both the responses to rule 1 and rule2 is a NULL string, the device is not marked as identified and the responses are ignored. Regardless of the outcome of the generic rule check, a form factor check is made using the rule
^ DMTF|System Enclosure|* ^ ^ 1 ^ 0
If a valid response is received and the form factor matches NoteBook, Laptop or Portable, the product name is set to NoteBook, Laptop, or Portable and the product type is PORTABLE. The object type and name are changed only if a positive match has been made in any of the DMI identification steps listed above.
175758-001
36
175758-001
37
175758-001
38
175758-001
39
175758-001
40
175758-001
41
175758-001
42
175758-001
43
Identification Logic to Check for Any DMI Response Using Any MIF
Figure 21: Identification Logic to Check for Any DMI Response Using Any MIF
175758-001