Sun Logo


Netra CP2300 cPSB Board Programming Guide

for Solaris Operating Environment

817-1331-12



Contents

Figures

Tables

Code Samples

Preface

1. Watchdog Timer

Watchdog Timers

PICL Plug-in Module

Watchdog Node Management Code

OpenBoot PROM Interface

Watchdog Operation

Commands at OpenBoot PROM Prompt

Corner Cases

Setting the Watchdog Timer at OpenBoot PROM

2. Environmental Monitoring

Environmental Monitoring Component Compatibility

Typical Environmental Monitoring System Application

Typical Cycle From Power Up to Shutdown

Environmental Monitoring Protection at the OpenBoot PROM

Environmental Monitoring Protection at the Operating Environment Level

Post Shutdown Recovery

Hardware Environmental Monitoring Functions

Power On/Off Switching

Inlet, Exhaust, and CPU Temperature Monitoring

Adjusting the Environmental Monitoring Warning, Critical, and Shutdown Parameter Settings on the Board

OpenBoot PROM Environmental Parameters

OpenBoot PROM Environmental Monitoring

CPU Monitoring

show-sensors Command at OpenBoot PROM

IPMI Command Examples at OpenBoot PROM

Environmental Monitoring Application Programming

Reading Temperature Sensor States Using the PICL API

Solaris Driver Interface

Sample Application Program

Reading the CPU Temperature and OpenBoot PROM Temperature Limits

3. User Flash

User Flash Usage and Implementation

System Compatibility

User Flash Driver

Switch Settings

OpenBoot PROM Device Tree and Properties

User Flash Device Files

Interface (Header) File

Application Programming Interface

Structures to Use in IOCTL Arguments

Errors

Example Programs

Sample User Flash Application Program

4. Programming the User LED

Files and Packages Required to Support the Alarm/User LED

Applications

Application Programming Interface (API)

Compile

Link

Sample Application Program

Index