home‎ > ‎sysadmin‎ > ‎

func=alert

Use this command to re-check or ignore alerts from the sysadmin task scheduler.

usage

infx sysadmin func=alert act id [ act=ignore|recheck task ]
     manage alert
       required:
         act - the action
         id - enter the alert id
       optional:
         task - the name of the task

act=ignore

Use this option to ignore one of the alerts from the task scheduler. You must specify the id of the task to ignore.

demo1@bobii:/home/informix>infx sysadmin func=alert act=ignore id=19

execute: update ph_alert set alert_state = 'IGNORED' where id = 19

Database selected.

1 row(s) updated.

Database closed.

act=recheck

Use this option to re-check the condition for alert id 2. You must also specify the task name for the recheck action.

The alert is marked in the database as "ADDRESS" and then the task is executed again.

demo1@bobii:/home/informix>infx sysadmin func=alert act=recheck id=2 task=check_backup

execute: update ph_alert set alert_state = 'ADDRESSED' where id = 2

Database selected.

1 row(s) updated.

Database closed.

execute: select exectask('check_backup') from systables where tabid=1

Database selected.

(expression)


-1


1 row(s) retrieved.

Database closed.

display alerts

Use the infx alert command to list the task scheduler warnings and errors e.g.

demo1@bobii:/home/informix>infx alert

class id type time name message
warn 21 2012-02-18 14:59:00 WARNING post_alarm_message Warning: The storage pool is out of space. To enable au
warn 20 2012-02-18 14:58:18 WARNING post_alarm_message Warning: The storage pool is out of space. To enable au
error 2 2012-02-18 14:47:40 WARNING check_backup Dbspace [root] has not had a backup for 15388 06:47:40.
error 1 2012-02-18 14:47:40 WARNING check_backup Dbspace [root] has never had a level 0 backup.Recommend