ATCA CO-14 Software Reference Guide M100

30
567 Enterprise Dr. Westerville, OH 43081 Toll Free: 800-818-4525 Phone: 614-846-6175 Fax: 614-846-4450 www.tracewellsystems.com Tracewell Systems AdvancedTCA CO14 Shelf Software Reference Guide for M100 Revision: 1.0

Transcript of ATCA CO-14 Software Reference Guide M100

Page 1: ATCA CO-14 Software Reference Guide M100

567 Enterprise Dr.Westerville, OH 43081Toll Free: 800-818-4525Phone: 614-846-6175Fax: 614-846-4450www.tracewellsystems.com

Tracewell SystemsAdvancedTCA CO14 Shelf

Software Reference Guide for M100

Revision: 1.0

Page 2: ATCA CO-14 Software Reference Guide M100

Page 2 of 30

Revision History Rev Date Author Description 1.0 Mar 12th, 2006 Vadim Isakov Initial version

Copyright Notice

This material is proprietary of Tracewell Systems. Copying, compilation, modification, distribution or any other use whatsoever of this material is strictly prohibited without written permission of Comtel Electronics GmbH. The information in this document is subject to change without notice and should not be construed as a commitment by Comtel Electronics. Neither Comtel Electronics, nor there agents assume any responsibility for the use or reliability of this document or the described software.

Copyright© 2005 by Comtel Electronics GmbH. All rights reserved. The Comtel logo is a trademark of Comtel Electronics GmbH.a

Page 3: ATCA CO-14 Software Reference Guide M100

Page 3 of 30

Table of contents

REFERENCES................................................................................................................................................................... 7

SPECIAL TERMS AND ACRONYMS ........................................................................................................................... 7

1 INTRODUCTION .................................................................................................................................................... 9 1.1 ABOUT THIS DOCUMENT .................................................................................................................................... 9 1.2 BRIEF SHELF MANAGER FUNCTIONALITY DESCRIPTION..................................................................................... 9

2 ETHERNET ADDRESSES.................................................................................................................................... 10 2.1 LOGGING ON TO THE SHELF MANAGER EXTERNALLY ..................................................................................... 10

2.1.1 Default hardware IP address of the ShMC1............................................................................................... 10 2.1.2 Username and password ............................................................................................................................ 10 2.1.3 Default hardware IP address of the ShMC2............................................................................................... 10 2.1.4 Default virtual IP address of the active Shelf Manager ............................................................................. 10 2.1.5 Default virtual IP address of the standby Shelf Manager .......................................................................... 10

2.2 LOGGING ON TO THE SHELF MANAGER OVER BACKPLANE.............................................................................. 11 2.2.1 Default IP addresses .................................................................................................................................. 11 2.2.2 Planes......................................................................................................................................................... 11

2.3 CHANGING THE IP ADDRESSES......................................................................................................................... 11 2.4 CROSS-CONNECT IMPLEMENTATION ON TRACEWELL CO14 SHELF ....................................................................... 12

3 DIRECTORY STRUCTURE ON M100............................................................................................................... 13

4 I2C ADDRESSES OF THE FRUS IN CO14 SHELF .......................................................................................... 13

5 STANDARD IPMI COMMANDS ........................................................................................................................ 14 5.1 COMMAND SYNTAX ......................................................................................................................................... 14 5.2 USEFUL COMMANDS ....................................................................................................................................... 16

5.2.1 FRU Control............................................................................................................................................... 16 5.2.2 IPMB State ................................................................................................................................................. 16 5.2.3 Set FRU Activation Policy.......................................................................................................................... 16 5.2.4 Set Power Level .......................................................................................................................................... 16 5.2.5 Get Fan Level ............................................................................................................................................. 17 5.2.6 Set Fan Level.............................................................................................................................................. 17 5.2.7 Set Event Receiver ...................................................................................................................................... 17 5.2.8 Get Device SDR.......................................................................................................................................... 17 5.2.9 Get Sensor Threshold ................................................................................................................................. 17 5.2.10 Get Sensor Reading ............................................................................................................................... 17

5.3 IPMI TEST........................................................................................................................................................ 17 6 HPI COOLING....................................................................................................................................................... 18

6.1 COOLING CONTROL MODES .............................................................................................................................. 18 6.2 COOLING ZONES............................................................................................................................................... 18 6.3 COOLING LEVEL............................................................................................................................................... 18 6.4 INTERNAL CONTROL MODE COOLING ALGORITHM ........................................................................................... 18

6.4.1 Startup ........................................................................................................................................................ 18 6.4.2 Hot Swap event handling............................................................................................................................ 19 6.4.3 Temperature event handling....................................................................................................................... 19 6.4.4 Difference temperature handling ............................................................................................................... 19

6.5 EXTERNAL CONTROL MODE ............................................................................................................................. 20 6.5.1 Startup ........................................................................................................................................................ 20 6.5.2 Setting cooling level ................................................................................................................................... 20

7 HPI COMMANDS.................................................................................................................................................. 21 7.1 SUPERVISOR STATUS........................................................................................................................................ 21 7.2 UTILITIES ......................................................................................................................................................... 21

7.2.1 Hpifan......................................................................................................................................................... 21

Page 4: ATCA CO-14 Software Reference Guide M100

Page 4 of 30

7.2.2 Hpicooling.................................................................................................................................................. 21 7.2.3 Hpievent ..................................................................................................................................................... 21 7.2.4 Hpievents.................................................................................................................................................... 21 7.2.5 Hpifruactivation ......................................................................................................................................... 22 7.2.6 Hpipoweronseq........................................................................................................................................... 22 7.2.7 Hpihotswap................................................................................................................................................. 22 7.2.8 Hpiinv......................................................................................................................................................... 22 7.2.9 Hpiled......................................................................................................................................................... 22 7.2.10 Hpilog ......................................................................................................................................................... 23 7.2.11 Hpiredundancy............................................................................................................................................ 23 7.2.12 Hpireset3..................................................................................................................................................... 23 7.2.13 Hpiresid....................................................................................................................................................... 23 7.2.14 Hpisel .......................................................................................................................................................... 23 7.2.15 Hpiseledit .................................................................................................................................................... 23 7.2.16 Hpisensor .................................................................................................................................................... 24 7.2.17 Hpisettime ................................................................................................................................................... 24 7.2.18 Hpishaddr.................................................................................................................................................... 24 7.2.19 Hpiship........................................................................................................................................................ 24 7.2.20 Hpitestredundancy ...................................................................................................................................... 24 7.2.21 Hpithres....................................................................................................................................................... 25 7.2.22 Hpiupgrade ................................................................................................................................................. 25 7.2.23 Hpiuserinfoarea .......................................................................................................................................... 25

8 SOFTWARE UPGRADE....................................................................................................................................... 26 8.1 FIRMWARE UPGRADE....................................................................................................................................... 26

8.1.1 fw_upgrade.sh ............................................................................................................................................ 26 8.1.2 Hpiupgrade................................................................................................................................................. 26

8.2 SOFTWARE UPGRADE ON THE M100................................................................................................................. 26 8.2.1 swupgrade .................................................................................................................................................. 26 8.2.2 Hpiupgrade................................................................................................................................................. 26

9 SDRS IN TRACEWELL FRUS .................................................................................................................................... 27 9.1 FAN TRAYS ...................................................................................................................................................... 27

9.1.1 Fan Tray Main board Sensors FRU ID 0................................................................................................... 27 9.1.2 Fan Tray RTM Sensors FRU ID 1.............................................................................................................. 27

9.2 PEMS............................................................................................................................................................... 27 9.2.1 Power Sensors FRU ID 0 ........................................................................................................................... 27 9.2.2 Alarm Sensors FRU ID 1............................................................................................................................ 27

10 SHELF FRU INFORMATION ............................................................................................................................. 27 10.1.1 Repository.............................................................................................................................................. 27 10.1.2 Data ....................................................................................................................................................... 27

Page 5: ATCA CO-14 Software Reference Guide M100

Page 5 of 30

List of figures

Figure 1 – Field Replaceable Unit IP Text ......................................................................................... 11 Figure 2 – Shelf Manager Ethernet Port Cross-Connect Implementation .......................................... 12

Page 6: ATCA CO-14 Software Reference Guide M100

Page 6 of 30

List of tables

Table 1 – Information available on M100 ............................................................................................ 9 Table 2 – Default IP addresses of M100............................................................................................. 11 Table 3 – Cross-connect implementation on Tracewell Backplanes ...................................................... 12 Table 4 – I2C Addresses Reference .................................................................................................... 13 Table 5 – I2C Addresses Reference .................................................................................................... 14 Table 6 – Supported IPMI commands ................................................................................................ 15 Table 7 – Supported PICMG3.0 IPMI commands.............................................................................. 16 Table 8 – Cooling levels ..................................................................................................................... 19 Table 9 – Fan Tray main sensors FRU ID 0 ....................................................................................... 27 Table 10 – Fan Tray RTM sensors FRU ID 1 .................................................................................... 27 Table 11 – PEM main sensors FRU ID 0 ........................................................................................... 27 Table 12 – PEM RTM sensors FRU ID 0........................................................................................... 27

Page 7: ATCA CO-14 Software Reference Guide M100

Page 7 of 30

References For further information please refer to the following sources: Committee/Company Document Rev Date Website PICMG 3.0 AdvancedTCA Base

Specification 2.0 Dec 30, 2002 www.picmg.org/

PICMG 3.0 ECN002 2.0 Nov 28, 2005 www.picmg.org/Tracewell Systems User Manual 1.2 Mar 12, 2006 www.tracewell

systems.com/IPMI Intelligent Platform

Management Interface 1.5 1.1 Feb 20, 2002 www.intel.com/

Motorola ATCA-M100: reference guide

AG Feb 2005 www.motorola.com/

Motorola ATCA-M100: Control via IPMI reference guide

AE Feb 2005 www.motorola.com/

Special Terms and Acronyms Abbreviation Description AdvancedTCA Advanced Telecommunications Computing Architecture API Application Programming Interface

CO Central Office CPU Central Processing Unit

FRU Field Replaceable Unit

HPI Hardware Platform Interface

I2C Inter-Integrated Circuit IP Internet Protocol IPMB Intelligent Platform Management Bus IPMC Intelligent Platform Management Controller IPMI Intelligent Platform Management Interface

LED Light Emitting Diode

M100 Motorola Shelf Manager

OOS Out−Of−Service

PEM Power Entry Module PICMG PCI Industrial Computer Manufacturers Group

ShMC Shelf Management Controller SNMP Simple Network Management Protocol

TBD To Be Defined TPE Twisted Pair Ethernet

VIP Virtual IP Adress

Page 8: ATCA CO-14 Software Reference Guide M100

Page 8 of 30

Page 9: ATCA CO-14 Software Reference Guide M100

Page 9 of 30

1 Introduction

1.1 About this document This document is provided for the use of systems integrators and development engineers who are using the Tracewell CO14 AdvancedTCA® shelf with Motorola M100 Shelf Manager. It provides a detailed description of default values of FRU information and sensor data records (SDRs) contained in the Tracewell CO14 ATCA shelf. As well it offers a summary of most commonly used IPMI and HPI commands using the M100 Shelf Manager. For details on the additional IPMI commands that can be used on the Shelf Manager please refer to the IPMI Specification Version 1.5. The Shelf Manager boards provide the following information:

Feature Available Provide sensor data records Yes Provide FRU inventory Yes Provide system event log Yes Event generator Yes SDR repository Yes

Table 1 – Information available on M100

1.2 Brief Shelf Manager functionality description During start up of the system the FRUs go through a power cycle, while the states are controlled by the Shelf Manager. If all the FRU data on the FRU is correct and SDRs are defined correctly, the active Shelf Manager will activate this FRU automatically. Shelf Manager copies Shelf FRU data from the configuration board, located at the address 0x14 in Tracewell AdvancedTCA systems at FRU ID =1. This data contains information about the amount, location, power consumption and connectivity of the FRUs in the system. If there are two Shelf Managers in the system one of them becomes active, the other one standby. In order for Shelf Manager to start the power up sequence, its handle has to be pressed. If handle is released during the operation, the Shelf Manager will blink to indicate the released handle and after a while will switchover automatically to the standby Shelf Manager, if that is present in the system. In the normal operation mode, one of the Shelf Managers is active and the other one in the standby mode, which can be observed on the LEDs: the active Shelf Manager has orange (ACT) and green (OK) and the standby only green (OK). If both have ACT on it could mean there are two different versions of software on the shelf managers or other discrepancy. Shelf Manager is responsible for processing events generated by the FRUs in the system. It is handled on the high platform level by HPI. If these are temperature events arriving from the ATCA boards in the front or rear cooling zones, they will be handled by controlling the speed of the fans. The software version of the Shelf Manager can be read off by reading the content of the file shm-version located in the directory /etc.

Page 10: ATCA CO-14 Software Reference Guide M100

Page 10 of 30

2 Ethernet Addresses M100 Shelf Manager has three Ethernet channels. Two are connected to the Backplane (eth1 and eth2) and the third is the Out of Band connection (eth0) allowing direct connection through RJ45 cable onto Shelf Manager. In order to connect to the Shelf Manager using TCP/IP the local computer has to be defined in the local network of the Shelf Manager. For example, in order to connect externally to the address 192.168.0.8 the computer can be defined as following: IP: 192.168.0.100 Netmask: 255.255.255.0 Gateway: 192.168.0.0

2.1 Logging on to the Shelf Manager Externally 2.1.1 Default hardware IP address of the ShMC1

In order to connect with RJ45 from the computer to the external RJ45 port on the right-hand Shelf Manager via TCP/IP the following address shall be used: 192.168.0.8

2.1.2 Username and password Under any address to log on to the Shelf Manager the following username and password: username: root password: root

2.1.3 Default hardware IP address of the ShMC2

The left-hand Shelf Manager can be accessed with RJ45 from the computer by external RJ45 port at the following address: 192.168.0.9

2.1.4 Default virtual IP address of the active Shelf Manager It is possible to log on to the virtual address of the active Shelf Manager, regardless which one is right or left hand at the following address: 192.168.0.171 Please note that stopping the HPI causes this address to disappear, therefore firmware upgrade using fw_upgrade.sh script is not possible.

2.1.5 Default virtual IP address of the standby Shelf Manager

It is possible to log on to the virtual address of the standby Shelf Manager, regardless which one is right or left hand at the following address:

192.168.0.181

Page 11: ATCA CO-14 Software Reference Guide M100

Page 11 of 30

2.2 Logging on to the Shelf Manager over Backplane

2.2.1 Default IP addresses

M100 has two planes on the Backplanes with different default addresses, as described in the following table:

Right-hand ShMC Left-hand ShMC I2C address 0x10 0x12 Plane A 172.17.0.8 172.17.0.9 Plane B 172.18.0.8 172.18.0.9 Virtual Plane 172.16.0.8 172.16.0.9

Table 2 – Default IP addresses of M100

2.2.2 Planes There is available connection on the Backplane between Shelf Manager 1 to Switch 2 and between Shelf Manager 2 to Switch1, as defined in ECN001 of the AdvancedTCA specification rev1, and described in the following section.

2.3 Changing the IP addresses Shelf FRU data defined Base IP addresses for the Backplane and Out of Band connections. In order to change the default IP addresses Shelf FRU data stored in FRU ID 254 on the Shelf Manager shall be edited. This could be done using HPI commands hpishaddr and hpiship which alter only the first 3 octets. If the change of 4th octet is required, Tracewell written procedure FRUIT is recommended to update the addresses in the Shelf FRU data.

Figure 1 – Field Replaceable Unit IP Text Edit

Page 12: ATCA CO-14 Software Reference Guide M100

Page 12 of 30

2.4 Cross-connect implementation on Tracewell CO14 Shelf The ECR 001 2004 11 171 adds an option for dual 10/100BASE-TX links from each Base Hub to both Dedicated ShMC slots. The pinout of the P23 connector on the Backplane is implemented accordingly, as described in the following table:

Row # Interface Designation AB CD EF GH

Tx1+ Tx1- Rx1+ Rx1- Tx2+ Tx2- Rx2+ Rx2- 5 ShMC Port with ShMC

Cross-connects

Primary ShMC Cross-connect Secondary ShMC Cross-connect Table 3 – Cross-connect implementation on Tracewell Backplanes

This means Shelf Manager1 is connected to the dedicated Switch1 slot over the primary channel (rows ABCD) and to dedicated Switch2 slot over the secondary cross-connect channel. Same is applicable for Shelf Manager 2 connected to dedicated Switch2 slot and over the secondary channel with Switch1, as shown in the following figure:

Figure 2 – Shelf Manager Ethernet Port Cross-Connect Implementation

a b c d e f g hShMC Port with Cross-connect

ShMC ShMC

ShelfManager(Active)

ShelfManager(Backup)

IPMC

BaseHub A

IPMC

BaseHub B

IPMC

ATCABoard

IPMC

ATCABoard

Redundant IPMB-0 on Backplane

Eth port 1Eth port 2

Eth port 1Eth port 2

ShMC port 1ShMC port 2

ShMC Port1ShMC Port 2

ShMC port 1ShMC port 2

Page 13: ATCA CO-14 Software Reference Guide M100

Page 13 of 30

3 Directory Structure on M100 /root - file system includes all payload applications and configurations. It is stored as a compressed RAM disk on the flash and extracted into the RAM after the kernel has booted. All changes in the disk file system will be lost after the shelf manager powers down. /etc – contains configuration files and information about the M100. ShMC version /etc/shm-version. /var/log – log files, messages in /var/log/messages /usr/etc – user defined configuration files.

/usr/etc/ipmi_lan.conf – IPMI over LAN configuration /usr/etc/openhpi/openhpi.conf – HPI configuration

/usr/etc/snmp/snmp.conf – Simple Network Management configuration /usr/local – persistent file support. Any files stored in this directory are persistent. /bin – contains executables for the operating system

4 I2C Addresses of the FRUs in CO14 Shelf The hardware addresses of the slots are defined on the backplane. By the definition, multiplying with 2 provides the I2C address of the FRU. There are two different notations of the slots: logical and physical. In the following table described I2C addresses for the physical notation of the slots:

I2C Address Resource 0x82 Slot1 0x84 Slot2 0x86 Slot3 0x88 Slot4 0x8A Slot5 0x8C Slot6 0x8E Slot7 0x90 Slot8 0x92 Slot9 0x94 Slot10 0x96 Slot11 0x98 Slot12 0x9A Slot13 0x9C Slot14 0xC0 PEM1 0xC2 PEM2 0xC4 Fan Tray1 0xC6 Fan Tray2 0xC8 Fan Tray3 0xCA Fan Tray4 0xCC Fan Tray5 0xCE Fan Tray6 0x10 Right-hand Shelf Manager ShMC1 0x12 Left-hand Shelf Manager ShMC1 0x20 Active Shelf Manager 0x14 Shelf FRU data board 0x16 Telco Alarm board

Table 4 – I2C Addresses Reference

It is possible to access these FRUs using M100 over IPMB bus, as described in the following section.

Page 14: ATCA CO-14 Software Reference Guide M100

Page 14 of 30

5 Standard IPMI Commands The IPMC is fully compliant to the Intelligent Platform Management Interface v.1.5. This section provides information on which IPMI commands are supported.

5.1 Command syntax Format of the IPMI command implemented on the M100 Shelf Manager is as following: ipmicmd –k “<No. Channel> <I2C_Address> <No. LUN> <NetFn> <CMD> <Parameters>” smi 0

Where the variables are defined as described below: No. Channel – to access IPM controllers outside of the Shelf Manager No. Channel = 0,

to access the local IPM controller No. Channel = f, and <I2C_address> is omitted I2C_Address – as described in section 3 No. LUN – Logical Unit Number, defines which unit is meant to respond to the message (see the IPMI specification for further definition). This is usually 0. NetFn – This contains the network function of the message. For a request command, the NetFn is always even. The IPMI and IPMB specifications define the legal NetFns. Of particular interest is NetFn 2Ch (Request) and 2Dh (Response) for the commands stated in the AdvancedTCA specification. NetFn is according to the following table:

NetFn Request NetFn Response Function Classification 0x06 0x07 Global IPMI commands 0x06 0x07 System interface commands 0x06 0x07 Watchdog commands 0x0A 0x0B SEL device commands 0x0A 0x0B SDR repository commands 0x0A 0x0B FRU inventory commands 0x04 0x05 Sensor device commands 0x00 0x01 Chassis device commands 0x2c 0x2d PICMG 3.0 commands

Table 5 – NetFn Assignment

CMD – Command number as defined by IPMI or AdvancedTCA specification and summarized in the following table. The most interesting commands are described further in this chapter with the required parameters. For further reading on the parameters of the commands please refer to the IPMI specification 1.5 according to the references in the table. Parameters – request parameters specific for every command. For PICMG 3.0 commands the links to the parameters tables are summarized in the chapter 3.10.2 Command Assignments.

Page 15: ATCA CO-14 Software Reference Guide M100

Page 15 of 30

Command CMD NetFn Request See Parameters in IPMI section

Get Device ID 0x01 0x06 17.1 Get Self Test Result 0x04 0x06 17.4 Master Write-Read 0x52 0x06 18.10 Set BMC Global Enables 0x2E 0x06 18.1 Get BMC Global Enables 0x30 0x06 18.2 Clear Message Flags 0x31 0x06 18.3 Get Message Flags 0x32 0x06 18.4 Enable Message Channel Receive 0x31 0x06 18.5 Get Message 0x33 0x06 18.6 Send Message 0x34 0x06 18.7 Read Event Message Buffer 0x35 0x06 18.8 Get BT Interface Capabilities 0x36 0x06 18.9 Reset Watchdog Timer 0x22 0x06 21.5 Set Watchdog Timer 0x24 0x06 21.6 Get Watchdog Timer 0x25 0x06 21.7 Get SEL Info 0x40 0x0A 25.2 Get SEL Allocation Info 0x41 0x0A 25.3 Reserve SEL 0x42 0x0A 25.4 Get SEL Entry 0x43 0x0A 25.5 Add SEL Entry 0x44 0x0A 25.6 Delete SEL Entry 0x46 0x0A 25.8 Clear SEL 0x47 0x0A 25.9 Get SEL Time 0x48 0x0A 25.10 Set SEL Time 0x49 0x0A 25.11 Get SDR Repository Info 0x20 0x0A 27.9 Get SDR Repository Allocation 0x21 0x0A 27.10 Reserve SDR Repository 0x22 0x0A 27.11 Get SDR 0x23 0x0A 27.12 Add SDR 0x24 0x0A 27.13 Partial Add SDR 0x25 0x0A 27.14 Delete SDR 0x26 0x0A 27.15 Clear SDR Repository 0x27 0x0A 27.16 Get SDR Repository Time 0x28 0x0A 27.17 Get FRU Inventory Area 0x10 0x0A 28.1 Read FRU Data 0x11 0x0A 28.2 Write FRU Data 0x12 0x0A 28.3 Get Device SDR Info 0x20 0x04 29.2 Get Device SDR 0x21 0x04 29.3 Reserve Device SDR Repository 0x22 0x04 29.4 Get Sensor Hysteresis 0x25 0x04 29.7 Set Sensor Threshold 0x26 0x04 29.8 Get Sensor Threshold 0x27 0x04 29.9 Set Sensor Event Enable 0x28 0x04 29.10 Get Sensor Event Enable 0x29 0x04 29.11 Rearm Sensor Events 0x2A 0x04 29.12 Get Sensor Event Status 0x2B 0x04 29.13 Get Sensor Reading 0x2D 0x04 29.14 Set Event Receiver 0x00 0x04 23.1 Get Event receiver 0x01 0x04 23.2 Platform Event 0x02 0x04 23.3 Get Chassis Capabilities 0x00 0x00 22.1 Get Chassis Status 0x01 0x00 22.2 Chassis Control 0x02 0x00 22.3 Set System Boot Option 0x08 0x00 22.10 Get System Boot Option 0x09 0x00 22.11 Get POH Counter 0x0F 0x00 22.12

Table 6 – Supported IPMI commands

Page 16: ATCA CO-14 Software Reference Guide M100

Page 16 of 30

Command CMD NetFn Request See Parameters in ATCA Table

Get PICMG Properties 0x00 0x2C 3-10 Get Address Info 0x01 0x2C 3-9 Get Shelf Address Info 0x02 0x2C 3-15 Set Shelf Address Info 0x03 0x2C 3-16 FRU Control 0x04 0x2C 3-25 Get FRU LED Properties 0x05 0x2C 3-27 Get FRU LED Color 0x06 0x2C 3-28 Set FRU LED State 0x07 0x2C 3-29 Get FRU LED State 0x08 0x2C 3-30 Set IPMB State 0x09 0x2C 3-65 Set FRU Activation Policy 0x0A 0x2C 3-19 Get FRU Activation Policy 0x0B 0x2C 3-20 Set FRU Activation 0x0C 0x2C 3-18 Get Device Locator Record ID 0x0D 0x2C 3-35 Set Port State 0x0E 0x2C 3-54 Get Port State 0x0F 0x2C 3-55 Compute Power Properties 0x10 0x2C 3-77 Set Power Level 0x11 0x2C 3-79 Get Power Level 0x12 0x2C 3-78 Renegotiate Power 0x13 0x2C 3-86 Get Fan Speed Properties 0x14 0x2C 3-81 Set Fan Level 0x15 0x2C 3-83 Get Fan Level 0x16 0x2C 3-82 Bused Resource 0x17 0x2C 3-57 Get IPMB Link Info 0x18 0x2C 3-63

Table 7 – Supported PICMG3.0 IPMI commands

5.2 Useful Commands 5.2.1 FRU Control

Cold reset: ipmicmd –k “0 <I2C_Address> 0 2C 4 0 0 0” smi 0 Warm reset: ipmicmd –k “0 <I2C_Address> 0 2C 4 0 0 1” smi 0 Graceful Reboot: ipmicmd –k “0 <I2C_Address> 0 2C 4 0 0 2” smi 0 Diagnostic Interrupt: ipmicmd –k “0 <I2C_Address> 0 2C 4 0 0 3” smi 0

5.2.2 IPMB State

Bus A disabled: ipmicmd –k “0 <I2C_Address> 0 2C 9 0 0 1” smi 0 Bus B disabled: ipmicmd –k “0 <I2C_Address> 0 2C 9 0 1 0” smi 0 M100 bus A disabled: ipmicmd –k “f 0 2C 9 0 0 1” smi 0 M100 bus B disabled: ipmicmd –k “f 0 2C 9 0 1 0” smi 0

5.2.3 Set FRU Activation Policy

Clear lock bit: ipmicmd –k “0 <I2C_Address> 0 2C A 0 0 1 0” smi 0 Set lock bit: ipmicmd –k “0 <I2C_Address> 0 2C A 0 0 1 1” smi 0

5.2.4 Set Power Level

Set power off: ipmicmd –k “0 <I2C_Address> 0 2C 11 0 0 0 1” smi 0

Page 17: ATCA CO-14 Software Reference Guide M100

Page 17 of 30

5.2.5 Get Fan Level

Get fan level: ipmicmd –k “0 <I2C_Address> 0 2C 16 0 0” smi 0 5.2.6 Set Fan Level

Set fan level: ipmicmd –k “0 <I2C_Address> 0 2C 15 0 0 <Fan_Level>” smi 0 Fan_Level – between 0x23 to 0x64

Shut fan down: ipmicmd –k “0 <I2C_Address> 0 2C 15 0 0 FE” smi 0 5.2.7 Set Event Receiver

Stop events: ipmicmd –k “0 <I2C_Address> 0 4 0 FF 0” smi 0 Enable events: ipmicmd –k “0 <I2C_Address> 0 4 0 20 0” smi 0

5.2.8 Get Device SDR

Get device SDR info: ipmicmd –k “0 <I2C_Address> 0 4 21” smi 0 5.2.9 Get Sensor Threshold

Get sensor threshold: ipmicmd –k “0 <I2C_Address> 0 4 27 <Number>” smi 0 5.2.10 Get Sensor Reading

Get sensor reading: ipmicmd –k “0 <I2C_Address> 0 4 2D <Number>” smi 0

5.3 IPMI test All the IPMI commands available on M100 are summarized in the utility ipmitest in the interactive form. To log on to this utility in Shelf Manager shell type in: ipmitest /INTER ICMB Addr: 0 Channel: 0 The I2C address: <I2C_Address> To proceed the commands are chosen from the main menu.

Page 18: ATCA CO-14 Software Reference Guide M100

Page 18 of 30

6 HPI Cooling The ATCA-M100 Shelf Manager provides a managed cooling functionality for the Tracewell ATCA systems.

6.1 Cooling control modes The cooling management can be switched to the following modes:

- Internal control mode. This is the default mode and its algorithm is described below

- External control mode. An external application is responsible for cooling management. The fan level is set to its default value until the external application takes control

If the cooling mode is set to other than internal control the internal cooling management is not turned off but monitors the system only. This means all events are handled but no set operations are executed. If the internal cooling management has control again it executes all necessary cooling actions according to the actual state of the system. The control mode can be changed via HPI control as follows: hpicooling –m 1 for internal control mode hpicooling –m 2 for external control mode

6.2 Cooling zones The cooling management splits an ATCA system into cooling zones. Each cooling zone has a specified number of fans and is responsible for a set of FRUs to be managed. A cooling zone can also own an inlet and outlet sensor to monitor and control the temperature difference. A cooling zone can be considered as one virtual fan. All fans within the cooling zone run at the same fan level. In the current configuration all resources are stored in one cooling zone. There is no cooling management record that defines which resources are put into which cooling zone. 6.3 Cooling level The cooling level determines how strong a system needs to be cooled. The cooling level has cooling zone scope. It can be set from 0...100 and can be expressed in percent. The fan level can be set according to the current cooling level. The current cooling level and the current fan level is identical. The cooling management distinguishes the following cooling levels:

- Basic cooling level: The cooling algorithm does not adapt this value. This value cannot be under-run

- Event cooling level: This is the cooling level dependent on the severity of asserted events

- Current cooling level: The current cooling level is calculated as follows: basic cooling level + event cooling level

6.4 Internal control mode cooling algorithm 6.4.1 Startup During startup of the system the fan run with its internal default fan level. If the cooling management becomes active the following actions are executed:

- Scan and store all possible fan slots

- Discover all fan resources. If a fan is not found or it is in active state then the cooling level of its cooling zone is set to 100

- Get the basic cooling level from the openhpi config file and apply it to all fans

Page 19: ATCA CO-14 Software Reference Guide M100

Page 19 of 30

After startup the cooling management waits and reacts on hotswap and temperature events from FRUs located in the ATCA boards or RTM zones. 6.4.2 Hot Swap event handling 6.4.2.1 Insertion event An insertion event is only handled if it is generated from a fan resource. The cooling management checks if all fans are present and in state active now. If this is the case the cooling management sets the fan level of its cooling zone to the current cooling level. 6.4.2.2 Extraction event If the extraction event is generated from a fan resource the cooling level is set to100. If it is generated from a FRU and this FRU has temperature events asserted the cooling algorithm re-evaluates the current cooling level and set the fan level based on the basic cooling level and the event cooling level. 6.4.3 Temperature event handling The cooling reacts on the following temperature events:

- Upper minor

- Upper major

- Upper critical

6.4.3.1 Assertion temperature event If an assertion upper event is received from a resource the cooling level is increased as specified in Table1. If a deassertion event is not received within a given time (set 30sec) the cooling level will be increased by 10. Thus cooling level is increased dynamically to ensure proper cooling of the system.

Type Cooling level Modifiable

basic 30% yes (openhpi.conf)

upper minor assertion event +10% yes (openhpi.conf)

upper major assertion event +30% yes (openhpi.conf)

upper critical assertion event +50% yes (openhpi.conf)

Table 8 – Cooling levels

6.4.3.2 Deassertion temperature event If a deassertion event is received from a resource the cooling algorithm decreases the cooling level every 60sec by 10. Before decreasing the cooling level the algorithm checks if another FRU needs the current cooling level. Thus cooling level is decreased dynamically if no assertion events are pending to ensure noise reduction. 6.4.4 Difference temperature handling There is no monitoring of inlet and outlet sensors and therefore no cooling management based on temperature difference.

Page 20: ATCA CO-14 Software Reference Guide M100

Page 20 of 30

6.5 External control mode 6.5.1 Startup During startup of the system the fans run with the internal default fan level. When the Shelf Manager becomes active and in the previous run HPI cooling has been set to the external mode, it is possible to change the speed of the fans to another level. In this mode the cooling management does not react on hotswap and temperature events from FRUs. 6.5.2 Setting cooling level The cooling level for the external control mode can be changed via HPI as follows: hpifan –s <Fan_Level> For example the cooling level of the fans can be set to 80% as follows: hpifan –s 80

Page 21: ATCA CO-14 Software Reference Guide M100

Page 21 of 30

7 HPI Commands 7.1 Supervisor status When the system powers up if Shelf FRU data is correct, one Shelf Manager becomes active another becomes standby. To find out whether the Shelf Manager is active in the M100 shell type in: sv_status On the active Shelf Manager HPI is running, therefore the reply shall be: openhpid is active On the standby Shelf Manager HPI is stopped, therefore the reply shall be: openhpid is inactive If a single Shelf Manager plugged into the system or the handle on the other Shelf Manager is released and it has reached M1 state the reply shall be: openhpid is running alone

7.2 Utilities To get help for all the utilities type the name of the utility and -h. To get a listing of all the available hpi utilities on the Shelf Manager type hpi and click twice on Tab. Please note: in bold are written commands and options.

7.2.1 Hpifan Get and set fan level of the Fan Trays. The syntax of the command is as following: hpifan –s <Fan_Level> Fan_Level – between 40 to 120 (depends on thresholds of the fan speed set on the Fan Trays) Please note: setting fan level is possible in case that HPI cooling policy is set to external as described in previous section. 7.2.2 Hpicooling Sets the cooling policy as described in previous section. Internal cooling: hpifan –m 1 External cooling: hpifan –m 2 7.2.3 Hpievent Get HPI events. Discovers and displays the events on the screen as they are recognized by M100. hpievent 7.2.4 Hpievents Get sensor SDRs and wait for the HPI events and interpret them. hpievents

Page 22: ATCA CO-14 Software Reference Guide M100

Page 22 of 30

7.2.5 Hpifruactivation Get FRU activation and set FRU activation. hpifruactivation [options] -e <Entity_Path> use explicit Entity_Path for FRU activation (get using hpihotswap) -d <Delay> set delay before next power on to Delay/10 [sec] 7.2.6 Hpipoweronseq Get power on sequence and set power on sequence. hpipoweronseq [options] -e <Entity_Path> use explicit Entity_Path (get using hpihotswap) -a <Time> set allowance for FRU activation readiness to Time [sec] -s <Res_ID_List> set power on sequence as specified in Res_ID_List 7.2.7 Hpihotswap This commands allows to show hotswap resources, to activate, deactivate, insert and extract resource ID. hpihotswap [options] -s show hotswap resources -a activate resource ID -d deactivate resource ID -i insert resource ID -e extract resource ID

7.2.8 Hpiinv This commands presents FRU inventory information of all the FRUs in the system. It also tests for incorrect checksums or inconsistence. hpiinv 7.2.9 Hpiled This command gets LED state and sets LED state. hpihotswap [options] -n <LED_number> number of the LED to set the state -l LED local control mode -o LED override mode -t LED test mode -1 <on_duration> LED on duration [0-255] -0 <off_duration> LED off duration [0-255]

Page 23: ATCA CO-14 Software Reference Guide M100

Page 23 of 30

7.2.10 Hpilog Gets and sets log levels for different facilities of the Shelf Manager. hpilog [options] -s <log_number> number of logging to set log -i severity info -w severity warning 7.2.11 Hpiredundancy Gets and sets log levels for different facilities of the Shelf Manager. hpiredundancy [options] -e <Entity_Path> use explicit Entity_Path -i initiate switchover -g get redundancy state 7.2.12 Hpireset3 Resets HPI resource. hpireset3 [options] -r <Resource_ID> use explicit Resource ID (get RID by typing hpireset3 without parameters) 7.2.13 Hpiresid Get own resource ID. hpiresid 7.2.14 Hpisel Displays content of the SEL (event locator). hpisel 7.2.15 Hpiseledit Displays content of the SEL (event locator) and allows to edit the entries. hpiseledit [options] -r <Resource_ID> use explicit Resource ID -d use domain event log -n newest first, used in combination with either –d or –r -c clear SEL -k <Record_ID> delete record with <Record_ID> -s show new records and delete record

Page 24: ATCA CO-14 Software Reference Guide M100

Page 24 of 30

7.2.16 Hpisensor Get all sensors and read all the sensor thresholds. hpisensor [options] -t show thresholds -x show extra debug messages 7.2.17 Hpisettime This command allows to set SEL time. hpisettime [options] -d date in mm/dd/yyyy format -t time of the date in 24 hour format -x show extra debug messages 7.2.18 Hpishaddr This command allows to get and set Shelf base address. This changes the third octet of the record. hpishaddr [options] -e <Entity_Path> set root Entity_Path For example: hpishaddr –e “{RACK,0} {ADVANCEDTCA_CHASSIS,1}” This sets the third octet to 1: 192.168.1.8 compared to the default 192.168.0.8. 7.2.19 Hpiship This command allows to get and set Shelf base IP address. This changes the first two octet of the IP record. hpiship [options] -n <Shelf_IP_record_number> Shelf IP record number (Backplane and Out of Band records) -i <IP_address> the new IP -g <Gateway> the new gateway -m <Sub_mask> the new mask For example: hpiship –n 1 –i 172.36.0.171 This sets the base Backplane address to: 172.36.0.171 compared to the default 172.16.0.171. hpiship –n 0 –i 192.86.0.171 This sets the base Out of Band address to: 192.86.0.171 compared to the default 192.168.0.171. 7.2.20 Hpitestredundancy Test redundancy of the FRUs. hpitestredundancy

Page 25: ATCA CO-14 Software Reference Guide M100

Page 25 of 30

7.2.21 Hpithres Get thresholds of the FRUs. hpithres 7.2.22 Hpiupgrade Gets software version of the Shelf Manager, upgrade software of the Shelf Manager. Allows getting firmware version of the FRUs and upgrade of the FRUs. hpiupgrade [options] -s <num> Resource number (use hpiupgrade without parameters) -u <url> To download the upgrade image in case of the remote upgrade -f <filename> Filename of the upgrade file -d download (copy file to the Shelf Manager) -l upload (copy file from the Shelf Manager) -i flash filesystem image (of the Shelf Manager, used only for M100 software upgrade) -k flash kernel image (of the Shelf Manager, used only for M100 software upgrade) -b flash boot image (of the Shelf Manager, used only for M100 software upgrade) -m flash firmware image (used for firmware upgrade of the FRUs or M100) -a abort current upgrade process -vu show u-boot version (boot section of the Shelf Manager) -vk show kernel version (kernel section of the Shelf Manager) -vi show initrd version (file system section of the Shelf Manager) -vm show firmware version (IPMC firmware)

For example: hpiupgrade -s 14 -f fw_fan.hex –m This command upgrades one Fan Tray corresponding to number 14 with the image. 7.2.23 Hpiuserinfoarea Get User Info Area and set the content of User Info Area. hpiuserinfoarea [options] -e <Entity_Path> use explicit Entity_Path of the User Info Area -s <String> write <String> to user info area -x display user info area as hexadecimal numbers

Page 26: ATCA CO-14 Software Reference Guide M100

Page 26 of 30

8 Software Upgrade Software upgrade can be performed remotely, as long as IP address of the active Shelf Manager is set outside of the firewall. 8.1 Firmware Upgrade There are two possible firmware upgrade options: fw_upgrade.sh script and hpiupgrade using HPI. The latter one is recommended since the script is no longer supported.

8.1.1 fw_upgrade.sh This script has the following options: fw_upgrade.sh <I2C_Address> a <image>

a upgrade all available instances in the image It verifies the Get device ID properties of the upgraded FRU and compares with the image. As well versions are presented for verification. In case of an error or inconsistency of the information the script will quit upgrade.

8.1.2 Hpiupgrade To upgrade FRU (Fan Trays, PEMs, ATCA boards or the other Shelf Manager) with image <image> please find out the resource number by typing hpiupgrade. Then type in the shell of the Shelf Manager: hpiupgrade -s < resource_number> -f <firmware_image> –m

It should take about 2 minutes to upgrade the FRU depending on the image. After the upgrade FRU goes to M1 state. To activate it, clear the lock bit: ipmicmd –k “0 <I2C_Address> 0 2C A 0 0 1 0” smi 0

Please note that Shelf Manager cannot upgrade own firmware, thus it can upgrade the second one. For further details please refer to previous section for details on hpiupgrade.

8.2 Software upgrade on the M100 8.2.1 swupgrade This script has the following options: swupgrade -b <boot_image> swupgrade -k <kern_image > swupgrade -r <root_image >

8.2.2 Hpiupgrade It is possible to upgrade the software (boot, kernel and directory structure) or the current ShMC by running the following commands with <resource_number> of the Shelf Manager: hpiupgrade -s < resource_number> -b <boot_image > hpiupgrade -s < resource_number> -k <kernel_image > hpiupgrade -s < resource_number> -i <root_image >

Page 27: ATCA CO-14 Software Reference Guide M100

Page 27 of 30

9 SDRs in Tracewell FRUs

9.1 Fan Trays 9.1.1 Fan Tray Main board Sensors FRU ID 0

13U FT (FRU ID 0) Name Number (DEC) Number (HEX) LUN (HEX) Fan HotSwap 132 0x84 0 IPMB 0 Status 133 0x85 0 FW Revision ISC 136 0x88 0 Fan_MTBF 1 0x01 0 Tracewell Fan Board 0 0x00 0 Fan Speed M1 2 0x02 0 Fan Speed M2 3 0x03 0 Main Temp.A 6 0x06 1 Main Temp.B 7 0x07 1 FAN MCU 1 0x01 3

Table 9 – Fan Tray main sensors FRU ID 0

9.1.2 Fan Tray RTM Sensors FRU ID 1

13U FT (FRU ID 1) Name Number (DEC) Number (HEX) LUN (HEX) Fan HotSwap 132 0x84 0 IPMB 0 Status 133 0x85 0 FW Revision ISC 136 0x88 0 Fan_MTBF 1 0x01 0 Tracewell Fan Board 0 0x00 0 Fan Speed R1 4 0x04 0 Fan Speed R2 5 0x05 0 RTM Temp. 8 0x08 1 FAN MCU 1 0x01 3

Table 10 – Fan Tray RTM sensors FRU ID 1

Page 28: ATCA CO-14 Software Reference Guide M100

Page 28 of 30

9.2 PEMs While the PEM is a single FRU it has two functions, Power input and filtering and alarm contact. Power has the Entity ID of 0x15 and is accessed at FRU ID 0 at the appropriate IPMI address derived from the hardware address. Alarms have the Entity ID of 0xF3 and are accessed at FRU ID 1 at the same IPMI address. 9.2.1 Power Sensors FRU ID 0

13U PEM FRU ID0 (power) Name Number (HEX) LUN (HEX) HotSwap 0x84 0 IPMB 0 Status 0x85 0 Shelf Voltage A 0x02 0 Shelf Current A 0x03 0 Shelf Power A 0x04 0 Shelf Voltage B 0x05 0 Shelf Current B 0x06 0 Shelf Power B 0x07 0 Board Temp.0 0x00 1 Board Temp.1 0x01 1 PEM Board 0x01 3

Table 11 – PEM main sensors FRU ID 0

9.2.2 Alarm Sensors FRU ID 1

13U PEM FRU ID 1 (alarms) Name Number (HEX) LUN (HEX) Critical Alarm 0x08 0 Alarm Major 0x09 0 Alarm Minor 0x0A 0 Power Alarm 0x0B 0 Reset Major 0x0C 0 Reset Minor 0x0D 0 User defined Alarm 3 0x0E 0 User defined Alarm 4 0x0F 0 User defined Alarm 5 0x10 0

Table 12 – PEM RTM sensors FRU ID 0

Page 29: ATCA CO-14 Software Reference Guide M100

Page 29 of 30

10 Shelf FRU Information Shelf FRU information contains the essential information for correct operation of the Shelf.

10.1.1 Repository Shelf FRU data is stored in a private controller with the same structure as a field replaceable unit. (Essentially, the shelf is also a field replaceable unit.) Data is read from the IPMC and stored in the shelf managers so there are always triple copies stored in the system, one fixed copy and two dynamic shelf manager copies. An additional shelf FRU data IPMC can be fitted if required to provide two static and two dynamic shelf FRU data copies. 10.1.2 Data The following shelf data is stored in FRU ID 1 in the configuration board at the I2C address 0x14.

• Chassis Information per IPMI section 10 • Backplane (board) Information per IPMI section 11 • Product Information per IPMI section 11

o To these areas we add custom information fields for ECN and Firmware versions • Multirecord areas per IPMI section 16 and PICMG 3.0 are as follows:

o IP address o Address area o Power area o Activation record o Base channel connectivity o Update channel connectivity o Fabric channel connectivity o Force defined User Info Area using Force OEM ID 0x48, 0x0E, 0x00

A copy of a typical shelf record stored at the I2C address 0x14 is as following: FRU ID: 1 FRU size is 0 Chassis info area

Chassis type: 17 Chassis Part Number: 30702844 Chassis Serial Number: 0509624194000004 Board info area

Manufacturing date: 511fba Board Manufacturer: Tracewell Systems,Inc. Board Product Name: CO 14 DS L3 U3 M1 P1 Board Serial Number: 0509624194000004 Board Part Number: 30702844 Board FRU File ID: Product info area

Manufacturer name: Tracewell Systems, Inc. Product Name: ATCA 13U 14 slot shelf

Page 30: ATCA CO-14 Software Reference Guide M100

Page 30 of 30

Product Part Number: 30702844 Product Version: 0001 Product Serial Number: 0509624194000004 Asset Tag: Product FRU File ID: Manufacturing date: 511fba Multirecord area

Record type: 0xc0 (length 114, eolver 0x2) PICMG specific record Address table Record type: 0xc0 (length 17, eolver 0x2) PICMG specific record Shelf Manager IP Connection Record Record type: 0xc0 (length 17, eolver 0x2) PICMG specific record Shelf Manager IP Connection Record Record type: 0xc0 (length 130, eolver 0x2) PICMG specific record Shelf Power Distribution Record Record type: 0xc0 (length 147, eolver 0x2) PICMG specific record Shelf Activation and Power Management Record Record type: 0xc0 (length 227, eolver 0x2) PICMG specific record Backplane Point-to-Point Connectivity Record Record type: 0xc0 (length 227, eolver 0x2) PICMG specific record Backplane Point-to-Point Connectivity Record Record type: 0xc0 (length 23, eolver 0x2) PICMG specific record Backplane Point-to-Point Connectivity Record Record type: 0xc0 (length 101, eolver 0x2) PICMG specific record Backplane Point-to-Point Connectivity Record Record type: 0xc0 (length 251, eolver 0x82) Force specific record user info area record Value is : USER INFO AREA