alarms


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting alarms
# 1  
Old 10-02-2005
Quote:
Originally Posted by dradhzn
what exactly do you expect ? the script is doing nothing .

alarms/beeps every hour similar to an alarm clock!!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

CentOs server generating several alarms on partition /proc/

Greetings, I have been facing one issue here and I am not understanding what is causing. I am getting a lot of alarms complaining that the partition for example /proc/12345 , is full, but the partition does not existe on the server. Which is not supposed to happen, because /proc is not a real... (10 Replies)
Discussion started by: Yagami_Sama
10 Replies

2. Solaris

Sudden Service Busy Alarms

Hi, I am getting service busy alarms on my machines which are using MongoDB every now and then. When the service busy alarm appears, I get the following errors on my mongo router logs. Tue Apr 7 08:01:08.445 dbclient_rs nodes.ok = true hxcslc-b05:27014 Tue Apr 7 08:01:08.445 dbclient_rs... (0 Replies)
Discussion started by: sni_engineer
0 Replies

3. Solaris

Ftpd alarms

Hi, I am facing following alarms in var/adm/messages after an interval of 10 mins. I dont know what the impact is and how can i fix it. Can anyone help please? Dec 4 07:50:03 hxcsvc-a01 ftpd: open_module: stat(/usr/lib/security/pam_unix_session.so.1) failed: No such file or directory Dec ... (4 Replies)
Discussion started by: sni_engineer
4 Replies

4. Solaris

Strange power supply units alarms!!!

Hi folks, I encountered this alarms on a solaris server: 04/21/12 23:17:55 MNP-PGW-A_bge3 mnp 231748 Power Supply Unit 0 is faulty 04/21/12 23:17:55 MNP-PGW-A_bge3 mnp 231748 Power Supply Unit 1 is faulty 04/21/12 23:18:26 MNP-PGW-A_bge3 mnp 231822 Power Supply Unit 0 is faulty:CLEAR... (0 Replies)
Discussion started by: kimurayuki
0 Replies

5. Solaris

Hardware Alarms on HP-ux Solarisx86

Hi I am trying to configure the Hardware alarms on HP server. I have refer to "HP ProLiant Health Monitor User Guide" and installed HPQacucli-3.5.0-solaris10-i386 HPQhealth-4.4.0-solaris10-i386 HPQhma-5.7.0-solaris10-i386 HPQilo-1.4.5-solaris10-i386 HPQsmh-5.5.0-solaris10-i386 ... (2 Replies)
Discussion started by: anand87
2 Replies

6. Solaris

lp serverlist alarms in messages

Hello, I have been receiving following alarms in /var/adm/messages dtcp: WARNING DB (db_tcp.c,363) db_alloc_connid: lp && lp->serverlist error for service 20 It seems like this message is related to LP print service. Since I am not using any print service, is there any way to switch it... (2 Replies)
Discussion started by: aalishan
2 Replies

7. Infrastructure Monitoring

Sun Solaris 9 Traps Contain Multiple Alarms

Hi all, I have a Sun Solaris 9 box which acts as a firewall. Sometimes if multiple actions which cause snmp traps occur very close together, a single snmp trap that is sent containing the text for multiple alarms. I would like to prevent that and have a trap sent for each action which would... (0 Replies)
Discussion started by: g0ld2k
0 Replies

8. UNIX for Dummies Questions & Answers

Autosys Email Alarms

Hello, I'm kind of new to autosys, but I'm assuming there is a way to have Alarms be emailed instead of having to run jobscape and click the Alarm button to see what jobs have failed? Does anyone have an insight onto how this can be done? Thanks. (14 Replies)
Discussion started by: rpiller
14 Replies

9. Solaris

Alarms/Alerts

Is there a imbedded command (Solaris v8 ksh) that will send an administrative alert/alarm. Or is it just triggering a mail message via shell script? If no, is there a good open-source code someone knows about? Thanks so much in advance for any replies. ...Gozer13 (3 Replies)
Discussion started by: gozer13
3 Replies
Login or Register to Ask a Question
tsalarm_get(3EXT)					    Extended Library Functions						 tsalarm_get(3EXT)

NAME
tsalarm_get, tsalarm_set - get or set alarm relays SYNOPSIS
cc [ flag... ] file... -ltsalarm [ library... ] #include <tsalarm.h> int tsalarm_get(uint32_t alarm_type, uint32_t *alarm_state); int tsalarm_set(uint32_t alarm_type, uint32_t alarm_state); PARAMETERS
alarm_type The alarm type whose state is retrieved or set. Valid settings are: TSALARM_CRITICAL critical TSALARM_MAJOR major TSALARM_MINOR minor TSALARM_USER user alarm_state The state of the alarm. Valid settings are: TSALARM_STATE_ON The alarm state needs to be changed to "on", or is returned as "on". TSALARM_STATE_OFF The alarm state needs to be changed to "off", or is returned as "off". TSALARM_STATE_UNKNOWN The alarm state is returned as unknown. DESCRIPTION
The TSALARM interface provides functions through which alarm relays can be controlled. The set of functions and data structures of this interface are defined in the <tsalarm.h> header. There are four alarm relays that are controlled by ILOM. Each alarm can be set to "on" or "off" by using tsalarm interfaces provided from the host. The four alarms are labeled as critical, major, minor, and user. The user alarm is set by a user application depending on system condition. LEDs in front of the box provide a visual indication of the four alarms. The number of alarms and their meanings and labels can vary across platforms. The tsalarm_get() function gets the state of alarm_type and returnsit in alarm_state. If successful, the function returns 0. The tsalarm_set() function sets the state of alarm_type to the value in alarm_state. If successful, the function returns 0. The following structures are defined in <tsalarm.h>: typedef struct tsalarm_req { uint32_t alarm_id; uint32_t alarm_action; } tsalarm_req_t; typedef struct tsalarm_resp { uint32_t status; uint32_t alarm_id; uint32_t alarm_state; } tsalarm_resp_t; RETURN VALUES
The tsalarm_get() and tsalarm_set() functions return the following values: TSALARM_CHANNEL_INIT_FAILURE Channel initialization failed. TSALARM_COMM_FAILURE Channel communication failed. TSALARM_NULL_REQ_DATA Allocating memory for request data failed. TSALARM_SUCCESS Successful completion. TSALARM_UNBOUND_PACKET_RECVD An incorrect packet was received. The tsalarm_get() function returns the following value: TSALARM_GET_ERROR An error occurred while getting the alarm state. The tsalarm_set() function returns the following value: TSALARM_SET_ERROR An error occurred while setting the alarm state. EXAMPLES
Example 1 Get and set an alarm state. The following example demonstrates how to get and set an alarm state. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <tsalarm.h> void help(char *name) { printf("Syntax: %s [get <type> | set <type> <state>] ", name); printf(" type = { critical, major, minor, user } "); printf(" state = { on, off } "); exit(0); } int main(int argc, char **argv) { uint32_t alarm_type, alarm_state; if (argc < 3) help(argv[0]); if (strncmp(argv[2], "critical", 1) == 0) alarm_type = TSALARM_CRITICAL; else if (strncmp(argv[2], "major", 2) == 0) alarm_type = TSALARM_MAJOR; else if (strncmp(argv[2], "minor", 2) == 0) alarm_type = TSALARM_MINOR; else if (strncmp(argv[2], "user", 1) == 0) alarm_type = TSALARM_USER; else help(argv[0]); if (strncmp(argv[1], "get", 1) == 0) { tsalarm_get(alarm_type, &alarm_state); printf("alarm = %d state = %d ", alarm_type, alarm_state); } else if (strncmp(argv[1], "set", 1) == 0) { if (strncmp(argv[3], "on", 2) == 0) alarm_state = TSALARM_STATE_ON; else if (strncmp(argv[3], "off", 2) == 0) alarm_state = TSALARM_STATE_OFF; else help(argv[0]); tsalarm_set(alarm_type, alarm_state); } else { help(argv[0]); } return 0; } ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Uncommitted | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
libtsalarm(3LIB), attributes(5) SunOS 5.11 4 Sep 2007 tsalarm_get(3EXT)