Using a configuration file for sensor information, Solaris driver interface – Sun Microsystems Netra CP2500 User Manual
Page 50
36
Netra CP2500 Board Programming Guide • March 2007
Using a Configuration File for Sensor Information
On the Netra CP2500, you can enable or disable sensors, and configure sensor
threshold actions, such as shutdown and reboot, by editing the
/etc/picl/config/envmond.conf
file.
Sample entries in the envmond.conf file are:
Solaris Driver Interface
The PICL envmond plug-in opens a SMC driver stream and requests sensor events.
The SMC monitors the sensors and generates an event when it detects a change at a
particular sensor which meets one of the specified thresholds and generates an event
to local Solaris software. This event is captured by the SMC driver (as an IPMI
message) and is sent on an open STREAM that has requested sensor events. The
sensor events are received by the PICL plug-in. The PICL plug-in updates the State
property based on the information it extracts from the IPMI message and posts a
PICL event.
:HighShutdownThreshold 118
:HighWarningThreshold 110
:LowPowerOffThreshold -20
:LowShutdownThreshold -10
:LowWarningThreshold -5
:Temperature
74
:Label Ambient
:GeoAddr 0xe
:_class temperature-sensor
:name
CPU-sensor
#entry format: name=value option
envmon-enable = true /* Globally enables/disables PICL-based
environmental monitoring */
sensor=CP2500-CPU-sensor threshold_shutdown_cmd=“usr/sbin/shutdown -i5 -y -g15&”
/* presence of this line shows that the corresponding sensor is enabled */