![]() |
![]() |
|
Newsletter | Forum | Contact Us | News | Products | Downloads | Support | Partners |
|
|
How to send alarm popup windows with LoriotPro to Windows Users.Introduction to the notification by window popupIn LoriotPro alarm filtering you might want to trigger a popup alarm window on a remote workstation or a group of workstations. LoriotPro is able to trigger action when receiving a SNMP trap, a proprietary EVENT or a SYSLOG. The action is defined in a filter. LoriotPro checks in real time that filter conditions are fulfilled and launches the action. LoriotPro is internally design to process hundred of incoming events per seconds and trigger the according actions. In this how to, we want to notify network administrator of IS manager of any type of alarms by sending them a message that will popup a windows on their workstation. LoriotPro will be in charge of triggering the executable that will send the message and not directly send the message. The first and easiest solution is included in the Windows Operating System and use the Net Send function available in Windows XP, 2000 and 2003. In Windows Vista it is necessary to use the MSG program because Net Send is not longer available for security reason. The Net Send was use by dumb hackers for making deny of service by blasting pc with popup messages. The result is : You will not be able to send message with Net Send under XP for example to a user under Windows Vista. In the other way, you will be able to send a message from a Vista to windows XP user. Using Windows NetSend or MSG.exeFor the example we have set a filter on the LinkDown trap:
For setting filter and action first read the LoriotPro documentation below: http://www.loriotpro.com/Products/On-line_Documentation_V5/LoriotProDoc_EN/I9-Event_Management/I9-G7_Trap_Filter_Creation_EN.htm In the Action Wizard of the filter (trap or event filter) you must choose the Start Windows Program option. You are then invited to select a program in your directory. On Vista you can select msg.exe in /windows/system32 directory On Windows 2000, Windows XP, Windows 2003 you can use the NET SEND command. Here under an example of trap filter action on a Windows Vista
The syntax of the command: C:\Windows\System32\msg “User Name” “Message between quote” The full path is not necessarily required depending of your Windows settings. In the upper example: C:\Windows\System32\msg.exe %QFlorent Brisson%Q %QMessage from :%h ALARM : Interface %0 down%Q Warning : The double quote is not allowed in the action parameters field. You should replace them by the %Q value. (this feature is available only with Loriotpro V5 release cc or higher). The user name can be replace by * for sending a broadcast message to all users. To test the filter use the Trap Simulator and generate a fake trap.
The trap is received.
The filter is matched and generates the action. The action generates a message popup on the remote workstation
Syntax of the MSG command :MSG {username | sessionname | sessionid | @filename | *} [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]
REMARK: On the remote Windows XP, the Messenger service should be started for enabling the reception of alert message. Start the service form the Control Panel – Administrative Tools – Services interface Or open a dos session and type : svchost.exe –k netsvcs Syntax of the Net Send commandnet send {name | * | /domain[:name] | /users} message
net help command : Displays help for the specified net command. Remarks
Examples: To send the message "Meeting changed to 3 P.M. Same place." to the user robertf, type: net send robertf Meeting changed to 3 P.M. Same place. To send a message to all users connected to the server, type: net send /users This server will shut down in 5 minutes. To send a message that includes a slash mark (/), type: net send robertf "Format your disk with FORMAT /4"
|
| Newsletter | Forum | Contact Us | News | Products | Downloads | Support | Partners | |||||
|
|||||