2012年1月31日 星期二

如何使用HP SIM監控HP P4000 G2

這篇文章找了好久才找到,如果想將HP P4000 G2加到HP SIM加以監控,不妨參考一下!!



1. Install HP SIM Version 6.0 or 6.1.
2. Install the HP SAN/iQ Version 8.5 Centralized Management Console (CMC) from
SANiQ_Management_Console_8.5.00.0313_20100302.iso .
Note: The Complete option must be selected in order to install the MIB files.
3. After installing the HP SAN/iQ8.5 software with the SNMP Support option, go to the C:\Program Files\LeftHand Networks\UI\mibs directory to continue the installation.
Compile and Load the MIB definitions into HP SIM:
1. Ensure that HP SIM is installed in the C:\Program Files\HP\Systems Insight Manager directory.
2. Copy the following twelve files into the HP SIM MIB C:\Program Files\HP\Systems Insight Manager\mibs directory:
  • All eleven of the LEFTHAND-NETWORK * MIB files.
  • HCNUM-TC.MIB .
3. Modify the LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB.mib by replacing lhnNsmEvents with lhnNsmDevices .
Note: Strings similar to { lhnNsmEvents 2 } will be located at the bottom each notification.
4. When replacing lhnNsmEvents with lhnNsmDevices, ensure that the numbers are not modified and that there is a space between lhnNsmDevices and the number. For example, make changes similar to the following:
  • Change ::= { lhnNsmEvents 2 } to ::= { lhnNsmDevices 2 }
  • Change ::= { lhnNsmEvents 21 } to ::= { lhnNsmDevices 21 }
5. Append lhn to all occurrences of hostname , cluster , and site .For example, make changes similar to the following:
  • Change Site OBJECT-TYPE to lhnSite OBJECT-TYPE
  • Change Cluster to lhnCluster
6. Save the changes to LEFTHAND-NETWORKS-NSM- NOTIFICATION-MIB.mib file.
7. Create a batch file named C:\Program Files\HP\Systems Insight Manager\loadMibs.bat . This file should contain the following commands:
mxmib -a SNMPv2-SMI.cfg .
mxmib -a SNMPv2-TC.cfg
mcompile HCNUM-TC.MIB .
mxmib -a HCNUM-TC.cfg
mcompile LEFTHAND-NETWORKS-GLOBAL-REG-MIB.mib .
mxmib -a LEFTHAND-NETWORKS-GLOBAL-REG-MIB.cfg .
mcompile LEFTHAND-NETWORKS-NSM-MIB.mib .
mxmib -a LEFTHAND-NETWORKS-NSM-MIB.cfg .
mcompile LEFTHAND-NETWORKS-NSM-CLUSTERING-MIB.mib .
mxmib -a LEFTHAND-NETWORKS-NSM-CLUSTERING-MIB.cfg .
mcompile LEFTHAND-NETWORKS-NSM-DNS-MIB.mib .
mxmib -a LEFTHAND-NETWORKS-NSM-DNS-MIB.cfg .
mcompile LEFTHAND-NETWORKS-NSM-INFO-MIB.mib .
mxmib -a LEFTHAND-NETWORKS-NSM-INFO-MIB.cfg
mcompile LEFTHAND-NETWORKS-NSM-NETWORK-MIB.mib
mxmib -a LEFTHAND-NETWORKS-NSM-NETWORK-MIB.cfg
mcompile LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB.mib
mxmib -a LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB.cfg
mcompile LEFTHAND-NETWORKS-NSM-NTP-MIB.mib
mxmib -a LEFTHAND-NETWORKS-NSM-NTP-MIB.cfg
mcompile LEFTHAND-NETWORKS-NSM-SECURITY-MIB.mib
mxmib -a LEFTHAND-NETWORKS-NSM-SECURITY-MIB.cfg
mcompile LEFTHAND-NETWORKS-NSM-STATUS-MIB.mib
mxmib -a LEFTHAND-NETWORKS-NSM-STATUS-MIB.cfg
mcompile LEFTHAND-NETWORKS-NSM-STORAGE-MIB.mib
mxmib -a LEFTHAND-NETWORKS-NSM-STORAGE-MIB.cfg
Note: This batch file uses SNMPv2-SMI.cfg and SNMPv2-TC.cfg files from the C:\Program Files\HP\Systems Insight Manager\mibs directory. Do not copy these files from the C:\Program Files\LeftHand Networks\UI\mibs directory.
8. Change directory to C:\Program Files\HP\Systems Insight Manager\mibs and run C:\Program Files\HP\Systems Insight Manager\loadMibs.bat .
To verify that the MIBs are loaded, use the following command:
mxmib -l
Note: The mxmib - command should list the 11 LEFTHAND-NETWORKS MIBs files listed above and the HCNUM-TC MIB file.
9. Discover and configure the P4000 device to send SNMP Traps to the HP SIM server using the proper SNMP Community String via the SANIQ 8.5 CMC console by performing the following:
a. In CMC Getting Started , provide the IP Address , Name , or Subnet to discover the VSA device.
b. Expand the Available Nodes or P4000 Management Group to show the P4000 devices that should be configure.
c. Expand the system that should be configured.
d. Select SNMP from the tree.
e. On the right side of the screen, go to to the SNMP Trap tab sheet.
f. Use the SNMP Trap Tasks drop-down list box and select Edit SNMP Trap Settings from the list.
g. Add the correct SNMP community string.
h. Click Add Button.
i. Add the trap destination Hostname or IP Address of the HP SIM server.
j. Select v1 for the trap version.
k. Click the OK repeatedly to navigate to the SNMP Trap tab page.
Note: It is recommended to reboot the VSA server after the settings are made. 
Figure 1: HP LeftHand Networks Centralized Management Console screen
Procedure for removing the MIBs
1. Create the batch file C:\Program Files\HP\Systems Insight Manager\UNloadMibs.bat and include the following commands:
mxmib -d HCNUM-TC.MIB
del .\mibs\HCNUM-TC.MIB
mxmib -d LEFTHAND-NETWORKS-GLOBAL-REG-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-GLOBAL-REG-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-CLUSTERING-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-CLUSTERING-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-DNS-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-DNS-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-INFO-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-INFO-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-NETWORK-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-NETWORK-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-NTP-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-NTP-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-SECURITY-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-SECURITY-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-STATUS-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-STATUS-MIB.cfg
mxmib -d LEFTHAND-NETWORKS-NSM-STORAGE-MIB.mib
del .\mibs\LEFTHAND-NETWORKS-NSM-STORAGE-MIB.cfg
2. Change directory to C:\Program Files\HP\Systems Insight Manager\mibs and run C:\Program Files\HP\Systems Insight Manager\mibs\UNloadMibs. bat.