Sponsored Content
Full Discussion: errpt not giving a result
Operating Systems AIX errpt not giving a result Post 302545081 by thecobra151 on Saturday 6th of August 2011 09:02:44 AM
Old 08-06-2011
errpt not giving a result

my system get rebooted by its self after its came up i try to check the error log

P690/>errpt | more
Cannot open error message catalog /usr/lib/nls/msg/en_US/codepoint.cat.
The error report will still run, but it will not have explanatory messages

P690/>ls -lrt /usr/lib/nls/msg/en_US/codepoint.cat
-rw-r--r-- 1 bin bin 0 Jan 20 2008 /usr/lib/nls/msg/en_US/codepoint.cat
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

errpt

Hello World, When I issue the errpt command 1581762B 0826133303 T H hdisk1 DISK OPERATION ERROR C14C511C 0826133303 T H scsi0 ADAPTER ERROR I found these two unusual errors, wat exactly do these mean ? Im on an aix box. Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies

2. UNIX for Dummies Questions & Answers

Script giving different result on Linux compared to Unix

Hi I have a script executing fine in Unix but in linux I am getting different result. I have three files under /local/home/temp/Gen test.sh list.txt shst.txt Contents of test.sh -------------------------- #!/bin/ksh K=0; SCRIPT_DIR=/local/home/temp/Gen cat... (2 Replies)
Discussion started by: malavm
2 Replies

3. AIX

errpt message

Hello I have this message from errpt command IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION BFE4C025 0803155809 P H sysplanar0 UNDETERMINED ERROR BFE4C025 0802155509 P H sysplanar0 UNDETERMINED ERROR BFE4C025 0801155209 P H sysplanar0 UNDETERMINED ERROR BFE4C025 ... (6 Replies)
Discussion started by: lo-lp-kl
6 Replies

4. Shell Programming and Scripting

My script is not giving result for 2 or more arguments

Hi, I am new to shell scripting and my below script is not giving result for 2 or more arguments. Can anyone help pls. #!/bin/sh sname=$(basename $(readlink -nf $0)) echo "This is $sname, running at $(date)" echo "It is running on $(hostname)" echo "Script being run by" echo " User... (3 Replies)
Discussion started by: baigmd
3 Replies

5. Emergency UNIX and Linux Support

errpt in AIX

The below is my code in general according to AIX books To display a detailed report of all errors logged in the past 24 hours, enter: errpt -a -s mmddhhmmyy where the mmddhhmmyy string equals the current month, day, hour, minute, and year, minus 24 hours. I have tried the... (2 Replies)
Discussion started by: Sounddappan
2 Replies

6. Programming

Test program not giving expected result

I have five classes. 2 composition classes,1 aggregation class and 1 dependency class.I have coded all the classes but one of my test program is not giving me the expected result.I have the following classes: TimeStamp Interval (composition of 2 TimeStamps) TimeSheet ( aggregation of many... (3 Replies)
Discussion started by: moraks007
3 Replies

7. Shell Programming and Scripting

Monitoring Sript giving random end result

Hi Guys, I am developing a script to monitor GUI based FileNet Component "Component Manager" which logs it's running status in a log file. Log file is a huge file so in script I put last 300 lines of log file in seperate file and run script every 5 minutes. I am searching the string... (2 Replies)
Discussion started by: dhirajdsharma
2 Replies

8. Shell Programming and Scripting

How to compare the current result with previous line result.?

Hi Gurus, I have requirement to compare current result with previous reuslt. The sample case is below. 1 job1 1 1 job2 2 1 job3 3 2 job_a1 1 2 job_a2 2 2 job_a3 3 3 job_b1 1 3 job_b2 2 for above sample file, GID is group ID, for input line, the job run... (1 Reply)
Discussion started by: ken6503
1 Replies

9. Shell Programming and Scripting

Grep command giving different result for different users for same command

Hello, I am running below command as root user #nodetool cfstats tests | grep "Memtable switch count" Memtable switch count: 12 Where as when I try to run same command as another user it gives different result. #su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Discussion started by: Pushpraj
10 Replies

10. Shell Programming and Scripting

CUT command not giving correct result inside loop

Hi, i have a source file and have 3 columns and separated by "|" .i want to split this 3 columns in different variable.When i am executing this values indivisually giving correct result but when the same execute inside a for loop,it's giving issues. Src file(jjj.txt) -------... (8 Replies)
Discussion started by: raju2016
8 Replies
catopen(3)						     Library Functions Manual							catopen(3)

NAME
catopen, NLSPATH - Opening a message catalog LIBRARY
Standard C Library (libc) SYNOPSIS
#include <nl_types.h> nl_catd catopen( const char *name, int oflag); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: catopen(): XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies the message catalog to open. Specify the constant NL_CAT_LOCALE to open the message catalog for the locale set for the LC_MES- SAGES variable; using NL_CAT_LOCALE conforms to the Issue 4 and higher issues of the XSH specification. You can specify 0 (zero) for com- patibility with XSH Issue 3; when oflag is set to zero, the locale set for the LANG variable determines the message catalog locale. DESCRIPTION
The catopen() function opens a specified message catalog and returns a catalog descriptor that is used by the catgets() function to retrieve messages from the catalog. The name parameter specifies the name of the message catalog to be opened. If name contains a / (slash), then name specifies a full path- name for the message catalog. Otherwise, the environment variable NLSPATH is used with substitutions based on the value of the name param- eter and the value of the LC_MESSAGES setting. (See the i18n_intro(5) reference page for a description of LC_MESSAGES. See the NOTES sec- tion for a restriction that applies to use of the NLSPATH variable.) NLSPATH is a colon-separated list of pathnames. The catopen() function makes variable substitutions in each pathname and attempts to open the specified catalog. If the open operation succeeds, the function returns the catalog descriptor for that catalog. If the open operation does not succeed, the function attempts to open the next pathname in the value of the NLSPATH environment variable. If NLSPATH does not exist in the environment, then the function uses the following system default for NLSPATH: /usr/lib/nls/msg/%L/%N Note that current industry standards do not specify the location of message catalogs, so application developers should consider this default to be platform specific. If no message catalog can be opened in any of the components specified by NLSPATH, then catopen() returns a value of -1 cast to (nl_catd). This is not a valid catalog descriptor and causes subsequent calls to catgets() to return a pointer to the default message string. The meaning of each variable in the NLSPATH environment variable is as follows: The value passed in the name parameter. The current locale name defined for the LC_MESSAGES category, for example, fr_BE.ISO8859-1. The language element of the current locale name, for example, fr. The territory element from the current locale name, for example, BE. The code set element from the current locale name, for example, ISO8859-1. A single % (percent sign) character. For example, assume that the catopen() function specifies a catalog with the name mycmd.cat, and the environment variables are set as fol- lows: NLSPATH=./%N:/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%l/%N LANG=fr_BE.ISO8859-1 Under these settings, the application searches for the catalog in the following order: ./mycmd.cat /usr/lib/nls/msg/fr_BE.ISO88591-1/mycmd.cat /usr/lib/nls/msg/fr/mycmd.cat The setlocale() function sets the value of the LC_MESSAGES category based on the values of the parameters to setlocale() and on the values of the LC_MESSAGES, LANG, and LC_ALL environment variables. The application program must call setlocale() to set the LC_MESSAGES category before calling catopen(). The descriptor for a message catalog remains valid in a process until one of the following occurs: The process closes the catalog descrip- tor. For example, the application executes a successful call to the catclose() function. The application executes a successful call to one of the exec() functions. In addition, a change in the setting of LC_MESSAGES may invalidate descriptors for catalogs that are currently open. NOTES
[Tru64 UNIX] When running in a process whose effective user ID (set through the setuid() call) is root, the catopen() function ignores the NLSPATH setting and searches for message catalogs by using the default path /usr/lib/nls/msg/%L/%N. Therefore, if a program uses the setuid() call to change its effective user ID to root, either the program's message catalogs or links to its message catalogs must reside in default directories. This restriction exists to ensure system security. The restriction does not apply to a program whose real user ID is root. (In other words, the restriction does not apply to a program that is run by a user logged in to the root account.) [Tru64 UNIX] A message catalog is not opened until the first catgets call that refers to the catalog. Therefore, the overhead associated with opening the catalog: Does not affect the speed of program startup Is eliminated altogether if the catalog is not used during a partic- ular program execution cycle [Tru64 UNIX] Because the operation of opening the message catalog is deferred, the catopen() function sets errno for a very limited number of conditions. Therefore, applications cannot directly determine if the catalog open succeeds. They can indirectly check if the catalog open succeeds by comparing the address of the string that the catgets() function returns with the address of the default string. If the catgets() function returns the default string, then either the catalog open failed or the catalog does not contain the requested message. [Tru64 UNIX] Most languages are supported by multiple locales, each of which may use a different codeset. A user's locale setting may therefore be appropriate for the language in which messages are available but not in the correct character encoding. In such cases, it is useful to enable codeset conversion of message catalogs, so that users can receive messages in their native language when these are avail- able, regardless of the encoding format supported by the catalog. [Tru64 UNIX] Codeset conversion of message catalogs is enabled by the presence of the .msg_conv-lc_message file in the /usr/share direc- tory. The lc_message part of this file name must correspond to the value of the LC_MESSAGES part of the user's locale setting. The one-line content of this file has the following format: alternate_lc_message from-codeset to-codeset In this entry format: Is the locale for which message catalogs are available. Is the codeset of the message catalogs for that locale. Is the codeset to which messages need to be converted (the codeset of the user's locale). [Tru64 UNIX] The alternate_lc_message value replaces the user's locale in the %L position of the NLSPATH setting. The from-codeset and to-codeset values are used to find the appropriate codeset converter. These values must match the corresponding name segments for an avail- able codeset converter or aliases for those name segments as specified in the /usr/lib/nls/loc/iconv.alias file. See iconv_intro(5) for more information about how codeset conversion works. [Tru64 UNIX] The operating system supplies .msg_conv-* files for the .UTF-8 locales, many of which have translated message catalogs avail- able for *.ISO8859-1 or other encoding formats. [Tru64 UNIX] Note that the catgets() function first looks for a message catalog that matches the user's locale. Only if a catalog is not found does the function check for a .msg_conv-* file appropriate for the user's locale. [Tru64 UNIX] When codeset conversion of messages does occur, the converted messages remain in memory in a data structure associated with the opened catalog's descriptor for re-use by subsequent calls to the catgets() function. The catclose() function frees the memory allo- cated to converted messages for the descriptor of the catalog being closed. RETURN VALUES
When successful, the catopen() function returns a catalog descriptor that can be used in calls to the catgets() and catclose() functions. When the catopen() function does not succeed, it returns a value of -1 cast to (nl_catd). ERRORS
If any of the following conditions occur, the catopen() function sets errno to the corresponding value: The name argument points to an empty string. Insufficient memory is available. [Tru64 UNIX] See the NOTES section for information on the impact of deferred open and catgets(3) for additional errors that can occur when the catalog is opened. RELATED INFORMATION
Functions: catgets(3), catclose(3), setlocale(3) Commands: dspcat(1), dspmsg(1), extract(1), gencat(1), mkcatdefs(1), strextract(1), strmerge(1), trans(1) Others: i18n_intro(5), iconv_intro(5), l10n_intro(5), standards(5) Writing Software for the International Market delim off catopen(3)
All times are GMT -4. The time now is 07:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy