How to Check Whether Core File complete or truncated


 
Thread Tools Search this Thread
Operating Systems AIX How to Check Whether Core File complete or truncated
# 1  
Old 04-21-2006
Error How to Check Whether Core File complete or truncated

Hi
I am looking for a way to confirm whether a core File is complete or Truncated
Is there any way

from
Khan
# 2  
Old 04-21-2006
sysdumpdev -L

this will show you information on the previous dump.

-----
sysdumpdev [-P] [-p Device | -s Device]
sysdumpdev [-l | -q | -e | -z | -r Host:Path | -p Device | -s Device | -L]
sysdumpdev [-d | -D] Directory
sysdumpdev [-c | -C]
sysdumpdev [-k | -K]
sysdumpdev [-i | -I]

Change the primary and secondary dump device designations
in a running system.

-d Directory Specify the directory where the dump is copied to at
boot time. If the copy fails the system continues to boot.
-D Directory Specify the directory where the dump is copied to at
boot time. If the copy fails then a menu is displayed to
allow user to copy the dump.
-e Estimate the size of the dump (in bytes) for the
current running system.
-k Requires the key mode switch to be in the service
position before a dump can be forced with the reset
button or the dump key sequences.
-K The reset button or the dump key sequences will force
a dump with the key in the normal position, or on a
machine without a key mode switch.
-l List the current dump device designations.
-L Display statistical information about the previous dump.
-p Device Change the primary dump device to the specified
device temporarily.
-P Make the dump device specified by -p or -s flags permanent.
Can only be used with -p or -s flags.
-q Suppress any error messages that are written
to stdout.
-r Host:Path Free the space used by the remote dump file.
-s Device Change the secondary dump device to the specified
device temporarily.
-z Write out to stdout the string containing the size
of the dump in bytes and the name of the dump device
if a new dump is present.
-c Turns OFF compression for next dump.
-C Turns ON compression for next dump.
-i Indicates that sysdumpdev was called from an IBM function.
-I Resets the indications of -i option.

If no flag is specified, the permanent dump device designations are used.
# 3  
Old 04-22-2006
But i think sysdumpdev requires root privilges and it gives information about previous dump.
Actually i get core file from customers and before i start my investigation i need to make sure that core file is complete and not truncated.
On solaris i use the following method to check core file
% elfdump -p core | tail -5
Program Header[13]:
p_vaddr: 0xffbf8000 p_flags: [ PF_X PF_W PF_R ]
p_paddr: 0 p_type: [ PT_LOAD ]
p_filesz: 0x8000 p_memsz: 0x8000
p_offset: 0x71a24 p_align: 0
% ls -la core
-rw------- 1 joeuser staff 498212 Jun 4 14:04 core

# add the <filesz> field and the <offset> field of the
# last program header segment to find the total expected
# size of the core file. See if that number matches
# the size shown by the ls command.

% dbx -c "print 0x8000 + 0x71A24 ; quit"
dbx: warning: unknown language, 'ansic' assumed
0x8000+0x71a24 = 498212

# The result matches, so this is a complete core file.



is there anything equvivalent to above method

from
khan
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unix Scripting : Sort a Portion of a File and not the complete file

Need to sort a portion of a file in a Alphabetical Order. Example : The user adam is not sorted and the user should get sorted. I don't want the complete file to get sorted. Currently All_users.txt contains the following lines. ############## # ARS USERS ############## mike, Mike... (6 Replies)
Discussion started by: evrurs
6 Replies

2. Shell Programming and Scripting

How to find complete file names in UNIX if i know only extention of file

Suppose I have a file which contains other file names with some extention . text file containt gdsds sd8ef g/f/temp_temp.sum yyeta t/unix.sum ghfp hrwer h/y/test.text.dat if then.... I want to get the complete file names, like for above file I should get output as temp_temp.sum... (4 Replies)
Discussion started by: panchal
4 Replies

3. Shell Programming and Scripting

KSH - Text from input file truncated while converting it to excel

Dear Members, I am using the attached script to convert a input file delimited by '|' to excel. However, while processing the attribute change_reason, the whole content of the text under change_reason is not displayed completely in the cell in excel. It is truncated after only first few words.... (1 Reply)
Discussion started by: Yoodit
1 Replies

4. UNIX for Dummies Questions & Answers

SFTP script - poll every min to check file complete before transfering

Hello, Before I do a GET remote file, I need to ensure the remote file is a complete file i.e. whatever process is saving the file to the remote folder should complete the transfer before I go GET it through my script. So I'm thinking I need to poll the remote file every minute or so to... (4 Replies)
Discussion started by: srineel
4 Replies

5. UNIX for Dummies Questions & Answers

File gets truncated

Hi Guys, I have a master script file. That calls the other script files. The sub script files append some of the data to the log file. Once the master script completes one sub script execution and returns to execute other sub script that appends to the same log file. the log file gets... (2 Replies)
Discussion started by: Swapna173
2 Replies

6. UNIX for Dummies Questions & Answers

BASH complete-filename & menu-complete together

Hi, Does anyone know how to make BASH provide a list of possible completions on the first tab, and then start cycling through the possibilites on the next tab? Right now this is what I have in my .bashrc: bind "set show-all-if-ambiguous on" bind \\C-o:menu-complete This allows... (0 Replies)
Discussion started by: Mithu
0 Replies

7. Shell Programming and Scripting

File gets truncated after using sed

May be this is a known issue. When I am using sed to change a string (globally) in multiple files, it is doing its job while truncating the file. So the xml files are losing some of the tags Any work around? Appreciate your help guys...... Here is the code..... #!/bin/sh for files in... (2 Replies)
Discussion started by: corleone
2 Replies

8. HP-UX

How to Check Whether Core File complete or truncated

hi I have a core file from customer and i am looking for a way to know whether its complete or truncated? I have a procedure to check core file on solaris , is there any way to know whether core is truncated on HP-UX? from khan (1 Reply)
Discussion started by: khan_069
1 Replies

9. Filesystems, Disks and Memory

some process writin file - check if complete

Hi folks... some process is writing a file.... as soon as the process starts the file comes there, and its growin.. now i in another script want to ftp the file. i don't know if the file is complete or not. the process which writes the file is some other application and hence can't... (0 Replies)
Discussion started by: sade
0 Replies
Login or Register to Ask a Question