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

Request for FTP scrips

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Library
View previous topic :: View next topic  
Author Message
Ludo



Joined: 12 Feb 2003
Posts: 28

PostPosted: Wed Mar 12, 2003 5:36 am    Post subject: Reply with quote

Hi, as I'm new to both HM and scripting, I'm in the position where I could use some help ...


What I want to do is test whether or not a file is on a remote system, using an FTP connection. I don't think HM can do that out-of-the-box, so I guess I need a bit of scripting - and I don't know how to ...

In "pseudo-code" it should probably look like :


do case
case Open_Ftp_Port() <> "OK"
exit("Error : No FTP port")
case Remote_Login() <> "OK"
exit("Error : Missing or Invalid account")
case Find_File() <> "OK"
exit("Error : File not found")
otherwise
Remote_Logoff()
exit("SUCCESS")
endcase


As I said, I'm new to it and would VERY MUCH appreciate a detailed reply.


Thanks,

Ludo

Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Wed Mar 12, 2003 1:15 pm    Post subject: Reply with quote

I think you don't need any script. Just use URL test

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



Joined: 12 Feb 2003
Posts: 28

PostPosted: Mon Mar 17, 2003 5:34 am    Post subject: Reply with quote

Is there anything the you can NOT do with this program ???

Thanks Alex, this works fine - it took me a while to realise that the filename should contain a full path. It does not seem to be enough to assume that the files is in the "default" directory.






[ This Message was edited by: Ludo on 2003-03-17 04:36 ]
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Mon Mar 17, 2003 2:07 pm    Post subject: Reply with quote

Yes, you are right. It needs full path to the file.

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



Joined: 09 Aug 2004
Posts: 6

PostPosted: Thu Aug 12, 2004 2:33 am    Post subject: Reply with quote

Is there a way to read the banner of the FTP Server? Like "220 XXX Microsoft FTP Service (Version 5.0)"
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Thu Aug 12, 2004 10:07 am    Post subject: Reply with quote

You may use TCP test with "Alert when reply doesn't contain: 220 XXX Microsoft FTP Service (Version 5.0)" option

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 -> Library All times are GMT - 6 Hours
Page 1 of 1

 
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