Hi Guys,
Any method to just connect a windows machine if you know the login and password and copy a file to local machine. there should not be any change on other servers....
Having a task in hand like this...
Copy log files from various customers boxes (all windows) with the help of WHS windows host scripting.
Now Zip those files
copy those files to a particular location on a Linux box (it requires creating directory for each server and copying file)
a parm file which stores all data to connect a machine.
Now this is what i know:
I got a command line zip utility to zip the files.
using PSCP utility to transfer files to linux box.
Don't know hot to connect to various windows servers through PSCP while using it's giving error like this...
command 1:
pscp monitoring/pheda@192.168.169.80:"\\192.168.169.80\Reports\AIdetails.rdf" .
Error Message:
Fatal:Local to local copy not supported
command 2:
pscp pheda@192.168.169.80:"\\192.168.169.80\Reports\AIdetails.rdf" .
Error Message:
Fatal:ssh_init: Connection refused
the same type of command is working tom get files from Linux box.
Here I don't know whether PSCP support connecting windows servers
I can't use ftp as it may be not supported
I can't use netuse mapping as mapping should not be done
I can't use telnet as it may be not supported
I have to do this connectivity through command line I mean through scripting only.
Thanks..Prakash
Any method to just connect a windows machine if you know the login and password and copy a file to local machine. there should not be any change on other servers....
Having a task in hand like this...
Copy log files from various customers boxes (all windows) with the help of WHS windows host scripting.
Now Zip those files
copy those files to a particular location on a Linux box (it requires creating directory for each server and copying file)
a parm file which stores all data to connect a machine.
Now this is what i know:
I got a command line zip utility to zip the files.
using PSCP utility to transfer files to linux box.
Don't know hot to connect to various windows servers through PSCP while using it's giving error like this...
command 1:
pscp monitoring/pheda@192.168.169.80:"\\192.168.169.80\Reports\AIdetails.rdf" .
Error Message:
Fatal:Local to local copy not supported
command 2:
pscp pheda@192.168.169.80:"\\192.168.169.80\Reports\AIdetails.rdf" .
Error Message:
Fatal:ssh_init: Connection refused
the same type of command is working tom get files from Linux box.
Here I don't know whether PSCP support connecting windows servers
I can't use ftp as it may be not supported
I can't use netuse mapping as mapping should not be done
I can't use telnet as it may be not supported
I have to do this connectivity through command line I mean through scripting only.
Thanks..Prakash