• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[solved] cediag -L ist unter Solaris 10 obsolet geworden

byron1778

Hacker
Hallo Forum,

der Befehl cediag -L soll in Solaris 10 nicht mehr verwendet werden und durch fmadm ersetzt werden.
Leider gibt es aber keine einzige Funktion, die genauso funktioniert wie cediag -L, mit der man fehlerhafte Memories auslesen kann.

Weiss jemand vielleicht einen anderen Befehl mit dem man cediag -L ersetzen kann?

Danke vielmals.

MfG
Bernd Roth
 

regexer

Advanced Hacker
byron1778 schrieb:
der Befehl cediag -L soll in Solaris 10 nicht mehr verwendet werden
Das kann ich erstmal auf unserer Solaris-Kiste nachvollziehen.
Code:
$ type cediag
cediag not found
$ man cediag
No manual entry for cediag.
und durch fmadm ersetzt werden.
Leider gibt es aber keine einzige Funktion, die genauso funktioniert wie cediag -L, mit der man fehlerhafte Memories auslesen kann.
Ich habe bisher weder fmadm noch cediag verwendet. Hast du vielleicht mal eine alte Beispielausgabe, was ungefähr gemeint ist und welche Angabe du im speziellen brauchst?
 
OP
B

byron1778

Hacker
Hallo,

wir verwenden nur zur Erläuterung Sparc - Maschinen mit folgendem OS:

SunOS xxxx 5.10 Generic_125100-05 sun4u sparc SUNW,Sun-Fire-V440

die man - Page ergibt folgendes von cediag -L:

NAME
cediag - Diagnoses system memory errors

SYNOPSIS
cediag [-L] [-I events] [-l debug_file] [-M {d|e}] [-s C:H]
[-v]

cediag -F [-L] [-I events] [-l debug_file] [-M {d|e}] [-s
C:H] [-v]

cediag -e explorer_directory [-I events] [-l debug_file] [-M
{d|e}] [-s C:H] [-v]

cediag -c SunOS,hostname,version,arch -k KUP-rev -u US-
version [-I events] [-l debug_file] [-M {d|e}] [-s C:H] [-v]
messages_file...

cediag -A

cediag -V

cediag -h

DESCRIPTION
cediag(1M) is a tool which analyzes memory error events and
makes DIMM replacement recommendations based upon the DIMM
Replacement Policy rules.

cediag is a perl script and, as such, requires that perl be
installed. Sun provides perl in the SUNWpl5u and SUNWpl5v
packages in Solaris 8 and later. For Solaris versions 7 and
earlier, perl version 5 or later must be obtained from a 3rd
party source. The cediag installation includes the symbolic
link /opt/SUNWcest/bin/perl which points to /usr/bin/perl.
If you cannot install the correct version of perl as
/usr/bin/perl, you can replace this link with a link to the
location of your perl installation.

When cediag is run with the first or second usage, it
analyzes information from the system on which it is running
to determine whether any DIMMs should be considered for
replacement. These usages are considered "live" mode. When
the -L option is specified in "live" mode, cediag appends
its analysis summary and recommended actions, including a
suggested timeframe for replacement if appropriate, to the
/var/adm/messages file. The output placed in /var/adm/messages is formatted to allow parsing by automated
monitoring tools. When run with the second usage, cediag
performs a full historical analysis on the system while the
first usage analyzes the currently running instance of
Solaris.

SunOS 5.9 Last change: 15 November 2004 1

System Administration cediag(1M)

In the third and fourth usage formats, cediag runs in "stan-
dalone" mode. In this mode cediag analyzes log and messages
files collected from a remote system. In the second usage,
an uncompressed, extracted explorer output is provided for
analysis. cediag ascertains the configuration of the remote
system from various files in the explorer output and then
analyzes the memory errors from the /var/adm/messages files
in the explorer output. In the third usage, the user must
specify, via command line arguments, the configuration of
the system to be analyzed so that cediag can apply the
appropriate rules to the messages file(s), which is(are)
also supplied on the command line.

It is important to note that cediag is dependent on the CE
messages from Solaris to function properly. If CE messages
are disabled in your /etc/system file by setting the vari-
able ce_verbose_memory (or ce_verbose in older versions of
Solaris) to 0, then cediag will not provide accurate results
in "standalone" mode or in "live" mode for some versions of
Solaris. In those situation where cediag actually finds
ce_verbose_memory has been set to 0 in /etc/system, it will
give a warning message indicating some rule analysis results
may not be accurate.

The fifth usage of cediag displays whether the user has pre-
viously run the tool and correctly accepted the license. In
this usage, cediag exits with zero (0) if the license has
been accepted and with one (1) otherwise.

The sixth usage of cediag displays the version of the tool
and exits.

The last usage of cediag displays the help and usage message
for the tool and exits.

cediag supports Solaris 2.6 and later on UltraSPARC II,
UltraSPARC III, and UltraSPARC IV architecture systems. On
Solaris 10, except on UltraSPARC II-based systems, cediag
instructs the user to utilize the Predictive Self-Healing
features of the Operating System, such as fmadm(1M), for
memory system diagnosis.

For best results, cediag should be run on a daily basis to
analyze any system memory errors. cron(1M) can be used for
this purpose.

OPTIONS
The following options are supported.

-c SunOS,hostnameoversionDarchibe the hardware and software
configuration of the system which generated
the messages_file file(s). SunOS is a

SunOS 5.9 Last change: 15 November 2004 2

System Administration cediag(1M)

literal string. Only messages produced by
the host named (case sensitive) hostname
will be analyzed by cediag. version is the
output of 'uname -r'. arch is the output of
'uname -p'.

-e explorer_directoryrer. Specifies the location of an
uncompressed, extracted explorer against
which cediag is to apply the DIMM Policy
rules. cediag uses the system configuration
information and /var/adm/messages file(s)
from the explorer to analyze the CEs exhi-
bited by the system.

-F Full History. When this option is speci-
fied, cediag analyzes all available messages
files on the current system and provides a
summary for every reboot of Solaris found.

-h Display tool help and usage and exit.

-I events Ignore events. At this time, events is lim-
ited to the letter 'r'. This prevents
cediag from resetting its accumulated CE
counts when it encounters a reboot in its
parsing.

-k KUP-rev Kernel Update Revision. This option speci-
fies which kernel update patch was installed
and running on the system which generated
the messages_file file(s). KUP is the
number of the Kernel Update Patch. rev is
the revision number of that Kernel Update
Patch.

-L Logging. Direct cediag to log its findings
and advice to the /var/adm/messages via
logger(1). Logging is off by default.

SunOS 5.9 Last change: 15 November 2004 3

System Administration cediag(1M)

-l debug_file Logfile. Specify the file debug_file to
contain any text debugging information writ-
ten by cediag.

-M {d|e} Memory Page Retire (MPR) override. This
option applies to both "live" and "stan-
dalone" modes. When analyzing a system,
cediag must determine whether MPR is in use
on that system before it can apply the
appropriate policy rules. Though cediag
normally makes this determination automati-
cally, the -M option is provided to force
cediag to treat the system as if MPR were
enabled (with the e argument) or disabled
(with the d argument). Note the -M option
has no effect if cestat(1M) output is valid
or if cediag is analyzing messages from or a
system running Solaris 7 or earlier, Solaris
8 with patch 108528-23 or earlier, or
Solaris 9 with patch 112233-10 or earlier.

-s C:H Adjust Rule#6 to C CEs in H Hours.

-u US-version UltraSPARC chip version. Where US-version is
'1' for UltraSPARC I, '2' for UltraSPARC II,
'2e' for UltraSPARC IIe, '2i' for UltraSPARC
IIi, '3' for UltraSPARC III, '3i' for
UltraSPARC IIIi, '3+' for UltraSPARC III+
and '4' for UltraSPARC IV. Some Solaris
messages differ from one chip version to the
next. This option informs cediag what type
of chip generated the messages being
analyzed.

-V Version. Print the version of cediag and
exit.
-v Verbose. Print all CE statistics details.
Verbose is off by default.

SunOS 5.9 Last change: 15 November 2004 4

System Administration cediag(1M)

OPERANDS
The following operands are supported:

messages_file Pathname to a /var/adm/messages file. Be
sure to specify files in ascending date
order.

EXTENDED DESCRIPTION
User Privileges Required
cediag can be run without superuser privileges. However, in
"live" mode cediag should be run with superuser privileges
for better performance on MPR systems.

EXAMPLES
Example 1: Analyze a live system

# cediag -v
cediag: Revision: 1.74 @ 2005/02/04 07:15:53 UTC
cediag: info: cediag directory: /opt/SUNWcest/bin
cediag: info: UltraSPARC Version: 2 (2e)
cediag: info: OS Type: SunOS
cediag: info: OS Version: 5.9
cediag: info: Hostname: mysys
cediag: info: Memory size: 131008 (8KB pages)
cediag: info: MPR PRL pages: 124 (8KB pages)
cediag: info: MPR-capable OS: true
cediag: info: KJP: 117171-05
cediag: info: MPR-aware kernel in-use: true
cediag: info: MPR enabled: true
cediag: info: MPR disabled in /etc/system: n/a
cediag: info: MPR force mode: n/a
cediag: info: MPR state: active
cediag: info: Rule#3 check: true
cediag: info: Rule#4 check: true
cediag: info: Rule#5 check: false
cediag: info: Rule#5 check via cestat: true
cediag: info: Rule#6 check: false
cediag: Pages Retired: 0 (0.00%)

cediag: findings: 0 datapath fault message(s) found
cediag: findings: 0 UE(s) found - there is no rule#3 match
cediag: findings: 0 DIMMs with a failure pattern matching rule#4
cediag: findings: 0 DIMMs with a failure pattern matching rule#5

Where:

Label Definition

SunOS 5.9 Last change: 15 November 2004 5

System Administration cediag(1M)

cediag directory Displays the directory in the
filesystem from which cediag was
executed.

UltraSPARC Version Displays the version of the
UltraSPARC chip in use on the system
being analyzed. See the -u option.

OS Type Displays the type of Operating Sys-
tem found in the uname(1) data from
the system, or specified by the -c
flag.

OS Version Displays the version of the Operat-
ing System found in the uname(1)
data from the system, or specified
by the -c flag.

Hostname Displays the hostname found in the
uname-a.out file in explorer mode,
output by the "uname -a" command in
"live" mode, or entered on the
cediag command line with the -c
flag.

Memory size Displays the amount of memory found
in the system as determined from
prtconf output. This will only
display a meaningful value when
cediag is run with the -e flag or in
"live" mode.

MPR PRL pages This value defaults to 0.1% of the
Memory size.

SunOS 5.9 Last change: 15 November 2004 6

etc.

Wenn ich mail in der Konsole eingebe, erscheint mir folgendes:

Your "cron" job on xxx
/opt/SUNWcest/bin/cediag -L >/dev/null # SUNWcest

produced the following output:

suicide@cediag: Please use fmadm(1M) on Solaris 10 (or higher).
suicide@cediag: exiting ...

Sorry für den langen Text, aber nachdem Du die man - Page nicht hattest, dachte ich mir ich poste sie auch hinein!

MfG
Byron
 

regexer

Advanced Hacker
byron1778 schrieb:
When
the -L option is specified in "live" mode, cediag appends
its analysis summary and recommended actions, including a
suggested timeframe for replacement if appropriate, to the
/var/adm/messages file. The output placed in /var/adm/messages is formatted to allow parsing by automated
monitoring tools.
Darf ich raten? Du verwendet ein solches "automated monitoring tool"! Ansonsten würde der crontab-Eintrag nicht viel Sinn machen.

Aber wie auch immer: Ohne jetzt dein Problem genau zu kennen, würde ich mir zusätzlich die manpages zu fmd, fmdump und fmstat ansehen.
fmadm - fault management configuration tool
fmd - fault manager daemon
fmdump - fault management log viewer
fmstat - report fault management module statistics
Mit Parametern lässt sich die Ausgabe von fmstat ziemlich genau konfigurieren. Vielleicht kann man damit cediag nachempfinden bzw. das vermutete "automated monitoring tool" überflüssig machen...

Sorry, dass ich keine genauere Antwort geben kann. Hoffe trotzdem, dass es hilft ...
 

regexer

Advanced Hacker
byron1778 schrieb:
cediag is a perl script and, as such, requires that perl be
installed.
Ähm, was mir jetzt erst auffällt: Kann es sein, dass dieses cediag ein Fremdprodukt ist und gar nicht standardmäßig zur Solaris-9-Installation gehört? Abgesehen davon könnte man ja einfach mal in dieses Perl-Script reingucken...
 
OP
B

byron1778

Hacker
Hallo an Alle,

danke Euch vielmals.

cediag ist glaube ich kein Fremdprodukt, es wird über die man - Pages ausgegeben.
Lt. Man Pages dazu, soll man fmadm verwenden.
Wie ich jetzt erfahren habe, schreibt dieser aber auch in die log - messages, speziell in /var/sadm/messages.

Danke Euch allen

MfG
Byron
 

regexer

Advanced Hacker
byron1778 schrieb:
cediag ist glaube ich kein Fremdprodukt, es wird über die man - Pages ausgegeben.
... was ja kein Beweis ist für Sun-Software ist. :wink:

Ich habe versucht, ein bisschen nach cediag zu googeln. Man findet deine Frage in Verbindung mit solaris 10 sehr oft. Auch einen Hinweis, dass es bei der Standard-Installation von älteren Solaris nicht dabei ist, habe ich gefunden.

Schade, dass ich kein Solaris 9 mehr im Zugriff habe. Naja, scheint sich auch so geklärt zu haben.
 
OP
B

byron1778

Hacker
Ich dachte mir immer, dass die man - pages ein "internes" Produkt von Unix sind.
Ist es dann auch möglich selber ein Programm zu schreiben und dieses dann in die man - Pages aufzunehmen?

I.e. durch den Aufruf man "eigenes-script" erhält man seine eigene man - Page dann?

MfG
Byron
 

admine

Ultimate Guru
byron1778 schrieb:
I.e. durch den Aufruf man "eigenes-script" erhält man seine eigene man - Page dann?
Wenn dein Script/Programm Man-Pages hat und diese installiert und im richtigen Pfad bzw. der Pfad in $MANPATH aufgenommen sind - ja ;)
 
A

Anonymous

Gast
Keine Ahnung was du genau sehen willst :?:

Versuch mal
Code:
netstat -k SECC0
bei größeren Servern eventuel noch mit einer Pipe hinterher. Ich arbeite zwar mit Servern eines anderen Hardwareherstellers, vermute aber der sollte auf einer SUN Büchse auch was vernünftiges anzeigen.

PS: von mir habt ihr diesen Befehl aber nicht.
Ansonsten man kstat und dann durchwursteln :wink:

robi
 

oc2pus

Ultimate Guru
du kannst di eauch aus plain-text erstellen, bzw. aus der Ausgabe von PROGRAMM -help ...

http://mvertes.free.fr/

txt2man
Txt2man converts flat ASCII text to man page format. It is a shell script using gnu awk, that should run on any Unix like system.
 
Oben