Sun Microsystems CP2500 manual Environmental Monitoring Application Programming

Page 48

Using the show-sensorsCommand at the

OpenBoot PROM

The show-sensorscommand at OpenBoot PROM displays the readings of all the temperature sensors on the board. A sample output for typical sensor readings for a Netra CP2500 is as follows:

ok show-sensors

 

 

 

 

 

 

 

Sensor#

Sensor Name

 

 

Sensor Reading

=======

==================================== ===================

1

EP 5v

Sensor

(d1) 4.968

volts

2

EP 3.3v

 

Sensor

(8b)

3.336

volts

3

BP +12v

 

Sensor

(ce)

11.760

volts

4

BP -12v

 

Sensor

(63)

-12.010 volts

5

IPMB Power

 

Sensor

(d2)

4.968

volts

6

SMC Power

 

Sensor

(69)

2.448

volts

7

VDD 3.3v

 

Sensor

(a8)

3.2592

volts

8

VCCP

 

Sensor

(64)

1.1800

volts

9

+12v

 

Sensor

(ba)

11.6250 volts

a

-12v

 

Sensor

(36)

-12.040 volts

b

+5v

 

Sensor

(be)

4.940

volts

c

Standby 3.3v

 

Sensor

(be)

3.2680

volts

d

Main 3.3v

 

Sensor

(be)

3.2680

volts

e

External I

temp (CPU)

Sensor

(3e)

62

degree C

f

External II temp (Outlet)

Sensor

(20)

32

degree C

10

Internal

temp (Inlet)

Sensor

(1d)

29

degree C

ok

Environmental Monitoring Application Programming

The following sections describe how to use the environmental monitoring functions in an application program.

For the environmental monitoring application program (envmond) to monitor the hardware environment, the following conditions must be met:

The system controller device driver must be installed.

The environmental monitoring application program (envmond) must be installed and running.

34 Netra CP2500 Board Programming Guide • March 2007

Image 48
Contents Netra CP2500 Board Programming Guide Page Contents User Flash Figures Vi Netra CP2500 Board Programming Guide March Tables Viii Netra CP2500 Board Programming Guide March Code Samples Netra CP2500 Board Programming Guide March Preface How This Book Is OrganizedUsing Unix Commands Typographic ConventionsShell Prompts Related DocumentationDocumentation, Support, and Training Third-Party Web SitesSun Welcomes Your Comments Watchdog Timer OverviewPicl Plug-In Module 1Watchdog Plug-In Interfaces for Netra CP2500 Board Software 2Properties Under watchdog-controllerNode3Properties Under watchdog-timerNode HEALTHY#Watchdog Node Management Code Code Example 1-1System Watchdog Node Management Code ExampleCode Example 1-1System Watchdog Node Management Code Example Usagestr Code Example 1-1System Watchdog Node Management Code Example Code Example 1-1System Watchdog Node Management Code Example Code Example 1-1System Watchdog Node Management Code Example Code Example 1-1System Watchdog Node Management Code Example Code Example 1-1System Watchdog Node Management Code Example Null Code Example 1-1System Watchdog Node Management Code Example Code Example 1-1System Watchdog Node Management Code Example Code Example 1-1System Watchdog Node Management Code Example Code Example 1-1System Watchdog Node Management Code Example Code Example 1-1System Watchdog Node Management Code Example Notreached Code Example 1-1System Watchdog Node Management Code Example OpenBoot Prom Interface Netra CP2500 Board Programming Guide March Environmental Monitoring Environmental Monitoring Component Compatibility Typical Environmental Monitoring System Application1Compatible Environmental Monitoring Components I2C Typical Cycle From Power Up to Shutdown Environmental Monitoring Protection at the OpenBoot PromPost Shutdown Recovery Hardware Environmental Monitoring Functions 3I2C ComponentsEnvironmental Monitoring CPU Switching Power On and Off Inlet, Exhaust, and CPU Temperature MonitoringNetra CP2500 Board Programming Guide March OpenBoot Prom Environmental Monitoring Critical Temperature Response at OpenBoot PromUsing the show-sensorsCommand at OpenBoot Prom Environmental Monitoring Application ProgrammingReading Temperature Sensor States Using 4PICL Temperature Sensor Class Node PropertiesUsing a Configuration File for Sensor Information Solaris Driver InterfaceSample Application Program Code Example 2-1Sample envmond Application ProgramCode Example 2-1Sample envmond Application Program Code Example 2-1Sample envmond Application Program Code Example 2-1Sample envmond Application Program Reading the CPU Temperature Environmental Limits Prtdiag command example5Description of Values Displayed by Solaris Commands User Flash User Flash Usage and ImplementationOpenBoot Prom Device Tree and Properties User Flash Driver1User Flash Node Properties Application Programming Interface User Flash Device FilesInterface Header File 2System CallsStructures to Use in Ioctl Arguments Code Example 3-1PROM Information StructureErrors Example ProgramsCode Example 3-2User Flash Interface Structure Read Example Program Code Example 3-3Read Action on User Flash DeviceWrite Example Program Code Example 3-4Write Action on User Flash DeviceCode Example 3-4Write Action on User Flash Device Block Erase Example Program Code Example 3-5Block Erase Action on User Flash DeviceCode Example 3-5Block Erase Action on User Flash Device Sample User Flash Application Program Code Example 3-6Sample User Flash Application ProgramCode Example 3-6Sample User Flash Application Program Code Example 3-6Sample User Flash Application Program Code Example 3-6Sample User Flash Application Program Code Example 3-6Sample User Flash Application Program Code Example 3-6Sample User Flash Application Program Index PiclWatchdog-controller, 3 Watchdog-timer, 3