BladeSystem Forums Have Moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

Need to push syslog daily to another server

Regular Advisor

Need to push syslog daily to another server

[ Edited ]

Hi ,


I need to push syslog.log date wise daily on windows box thru ftp .

hpx 11i v2

Honored Contributor

Re: Need to push syslog daily to another server

Are you rotating your syslog.log daily on the HP-UX server?  If not, then your first step is to start doing that.


Which server do you want to initiate the FTP process from?  HP-UX or Windows?  If you want to FTP from HP-UX to Windows then you'll need an FTP server on your Windows box.  IIS on Windows has this functionality.


Then you'll need to write a script to initiate the FTP connection and transfer the file.


At it's most basic, something like this may work:



cd /var/adm/syslog

ftp -inv servername << EOF
user username password

put syslog.log.somedate


There may need to be some calculations for the file name if you have it named something like syslog.log.20130508 for yesterdays log.


Hopefully this will get you started.