- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Error in lseek and ioctl
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
09-12-2012 07:14 PM
09-12-2012 07:14 PM
Hi Team,
In our scenario we have 200+ linux servers. We are collecting the logs from all these 200+ linux servers to one hpunix machine. We are doing this activity using crontab and enabled passwordless ssh from hpunix machine to all these linux servers so that we can do scp.
But for some of those machines we are not able collect logs . I installed tusc and tracked the process, I got below errors from the tusc output for some linux machines
lseek(3, 0, SEEK_CUR) .................................................................................................................. ERR#29 ESPIPE
ioctl(3, TCGETATTR, 0x40003960) ........................................................................................................ ERR#25 ENOTTY
I am able to do passwordless ssh to these linux servers and able to copy those logs manually using scp also. Could you please help me out on this.
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2012 08:40 PM - edited 09-14-2012 06:48 PM
09-12-2012 08:40 PM - edited 09-14-2012 06:48 PM
Re: Problems with crontab and scp
These are not the droids you seek. I assume these errors are ignored and it continues.
What file is opened for FD 3? Also what syscalls happens after them?
Are you using tusc on scp on HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2012 10:28 PM
09-12-2012 10:28 PM
Re: Error in lseek and ioctl
Hi Dennis,
I am attaching the full system calls genrated for one server .
We have one script fo collecting logs from all other server (Linux+ Hpunix) We put this script in crontab . What i did traced the process id of that script using tusc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2012 11:16 PM
09-12-2012 11:16 PM
Re: Error in lseek and ioctl
you should use -p -f options of tusc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2012 11:21 PM - edited 09-14-2012 06:48 PM
09-12-2012 11:21 PM - edited 09-14-2012 06:48 PM
Re: Problems with crontab and scp
>I am attaching the full system calls generated for one server.
This isn't full. And as I said, these syscall errors at the start can be ignored.
>you should use -p -f options of tusc
Also -ea to trace execv call parms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2012 11:32 PM
09-12-2012 11:32 PM
Re: Error in lseek and ioctl
Hi Dennis,
Thanks for the reply.
can i use the below syntax
tusc -p -f -ea <pid>
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2012 12:00 AM
09-13-2012 12:00 AM
Re: Error in lseek and ioctl
tusc -pfea -o /tmp/resultfile command
or
tusc -pfea -o /tmp/resultfile pid
or
tusc -pfea -o /tmp/resultfile $$ &
scp command &
kill tusc when error is seen
-p -f -e -a is the same as -pfea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2012 11:40 AM - edited 09-14-2012 06:49 PM
09-13-2012 11:40 AM - edited 09-14-2012 06:49 PM
Re: Problems with crontab and scp
>can I use the below syntax
Yes. I clump -ea together in case I want less output and want to remove both.
But for -fp, I always combine and use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2012 07:00 PM
09-13-2012 07:00 PM
Re: Error in lseek and ioctl
I got the below output from the tusc
( Attached to process 650 ("sh -c /eytools/eybin/get_linuxinfo.sh 1>/dev/null 2>&1") [32-bit] )
[650] waitpid(-1, 0x7fffe810, WUNTRACED) ............................................................................................... [sleeping]
[650] waitpid(-1, WIFEXITED(0), WUNTRACED) ............................................................................................. = 654
[650] sigvector(SIGCLD, 0x7fffe7e0, 0x7fffe7f0) ........................................................................................ = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe830, 0x7fffe850) ................................................................................. = 0
[650] sigprocmask(SIG_SETMASK, 0x7fffe850, 0x7fffe830) ................................................................................. = 0
[650] exit(0) .......................................................................................................................... WIFEXITED(0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2012 11:02 PM - edited 09-14-2012 06:49 PM
09-13-2012 11:02 PM - edited 09-14-2012 06:49 PM
Re: Problems with crontab and scp
>I got the below output from the tusc
Nothing useful there. How did you collect tusc info the first vs this time?