The core dump configuration for your system is:
A user is running a process in the global zone and the process crashes. The process information is:
User1 2663 2618 0 17:46:42 pts/2 0:00 /usr/bin/bash
The server host name is: zeus
What will the per-process core file be named?
A.
core.bash.2663.global
B.
core.bash.2663.zeus
C.
/var/core/core.bash.2663
D.
/var/core/core.bash.2663.global
Explanation:
Note the first line:
global core file pattern: /globalcore/core.%f.%p
The program name is bash
The runtime process ID is 2663
Note: By default, the global core dump is disabled. You need to use the coreadm command with
the -e global option to enable it. The -g option causes the command to append the program
name(%f) and the runtime process ID (%p) to the core file name.
Reference: Core Dump Management on the Solaris OS
A
I also go with A option.
Very tricky question…
man coreadm
%f
Executable file name, up to a maximum of MAXCOMLEN char-
acters
%p
Process-ID
%z
Name of the zone in which process executed (zonename)
In the config, global core dump logging is disabled.
why is the answer A and not C?
a user is running a process in the global zone –
and the global core file pattern is /var/core/core.%f.%p …
if there would be an error in the zones, the patern is core.%f.%p.%z .
So i agree with tugz –
i think it’s C.
C
Note the first line:
global core file pattern: /globalcore/core.%f.%p
The program name is bash
The runtime process ID is 2663
Note: By default, the global core dump is disabled. You need to use the coreadm command with
the -e global option to enable it. The -g option causes the command to append the program
name(%f) and the runtime process ID (%p) to the core file name.
Reference: Core Dump Management on the Solaris OS
[A] is the correct answer:
Question was about “What will be the per process core file be named?”
You set the per process core name with the coreadm -i which in this case will be:
init core file pattern: core.%f.%p.%z
So the name will be: core.bash.2663.global, in the actual working directory. However there will be also a globe core file generated in the /var/core, with the name: core.bash.2663
I also tested it:
jack@sol11-ai:~$ ps -ef | grep bash
jack 17216 17210 0 19:25:45 pts/1 0:00 bash
jack 17210 17198 0 19:25:17 pts/1 0:00 bash
root 5302 5146 0 18:52:30 pts/1 0:00 -bash
jack 17198 17192 0 19:24:01 pts/1 0:00 bash
jack@sol11-ai:~$ kill -6 17210
Abort (core dumped)
jack@sol11-ai:~$ ls -l
total 21529
-rw——- 1 jack staff 10887328 Apr 27 19:25 core.bash.17210.global
-rw-r–r– 1 jack staff 166 Apr 23 15:31 local.cshrc
-rw-r–r– 1 jack staff 170 Apr 23 15:31 local.login
-rw-r–r– 1 jack staff 131 Apr 23 15:31 local.profile
-rwxr-xr-x 1 jack staff 22 Apr 23 15:32 useradd
jack@sol11-ai:~$ pwd
/export/home/jack
jack@sol11-ai:~$ ls -l /var/core/
total 70200
-rw——- 1 root root 10887328 Apr 27 19:26 core.bash.17210
root@sol11-ai:/system/zones# coreadm
global core file pattern: /var/core/core.%f.%p
global core file content: default
init core file pattern: core.%f.%p.%z
init core file content: default
global core dumps: enabled
per-process core dumps: enabled
global setid core dumps: enabled
per-process setid core dumps: enabled
global core dump logging: disabled
A…
%f:Executable file name, up to a maximum of MAXCOMLEN characters
%p: Process ID
%z:Name of the zone in which process is executed (zonename)
Passed 1Z0-821 exam with a good score of 90% (the passing line is 64% now)!
Got 70 questions in total, and questions were on:
1. Installing Oracle Solaris 11 using an Interactive Installer
2. Administering Services
3. Setting Up and Administering Data Storage
4. Administering Oracle Solaris Zones
5. Setting Up and Administering User Accounts
6. Controlling Access to Systems and Files
(New) 7. Managing the SYSLOG facilityManaging the CRON facility
(New) 8. Managing the SYSLOG facility
Pay attention to the up 7 & 8 topics when preparing for the 1Z0-821 exam. Questions on those two topics are not available on this site.
And, you can refer to the most valid 1Z0-821 dumps (2017 version) here:
http://www.oraclebraindump.com/?s=1Z0-821
(Those questions are part of PassLeader 1Z0-821 dumps, recommend to get its full version 1Z0-821 dumps with VCE and PDF.)
Good Luck!
What’s more, part of PassLeader 1Z0-822 dumps are also available here for your reference:
http://www.oraclebraindump.com/?s=1Z0-822
Best Regards!!!