The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Database Rule problem

SOLVED
Go to solution
Highlighted
Ilya Ilin
Super Collector

Database Rule problem

Hello all!

I'm trying to perform some actions (command exec) when an incident is created or modified and get such error:

Rule: SendAlarmOnCreateOrModify Action: Send Alarm (Command Exec Action) Entity: Incident Agent: db3 Commandline: K:/Cmdb/HPOVSD/Misc/Bat/test_alarm.cmd Error: CreateProcess: K:/Cmdb/HPOVSD/Misc/Bat/test_alarm.cmd error=5

This action supposed to perform without any conditions, .cmd file contain leading @s in every line, Agent is running on the client machine (db3).

And I didn't manage to find anywhere what 'error=5' is...

Can anybody help me with this?
6 REPLIES
Ruth Porter
Honored Contributor
Solution

Re: Database Rule problem

Hi Ilya,

Is K: a shared drive? Does it work if you put the cmd file on C:?

Hope this helps

Ruth
http://www.teamultra.net
Ilya Ilin
Super Collector

Re: Database Rule problem

Hi Ruth!

Actually, K: is a shared drive.
Thank you very much for solution, but could you please explain that to me?
Ruth Porter
Honored Contributor

Re: Database Rule problem

Hi ilya,

I think the issue is that when the agent runs it has no mapping for drive k:

Regards

Ruth
http://www.teamultra.net
Ilya Ilin
Super Collector

Re: Database Rule problem

Well, thanks.

And can Agent be somehow configured to overcome this?
Ruth Porter
Honored Contributor

Re: Database Rule problem

Hi Ilya,

I am not sure - the only thing I can suggest is that you ensure the agent service runs on a login account which has K: mapped but I do not know whether this would cause other issues.

Would it not be simpler to copy it to the hard drive?

Regards

Ruth
http://www.teamultra.net
Ilya Ilin
Super Collector

Re: Database Rule problem

It's ok, but it was just interesting to know about configuration.

Thanks a lot after all!
//Add this to "OnDomLoad" event