View previous topic :: View next topic |
Author |
Message |
mjparr
Joined: 07 Jan 2004 Posts: 13 Location: Westport, CT
|
Posted: Tue May 04, 2004 1:06 pm Post subject: Please tell me you are kidding |
|
|
Please tell me you are kidding |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed May 05, 2004 12:20 am Post subject: |
|
|
I am not.
But I tried to start RMA in service mode under user account (instead of LocalSystem) and it works fine. RMA in application mode works fine as well.
So, it looks like some permission issue. But why??
Regards
Alex |
|
Back to top |
|
|
Robert
Joined: 31 Aug 2004 Posts: 2
|
Posted: Tue Aug 31, 2004 3:21 am Post subject: |
|
|
Hello,
I had exectly same problem: I was unable to run my own .cmd file through RMA agent (rma: 301 - The directory name is invalid). RMA agent is running under domain account and application mode doesn't help too.
I resolved this issue by using filemon. I had to copy cmd.exe into RMA folder (c:\Program Files\HostMonitor4\RMA-Win\) and had to create directory c:\hostmon. Don't ask me why, but it works now. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Aug 31, 2004 11:25 pm Post subject: |
|
|
Interesting... May be Path and ComSpec environ variables do not contain path to cmd.exe (%SystemRoot%\system32\ by default)?
Regards
Alex |
|
Back to top |
|
|
Robert
Joined: 31 Aug 2004 Posts: 2
|
Posted: Wed Sep 01, 2004 1:09 am Post subject: |
|
|
I tested it a bit more. cmd.exe doesn't have to be in agent folder. I have got file not found result in filemon but after that %path comes into play and everythink works:
Code: | 9:05:32 rma.exe:3432 QUERY INFORMATION C:\Program Files\HostMonitor4\RMA-Win\cmd.exe FILE NOT FOUND Attributes: Error
9:05:32 rma.exe:3432 QUERY INFORMATION C:\WINDOWS\system32\cmd.exe SUCCESS Attributes: A
9:05:32 rma.exe:3432 QUERY INFORMATION C:\WINDOWS\system32\cmd.exe SUCCESS Attributes: A
9:05:32 rma.exe:3432 OPEN C:\WINDOWS\system32\cmd.exe SUCCESS Options: Open Access: All
|
But when I remove empty folder c:\hostmon test stop working and error 301 (The directory name is invalid) is back.
Code: | 9:02:13 rma.exe:3432 QUERY INFORMATION C:\bat\logparser.cmd SUCCESS Attributes: A
9:02:13 rma.exe:3432 QUERY INFORMATION C:\bat\logparser.cmd SUCCESS Attributes: A
9:02:13 rma.exe:3432 OPEN C:\bat\logparser.cmd SUCCESS Options: Open Access: All
9:02:13 rma.exe:3432 QUERY INFORMATION C:\bat\logparser.cmd SUCCESS Length: 281
9:02:13 rma.exe:3432 QUERY INFORMATION C:\bat\logparser.cmd SUCCESS Attributes: A
9:02:13 rma.exe:3432 QUERY INFORMATION C:\bat\logparser.cmd SUCCESS Length: 281
9:02:13 rma.exe:3432 CLOSE C:\bat\logparser.cmd SUCCESS
9:02:13 rma.exe:3432 QUERY INFORMATION C:\Program Files\HostMonitor4\RMA-Win\cmd.exe FILE NOT FOUND Attributes: Error
9:02:13 rma.exe:3432 QUERY INFORMATION C:\WINDOWS\system32\cmd.exe SUCCESS Attributes: A
9:02:13 rma.exe:3432 QUERY INFORMATION C:\WINDOWS\system32\cmd.exe SUCCESS Attributes: A
9:02:13 rma.exe:3432 OPEN C:\WINDOWS\system32\cmd.exe SUCCESS Options: Open Access: All
9:02:13 cmd.exe:3432 QUERY INFORMATION C:\WINDOWS\system32\cmd.exe BUFFER OVERFLOW FileNameInformation
9:02:13 cmd.exe:3432 QUERY INFORMATION C:\WINDOWS\system32\cmd.exe SUCCESS FileNameInformation
9:02:13 rma.exe:3432 OPEN C:\WINDOWS\system32\cmd.exe.Manifest FILE NOT FOUND Options: Open Access: All
9:02:13 rma.exe:3432 QUERY INFORMATION C:\hostmonitor\ FILE NOT FOUND Attributes: Error
9:02:13 rma.exe:3432 CLOSE C:\WINDOWS\system32\cmd.exe SUCCESS
|
|
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
|
Back to top |
|
|
|