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

Page 67

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 -Cbefore 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 -Cbefore 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-terminalbefore 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.

Setting Alert Actions In Microsoft Windows Server 2003 And Windows Server 2008

When specifying alert actions, Visual Basic scripts are not automatically interpreted by the Execute Application feature, although you can run a .cmd, .com, .bat, or .exe file by only specifying the file as the alert action.

67

Image 67
Contents Dell OpenManage Server Administrator Version 7.3 Users Guide Dell Inc Contents Working With Remote Access Controller Server Administrator ServicesFrequently Asked Questions Server Administrator LogsSetting Alert Actions TroubleshootingIntroduction Installation Updating Individual System ComponentsWhat Is New In This Release Storage Management ServiceInstrumentation Service Remote Access ControllerAvailability On Supported Operating Systems Systems Management Standards AvailabilityOther Documents You May Need Server Administrator HomeOperating System Accessing Documents From Dell Support Site Obtaining Technical Assistance Contacting Dell Serviceability ToolsOMConnectionsEnterpriseSystemsManagement Service User Privilege Level Required View Setup And AdministrationRole-Based Access Control User Privilege Access Description Level Type View ManageVMware ESXi Server 5.X Authentication AuthenticationMicrosoft Windows Authentication VMware ESX Server 4.X AuthenticationAssigning User Privileges EncryptionAdding Users To a Domain On Windows Operating Systems Creating Users Creating Users With User Privileges Creating Users With Power User PrivilegesUserName HostName Rights Best Practices While Using The Omarolemap File Select Account is disabled and click OK Configuring The Snmp AgentOpen the Computer Management window Changing The Snmp Community Name Snmp Service Properties window appearsSnmp Service Configuration window appears Snmp Agent Access Control ConfigurationEnabling Snmp Set Operations Server Administrator Snmp Agent Install Actions Enabling Snmp Access From Remote Hosts Sever Administrator Snmp Install ActionsTo configure the Snmp agent To enable VMWare Snmp service, run the following command Page Firewall Configuration Server Administrator Local System Login Using Server AdministratorLogging In And Out Click Submit Central Web Server LoginSingle Sign-On Using The Active Directory LoginEnabling The Use Of Client-Side Scripts On Mozilla Firefox Enabling The Use Of Client-Side Scripts On Internet ExplorerGUI Field Name Sample Server Administrator Home Page Non-Modular System Features Modular System Action Window System/Server Module Component Status IndicatorsGlobal Navigation Bar System TreeTask Buttons Gauge IndicatorsUnderlined Items Using The Preferences Home Using The Online HelpSetting User And System Preferences Server Administrator Web Server PreferencesManaged System Preferences Secure Port System Click General SettingsClick X.509 Certificate Certificate ManagementServer Administrator Web Server Action Tabs Using The Server Administrator Command Line InterfaceManaging Your System Server Administrator ServicesManaging System/Server Module Tree Objects Server Administrator Home Page System Tree ObjectsModular Enclosure Licensing Subtabs Information Licensing Accessing And Using Chassis Management ControllerSystem/Server Module Properties Modular Enclosure object Tab Properties Subtab InformationAlert Management Subtabs Hardware Alert CommandShutdown LogsSession Management Main System Chassis/Main SystemSubtabs Session Main System Chassis/Main System Properties Properties Subtab Information Properties and Setup Subtab InformationSetup Subtab Bios BatteriesFirmware FansHardware Performance Properties Subtab Memory IntrusionMemory Properties Subtab IntrusionSubtab Information Properties Power ManagementNetwork PortsManagement Subtabs Budget Profiles Power SuppliesAlert Management Properties Subtab Elements Processors Remote AccessAlert Management Subtabs Alert Actions Slots TemperaturesSubtab Temperature Probes Properties Removable Flash MediaProperties Subtab Voltage Probes VoltagesSoftware Operating SystemGeneral Settings Managing Preferences Home Page Configuration OptionsStorage Subtabs Access Configuration Snmp Configuration Preferences Server AdministratorModular Enclosure Modular system Server Modules Main System Working With Remote Access ControllerMain System Chassis Remote Access DeviceViewing Basic Information SystemIPv6 Address IPv4 AddressClick Apply Changes Vlan IDClick Apply Changes Click Terminal Mode Settings Click Serial Port Serial Port Configuration window appearsConfiguring Remote Access Device Users Additional Configuration For iDRACClick Additional Configuration Power Cycle System Setting Platform Event Filter AlertsNone Reboot System Power Off SystemSetting Platform Event Alert Destinations Log Window Task Buttons Server Administrator Logs Integrated Features Server Administrator LogsStatus Hardware LogAlert Log Maintaining The Hardware LogCommand Log Example 1 ps -ef /tmp/psout.txt 2&1 Setting Alert ActionsBMC/iDRAC Platform Events Filter Alert Messages Setting Alert Action Execute Application In Windows ServerEvent Description Opt/dell/srvadmin/sbin/dsmomconnsvcd TroubleshootingConnection Service Failure Login Failure ScenariosService Name Description Impact of Failure OpenManage Server Administrator ServicesSeverity Dsmsadatamgr Are there other ports users can use apart from 1311? Frequently Asked QuestionsPort ITA communicating with Linux systems