- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to push syslog daily to another server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2013 01:11 AM - edited 05-09-2013 03:28 AM
05-09-2013 01:11 AM - edited 05-09-2013 03:28 AM
Need to push syslog daily to another server
Hi ,
I need to push syslog.log date wise daily on windows box thru ftp .
hpx 11i v2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2013 07:07 AM
05-09-2013 07:07 AM
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:
#!/usr/bin/sh
cd /var/adm/syslog
ftp -inv servername << EOF
user username password
bin
put syslog.log.somedate
bye
EOF
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.