How to get data from SNAP file?


 
Thread Tools Search this Thread
Operating Systems AIX How to get data from SNAP file?
# 1  
Old 12-11-2016
How to get data from SNAP file?

Hi Everyone,

Does anyone know if can access
  1. /etc/environment from SNAP file
  2. to check the time zone from the snap file

Objective:
The timezone on the server was changed by someone to another timezone, so I want to check what is the old timezone was ?
I have an old SNAP file.

Does anyone if it stores Timezone in the snapfile and/or if the old timezone is stored somewhere in the AIX OS files ?

Thanks

Last edited by rbatte1; 12-12-2016 at 09:31 AM.. Reason: Converted textual list to number-formatted list
# 2  
Old 12-12-2016
Hi,

The "snap" files that I have seen tended to be written using pax so you could try;

Code:
pax < filename

The above should list the contents of the file, if you run pax -r < filename it should extract in the current directory.

Regards

Gull04
# 3  
Old 12-12-2016
Thanks gull04,
but which file inside SNAP contains /etc/environment or timezone details ?
# 4  
Old 12-12-2016
Hi,

The TZ variable is usually set in the /etc/environment file, I would imagine that this is held in the first part of the file however;

When you look at the snap file what do you see when you run;

Code:
pax < filename

The snap utility can be run with a number of switches, one of these invokes split if this has been done you should see a number of files like below.

Code:
filename.aaa
filename.aab
filename.aac
filename.aad

In order to read these it may be necessary to use cat to concatenate the files and the pipe the output to pax.

Code:
cat filename.aaa filename.aab filename.aac filename.aad | pax

Regards

Gull04

Last edited by gull04; 12-12-2016 at 09:57 AM.. Reason: Additional Information
# 5  
Old 12-12-2016
I found it
it is under

Code:
/tmp/ibmsupt/general> general.snap

this file is there regardless of
Code:
snap -a

or
Code:
snap -g

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Ubuntu

Ubuntu snap deduplication

Hi, I think the ubuntu snap is great idea. However the fact that it may contain duplications has two disadvantages. 1) eating more space in the storage. 2) eating more space in the internal memory (RAM), it will load the same library more than once to the memory. Now the solution for this is... (0 Replies)
Discussion started by: programAngel
0 Replies

2. Shell Programming and Scripting

Extract header data from one file and combine it with data from another file

Hi, Great minds, I have some files, in fact header files, of CTD profiler, I tried a lot C programming, could not get output as I was expected, because my programming skills are very poor, finally, joined unix forum with the hope that, I may get what I want, from you people, Here I have attached... (17 Replies)
Discussion started by: nex_asp
17 Replies

3. UNIX for Dummies Questions & Answers

Mapping a data in a file and delete line in source file if data does not exist.

Hi Guys, Please help me with my problem here: I have a source file: 1212 23232 343434 ASAS1 4 3212 23232 343434 ASAS2 4 3234 23232 343434 QWQW1 4 1134 23232 343434 QWQW2 4 3212 23232 343434 QWQW3 4 and a mapping... (4 Replies)
Discussion started by: kokoro
4 Replies

4. AIX

Unable to execute snap command

Hi Friends, I am not able to execute snap -a command in AIX 6 system. Could you please let me know how to make work this command and Path to be set. Thanks in Advance Siva. (4 Replies)
Discussion started by: sivakumarl
4 Replies

5. Red Hat

SNAP EDR issue.

Hi, Does anybody use Enterprise Data Replicator for Network Attached Storage replication. If you do, Do you get the following message in replication logs. "Replication Source file agent No heart beats from the remote target agent on snap01 for 300 seconds: Assuming connection failure" ... (1 Reply)
Discussion started by: uxadmin007
1 Replies

6. UNIX for Dummies Questions & Answers

snap file for other system?

Hi all For AIX we can snap -gc gather the info how abt other systems is solaris and linux? thanks in advance jiajin (0 Replies)
Discussion started by: lijiajin
0 Replies

7. AIX

script which take a snap shot of Topas

can any one give me a script which take a snap shot of Topas at a fix interval of 15min and save it in a perticular file!!!!!!!! (6 Replies)
Discussion started by: abhishek27
6 Replies

8. UNIX for Dummies Questions & Answers

dump .snap question

When using dump, a .snap directory is created in the partition being dumped. I have searched for the reason this directory is created but haven't found any information on its purpose. I have monitored the .snap directory during a dump and I have never seen any files appear in during the dump so... (3 Replies)
Discussion started by: thumper
3 Replies
Login or Register to Ask a Question