KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

RMA external program test problem
Goto page Previous  1, 2
 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
mjparr



Joined: 07 Jan 2004
Posts: 13
Location: Westport, CT

PostPosted: Tue May 04, 2004 1:06 pm    Post subject: Please tell me you are kidding Reply with quote

Please tell me you are kidding
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed May 05, 2004 12:20 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Robert



Joined: 31 Aug 2004
Posts: 2

PostPosted: Tue Aug 31, 2004 3:21 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Aug 31, 2004 11:25 pm    Post subject: Reply with quote

Interesting... May be Path and ComSpec environ variables do not contain path to cmd.exe (%SystemRoot%\system32\ by default)?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Robert



Joined: 31 Aug 2004
Posts: 2

PostPosted: Wed Sep 01, 2004 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Sep 01, 2004 5:43 pm    Post subject: Reply with quote

Thanks to your help, I found where problem is. Update available at www.ks-soft.net/download/rma121.zip

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index