Unsolved

This post is more than 5 years old

29 Posts

38699

April 9th, 2015 14:00

Dell OME New Alert Application Launch Action

   Dell OME is running on Windows Server 2012 R2 (A VM).  I am trying my o so very hardest for Dell OME to execute a very simple bat file (msg.exe) to send messages to sysadmins whenever a problem would arise with their server. 

  This bat file of course works just fine when executed by myself, however, when the absolute path is placed and I attempt to test it with the Dell OME application, it never works. 

I've tried many things,

-checking and rechecking permissions,(made a share on the local server open to all to run the script off of just in case)

-making Dell OME call on a powershell script first for it to follow up with the bat scrip

-marked all of the Dell services as "interactive" under services.

-Turned on the "now" legacy option of  "interactive services" via modifying the registry.

  (This got the system log to atleast acknowledge there are attempts of kicking off cmd.exe)

-Tried with psexec just in case it was some desktop issue with msg.exe and the OS.


-Have gone through a hunderd websites, about 10 Dell manuals, and all of the other operating system possibilities, quadruple checked my script, I am at a loss. 

I tried a plethora of other things as well.  So what is the deal with Windows Server 2012 R2 and executing applications with OME.  Was there something o so very obvious that I missed, or is this a genuine issue at hand.  Thanks for any input. 

2 Intern

 • 

1K Posts

April 13th, 2015 08:00

Hi,

Since you mentioned it is a batch file, will it be possible for you to share the batch file with us? You change your batch file to be very verbose (no @echo off) and use the output file to view what is failing. (Assuming OME even gets as far as executing it). 

Also, be sure to not change the user that is running the OME services.

29 Posts

April 13th, 2015 09:00

One example of many different ways of trying to run this bat script.

psexec \\servername -i msg username /server:servername

I tried using it without the psexec (works just fine), tried to run a powershell script that kicks off a bat, works just fine.  Either or 100% open to new suggestions. 


Thanks for the link, I'll give that one a whirl.

the /f output.txt > nul gives me back no output. 

2 Intern

 • 

1K Posts

April 13th, 2015 09:00

One more suggestion. Perhaps this post can be of help for you.

en.community.dell.com/.../20723558

29 Posts

April 13th, 2015 12:00

 Wrote a script with this

import-module "c:\program files\dell\sysmgt\essentials\tools\cli\dell.ome.cli.dll"

import-module "c:\program files\dell\sysmgt\essentials\tools\cli\dell.ome.web.net.servicereference.dll"

"C:\program files\dell\sysmgt\essentials\bin\launchomepowershell.exe"

start-process "cmd.exe" "/c c:\example.bat"


the bat script reads as

@echo off

msg username /server:servername Hello, I really like Dell products, but this part of OME confuses me greatly. 

runs just fine in powershell/double click\etc.

However, it launchs the "interactive services detection" prompt, of course  when I try to test it.  This is win2012 and I had to enable this legacy option, I found that in your guys OMSA documentation.  Should I disable this?  or? 


 Super confused, I have no qualms calling up one of you guys to run this stuff step by step if you guys wish to skip the possibly confusing text exchange.  Really would like this stuff to work since I spent a good amount of my time trying it to work to begin with.  Would hate to give up at this point, I really do appreciate any help you guys can throw at me.  


 Thanks!!

2 Intern

 • 

1K Posts

April 14th, 2015 00:00

Hey, Can you try one quick thing? Can you try running this bat file as administrator? Use the run as method. Need to see if this is the problem.

29 Posts

April 14th, 2015 07:00

A bit confused here, you mean in the bat script itself?  Not sure if that can be enumerated since the /runas command prompts for a password. 

 However, I disabled UAC on the server. 

Question, should the OME Task Manager be set to "interactive" or not?  (I only ask this because I have gone back and forth on this a million times, and don't even remember the default or what it should be set as).

 I'm still stuck, so any help would be greatly appreciated.  I even put the bat command inside of the powershell command, and it still doesn't work. 

29 Posts

April 16th, 2015 09:00

So no one has any other ideas about this?

2 Intern

 • 

1K Posts

April 16th, 2015 10:00

Hi,

Thanks for your patience. I think it is getting difficult to really figure out what is going wrong on this forum. I would request to log a trouble ticket @800-945-3355 so that the support guys can look into the bat script and associated environment dependencies.

29 Posts

April 17th, 2015 07:00

Hey Pupul, I called up Tech support and they said that I needed some sort of Dell premium service of sorts in order for this issue to be looked at since its not an issue with your software, but an issue with whatever script/server/etc on my end.

 Just curious if you guys got this feature to work on a Windows 2012 R2 server or not? 

3 Apprentice

 • 

2.8K Posts

April 17th, 2015 08:00

Hi Jason,

Yeah, you just need to give them a service tag from a server that has Pro Support, then they can open a ticket.  I'll try to get some time to re-try this on my box and report back.

Thanks!

Rob

2 Posts

July 24th, 2016 14:00

Hi,

i have the same problem on a dell poweredge 2950 and windows server 2012 r2.

The alter action in omsa doesn't work. But the batch works fine in a cmd.

i tried  calling the bat directly with full path and by calling the cmd /c options.

But nothing works !!

I believe its a pb with omsa or a configuration in it !!

My script works well , and i am in Administrator User Domain.

This problem appears for many users in many forums but i can't see any resolution that works for me.

Have you solved your problem since one year ? If yes, how ??

Thank very much.

laurmezi.

2 Posts

July 27th, 2016 14:00

I resolved my problem.

As it is said in documentation, you must "Allow service to interact with desktop" for the services DSM SA DATA (services,properties,log on) and active the windows service "Interactives Services Detection.

This service windows is disabled on windows server 2012 and you must activate by the regedit :

HKLM\SYSTEM\CurrentControlSet\Control\Windows\NoInteractiveServices (put 0 instead of 1)

After that, the action you have put in the alert action of omsa will work !!

i put a script (.bat) like that in the alert action :

cmd /c c:\xxx\myscript.bat

hope, it will help someone else to throw a action on OMSA.

lolofr

No Events found!

Top