[sniffer] Re: Uploading problems

2006-12-08 Thread Serge
do you copy wput and its dlls in sniffer\log dir ?


- Original Message - 
From: "K Mitchell" <[EMAIL PROTECTED]>
To: "Message Sniffer Community" 
Sent: Saturday, December 09, 2006 5:39 AM
Subject: [sniffer] Re: Uploading problems


> At 12:37 AM 12/9/2006 -0500, K Mitchell wrote:
> >
> >wput -nd licenseID_*.log ftp://snifferlog:[EMAIL PROTECTED]
> 
>   Sorry, this line now becomes:
> 
> wput -nd licenseID.log ftp://snifferlog:[EMAIL PROTECTED]
> 
> 
> 
> -- 
> Kirk Mitchell-General Manager[EMAIL PROTECTED]
> Keystone Connect Unlock Your World
> Altoona, PA  814-941-5000   http://www.keyconn.net
> 
> 
> 
> #
> This message is sent to you because you are subscribed to
>   the mailing list .
> To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
> To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
> To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
> Send administrative queries to  <[EMAIL PROTECTED]>
> 
> 


#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[sniffer] Re: Uploading problems

2006-12-08 Thread K Mitchell
At 12:37 AM 12/9/2006 -0500, K Mitchell wrote:
>
>wput -nd licenseID_*.log ftp://snifferlog:[EMAIL PROTECTED]

  Sorry, this line now becomes:

wput -nd licenseID.log ftp://snifferlog:[EMAIL PROTECTED]



-- 
Kirk Mitchell-General Manager[EMAIL PROTECTED]
Keystone Connect Unlock Your World
Altoona, PA  814-941-5000   http://www.keyconn.net



#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[sniffer] Re: Uploading problems

2006-12-08 Thread K Mitchell
At 09:35 PM 12/8/2006 -0500, K Mitchell wrote:
>
>  I've just finished putting mine all together. Each of the components have
>been tested individually, tonight shortly after midnight will be the first
>test of it in it's entirety. In the way of explanation, here's what I'm
>doing each night shortly after midnight:
>
>- moving the current logfile to a subfolder, thus rotating the logfiles
>- renaming the file to add the date -this uses the Namedate utility I found
>at http://www.informatics-consulting.de/software/namedate.htm
>- uploading the file
>- moving the file to yet another subfolder -this is because the upload
>script uses * to cover the date variable, so it wouldn't be good to have 2
>or more dated files in the same folder
>- sending myself an email confirming that the process has completed
>successfully

  This didn't quite work as planned. Apparently wput doesn't recognize
variables in the filename, so I had to swap some lines and do the upload
before the renaming to add the date. I had been hoping to date it before
sending so that, in the odd chance that my prior log hadn't been processed
yet, the new file would have a different name and upload with no problems.
I'll just have to hope that my logs get processed within 24 hours.

Here's the new .cmd file:

@echo off

c:
cd c:\imail\sniffer
move c:\imail\sniffer\licenseID.log logs

cd c:\imail\sniffer\logs

wput -nd licenseID_*.log ftp://snifferlog:[EMAIL PROTECTED]

echo Log upload completed! >> sniffupld.txt

namedate /UYO-1Z:"ymd" "licenseID.log"

echo Log dated! >> sniffupld.txt

move c:\imail\sniffer\logs\licenseID_*.log sent

echo Log moved to Sent folder! >> sniffupld.txt

c:\imail\imail1 -f c:\imail\sniffer\logs\sniffupld.txt -s "Sniffer log
upload on %COMPUTERNAME%" -t [EMAIL PROTECTED] -u sniffer -h yourdomain.net

echo Confirmation emailed!

del c:\imail\sniffer\logs\sniffupld.txt

:Done



-- 
Kirk Mitchell-General Manager[EMAIL PROTECTED]
Keystone Connect Unlock Your World
Altoona, PA  814-941-5000   http://www.keyconn.net



#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[sniffer] Re: Uploading problems

2006-12-08 Thread K Mitchell
At 09:35 PM 12/8/2006 -0500, K Mitchell wrote:
>At 02:11 AM 12/9/2006 -, Serge wrote:
>>Hi Pete & all
>>
>>after >> 200 PORT command successful. Consider using PASV.
>>I am getting
>>425 connection failed
>>
>>Is this another FW issue ?
>>
>>would you please share the batch & script you use with wput to upload logs 
>>on pasv mode

Forgot to add in my previous post; I used the wputrc file included with
wput to make a wput.ini file in which I specified PASV

;connection_mode = pasv




-- 
Kirk Mitchell-General Manager[EMAIL PROTECTED]
Keystone Connect Unlock Your World
Altoona, PA  814-941-5000   http://www.keyconn.net



#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[sniffer] Re: Uploading problems

2006-12-08 Thread K Mitchell
At 02:11 AM 12/9/2006 -, Serge wrote:
>Hi Pete & all
>
>after >> 200 PORT command successful. Consider using PASV.
>I am getting
>425 connection failed
>
>Is this another FW issue ?
>
>would you please share the batch & script you use with wput to upload logs 
>on pasv mode

  I've just finished putting mine all together. Each of the components have
been tested individually, tonight shortly after midnight will be the first
test of it in it's entirety. In the way of explanation, here's what I'm
doing each night shortly after midnight:

- moving the current logfile to a subfolder, thus rotating the logfiles
- renaming the file to add the date -this uses the Namedate utility I found
at http://www.informatics-consulting.de/software/namedate.htm
- uploading the file
- moving the file to yet another subfolder -this is because the upload
script uses * to cover the date variable, so it wouldn't be good to have 2
or more dated files in the same folder
- sending myself an email confirming that the process has completed
successfully

** I'd be happy to hear comments or tips if anyone has any.

THE CMD FILE(located in c:\imail\sniffer\logs):

@echo off

c:
cd c:\imail\sniffer
move c:\imail\sniffer\licenseID.log logs

cd c:\imail\sniffer\logs

namedate /UYO-1Z:"ymd" "licenseID.log"

echo Log dated! >> sniffupld.txt

wput -nd licenseID_*.log ftp://snifferlog:[EMAIL PROTECTED]

echo Log upload completed! >> sniffupld.txt

move c:\imail\sniffer\logs\licenseID_*.log sent

echo Log moved to Sent folder! >> sniffupld.txt

c:\imail\imail1 -f c:\imail\sniffer\logs\sniffupld.txt -s "Sniffer log
upload on %COMPUTERNAME%" -t [EMAIL PROTECTED] -u sniffer -h yourdomain.net

echo Confirmation emailed!

del c:\imail\sniffer\logs\sniffupld.txt

:Done


  This is all in a upload.cmd file I'l set to run shortly after midnight
via Task Scheduler.
*NOTE: The Namedate command includes the variable O-1 which makes the name
1 day before the current date. I did this so the logfile name reflects the
actual day the log covers.



-- 
Kirk Mitchell-General Manager[EMAIL PROTECTED]
Keystone Connect Unlock Your World
Altoona, PA  814-941-5000   http://www.keyconn.net



#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[sniffer] Re: Uploading problems

2006-12-08 Thread Serge

Hi Pete & all

after >> 200 PORT command successful. Consider using PASV.
I am getting
425 connection failed

Is this another FW issue ?

would you please share the batch & script you use with wput to upload logs 
on pasv mode


TIA

- Original Message - 
From: "Pete McNeil" <[EMAIL PROTECTED]>

To: "Message Sniffer Community" 
Sent: Friday, December 08, 2006 3:22 AM
Subject: [sniffer] Re: Uploading problems



Hello K,

Thursday, December 7, 2006, 9:32:27 PM, you wrote:



  Since my FTP program hasn't seemed to be able to get log files 
uploaded,

I tried uploading via the command prompt on my mail server...


ftp>> open ftp.sortmonster.net

Connected to www.sortmonster.net.
220 Hello.
User (www.sortmonster.net:(none)):
331 Please specify the password.



230 Login successful.

ftp>>
ftp>> bin

200 Switching to Binary mode.

ftp>> hash

Hash mark printing On  ftp: (2048 bytes/hash mark) .

ftp>> send mylogfile061203.log

200 PORT command successful. Consider using PASV.
150 Ok to send data.


  At this point it just hangs, no transfer occurring. In the event that 
it
might be transferring but not displaying the hash marks, I left it sit 
for

over 30 minutes(10mb logfile)...nothing. I'm not sure what else to try.


What you've described usually goes along with a firewall problem.
Firewalls and FTP are always a challenge. What seems to be happening
is that the command channel is working fine, but when it's time to set
up the data channel that fails- and so you don't get any data.

You might try using PASV mode so you don't have to open up your
firewall too much. I think that SFTP also works on this box though
I've not tried it personally.

We have approximately 130 systems uploading log files, so I'm sure the
server side is working ok.

_M

--
Pete McNeil
Chief Scientist,
Arm Research Labs, LLC.


#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>







#
This message is sent to you because you are subscribed to
 the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>



[sniffer] Re: Uploading problems

2006-12-08 Thread K Mitchell
At 01:51 AM 12/8/2006 -0500, Matt wrote:
>Try WPUT
> 
>http://sourceforge.net/projects/wput/

Got that working, thanks.


-- 
Kirk Mitchell-General Manager[EMAIL PROTECTED]
Keystone Connect Unlock Your World
Altoona, PA  814-941-5000   http://www.keyconn.net



#
This message is sent to you because you are subscribed to
  the mailing list .
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>