Hi Everyone,
Does anyone know if can access
/etc/environment from SNAP file
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
gull04
December 12, 2016, 2:49am
2
Hi,
The "snap" files that I have seen tended to be written using pax
so you could try;
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
Thanks gull04,
but which file inside SNAP contains /etc/environment or timezone details ?
gull04
December 12, 2016, 8:54am
4
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;
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.
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
.
cat filename.aaa filename.aab filename.aac filename.aad | pax
Regards
Gull04
I found it
it is under
/tmp/ibmsupt/general> general.snap
this file is there regardless of
snap -a
or
snap -g