8.15 HP Utility Meter User's Guide (January 2010)

Table Of Contents
4. In the Add Device dialog box's Device Type drop-down list, select the SAN Switch Cisco
item.
5. In the Add Device dialog box, enter values into the following fields:
IP – Enter the IP address or hostname of the SAN switch.
Info – (Optional) Enter a description for the SAN switch.
Login – Enter the username of the SAN switch.
Password – Enter the password of the SAN switch.
Require server certificate Select Yes (default) if you want to require a server certificate
when the switch is accessed or No if you don't want to require a server certificate. See
Section 3.5.1.4: “Add a Cisco SAN Switchfor information about adding the certificate to the
sandevices.pem file. Note that this should be done before the SAN switch is added to the Utility
Meter.
6. Click the Add Device button. An information message appears. If no errors occur, such as duplicate
device ID, the SAN switch is added and listed in the Status field. If an error occurs, the Status field
displays the error message.
7. To add another SAN switch, repeat this procedure starting with Step 5; otherwise, click the Done button
to close the Add Device dialog box.
3.5.1.5 Add an HP/Brocade SAN Switch
This task allows you to add one or more HP/Brocade SAN switches to the Utility Meter. The configured SAN
switches are visible in the Utility Meter GUI's Managed Devices Tree in the Managed Devices (left) pane.
IMPORTANT: If you are going to require a server certificate for the SAN switch, you need to update the
sandevices.pem file before you add the SAN switch.
When a SAN switch is added to the Utility Meter you have the option of requiring a server certificate when
the switch is accessed. The certificate is different for each switch that you want to connect to. For each
metered switch, you need to copy the certificate file from the remote switch to the server the meter is running
on and then add it into /var/opt/meter/sandevices.pem, which is used to store the certificates for
every SAN switch for which you want to require a certificate. To copy the certificate from the metered switch
and add it to sandevices.pem, use the following procedure:
1. Create a file called ssl.conf. The distinguished_name should be unique for each switch. Here
is the sample ssl.conf:
[req]
distinguished_name = server.domain.com
prompt = no
[server.domain.com]
CN = server.domain.com
emailAddress = user@domain.com
2. Generate a private key and certificate using the following openssl command:
# openssl req x 509 days 365 newkey ras:2048 nodes config ./ssl.conf
keyout ./key.pem out ./cert.pem
3. Concatenate the private key and certificate into a single file:
# cat key.pem cert.pem > cimserver1.pem
4. Login into switch and copy the certificate from the source to the switch:
# copy source/cimserver1.pem switch:cimserver1.pem
5. Enable the certificate in cimserver configuration:
# config t
# cimserver certificate switch:cimserver1.pem
3.5 Utility Meter Devices Tasks 59