Dell 8.1 manual Setting Alert Actions, Example 1 ps -ef /tmp/psout.txt 2&1

Page 73

7

Setting Alert Actions

Setting Alert Actions For Systems Running Supported Red Hat Enterprise Linux And SUSE Linux Enterprise Server Operating Systems

When you set alert actions for an event, you can specify the action to display an alert on the server. To perform this action, Server Administrator sends a message to /dev/console. If the Server Administrator system is running an X Window System, the messsage is not displayed. To see the alert message on a Red Hat Enterprise Linux system when the X Window System is running, you must start xconsole or xterm -C before the event occurs. To see the alert message on a SUSE Linux Enterprise Server system when the X Window System is running, you must start a terminal such as xterm -C before the event occurs.

When you set Alert Actions for an event, you can specify the action to Broadcast a message. To perform this action, Server Administrator executes the wall command, which sends the message to everybody logged in with their message permission set to Yes. If the Server Administrator system is running an X Window System, the message is not displayed by default. To see the broadcast message when the X Window System is running, you must start a terminal such as xterm or gnome-terminal before the event occurs.

When you set Alert Actions for an event, you can specify the action to Execute application. There are limitations on the applications that Server Administrator can execute. To ensure proper execution:

Do not specify X Window System based applications because Server Administrator cannot execute such applications properly.

Do not specify applications that require input from the user because Server Administrator cannot execute such applications properly.

Redirect stdout and stderr to a file when specifying the application so that you can see any output or error messages.

If you want to execute multiple applications (or commands) for an alert, create a script to do that and insert the full path to the script in the Absolute path to the application box.

Example 1: ps -ef >/tmp/psout.txt 2>&1

The command in Example 1 executes the application ps, redirects stdout to the file /tmp/psout.txt, and redirects stderr to the same file as stdout.

Example 2: mail -s "Server Alert" admin </tmp/alertmsg.txt>/tmp/mailout.txt 2>&1

The command in Example 2 executes the mail application to send the message contained in the file /tmp/alertmsg.txtto the Red Hat Enterprise Linux user or SUSE Linux Enterprise Server user, and Administrator, with the subject Server Alert. The file /tmp/alertmsg.txt must be created by the user before the event occurs. In addition, stdout and stderr are redirected to the file /tmp/mailout.txt in case an error occurs.

73

Image 73
Contents Dell OpenManage Server Administrator Version Users Guide Page Contents Working With Remote Access Controller Server Administrator ServicesSetting Alert Actions Server Administrator LogsTroubleshooting Frequently Asked QuestionsIntroduction Installation Updating Individual System ComponentsInstrumentation Service Storage Management ServiceRemote Access Controller What Is New In This ReleasePage Availability On Supported Operating Systems Systems Management Standards AvailabilityOther Documents You May Need Server Administrator HomeAccessing documents from Dell Support Site Contacting Dell Obtaining Technical AssistanceRole-Based Access Control Setup And AdministrationUser Privileges Microsoft Windows Authentication AuthenticationVMware ESXi Server 5.X Authentication Assigning User Privileges EncryptionAdding Users To a Domain On Windows Operating Systems Creating Users With User Privileges Creating Users With Power User PrivilegesTab = \t tab character Best Practices While Using The Omarolemap FileConfiguring The Snmp Agent Changing the Snmp community name Page Server Administrator Snmp Agent Install Actions Snmp Agent Access Control ConfigurationEnabling Snmp Access From Remote Hosts Sever Administrator Snmp Install ActionsFind the line that reads rocommunity public Page Firewall Configuration Server Administrator Local System Login Using Server AdministratorLogging In And Out Central Web Server Login Single Sign-On Using The Active Directory LoginEnabling The Use Of Client-Side Scripts On Internet Explorer Enabling The Use Of Client-Side Scripts On Mozilla Firefox Sample Server Administrator Home Page Non-Modular System Page System Tree Global Navigation BarAction Window Data AreaTask Buttons System/Server Module Component Status IndicatorsUsing The Preferences Home Using The Online HelpGauge Indicators Underlined ItemsSetting User And System Preferences Server Administrator Web Server PreferencesManaged System Preferences Secure Port System Certificate Management SSL Server Certificates Upgrading web server Server Administrator Web Server Action TabsUsing The Server Administrator Command Line Interface Managing Your System Server Administrator ServicesManaging System/Server Module Tree Objects Server Administrator Home Page System Tree ObjectsModular Enclosure Accessing And Using Chassis Management ControllerSystem/Server Module Properties Logs ShutdownSession Management Alert ManagementMain System Chassis/Main System Properties Main System Chassis/Main SystemBatteries Bios Fans Hardware Performance FirmwareIntrusion Memory Ports NetworkPower Management Processors Power SuppliesRemote Access Removable Flash Media TemperaturesSlots Voltages Operating System SoftwareStorage General Settings Managing Preferences Home Page Configuration OptionsServer Administrator Working With Remote Access Controller Viewing Basic Information Configuring The Remote Access Device To Use a LAN Connection Vlan ID Page Configuring Remote Access Device Users Additional Configuration For iDRACSetting Platform Event Filter Alerts Setting Platform Event Alert Destinations Page Integrated Features Server Administrator LogsLog Window Task Buttons Hardware Log Server Administrator LogsMaintaining The Hardware Log Alert Log Command LogExample 1 ps -ef /tmp/psout.txt 2&1 Setting Alert ActionsSetting Alert Action Execute Application In Windows Server Setting Alert Actions In Microsoft Windows Server ServerBMC/iDRAC Platform Events Filter Alert Messages Page Connection Service Failure TroubleshootingLogin Failure Scenarios REINSTALLMODE=vamus Server Administrator ServicesDsmsadatamgr Page ITA communicating with Linux systems Frequently Asked QuestionsITA communicating with Windows systems