Solved

Why does oslevel command generate cache return code 228

Posted on 2008-06-18
9
1,372 Views
Last Modified: 2013-11-17
Running AIX 6.1 on a P6 system, the oslevel command returns:

oslevel: Error processing cache, return code 228.
oslevel: Use the -f flag to rebuild cache.

The /tmp/.oslevel* files have been removed (IBM suggested solution) but this doesn't fix it.  I have several other, almost identical, systems that do not exhibit this behavior.
0
Comment
Question by:sjpetrov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 21815929
Hi sjpetrov,

Believe it or not, this is probably a permissions problem.  At least I know that this could happen with AIX 5.x.

Check the permissions on the mlcache file

  ls -l /usr/bin/rm_mlcache_file


They should be -r-sr-xr-x

If not, then

chmod 4555 /usr/bin/rm_mlcache_file


That should fix it.


Good Luck,
Kent
0
 

Author Comment

by:sjpetrov
ID: 21816725
That was the first thing we checked and we had the correct settings.  Sorry I didn't mention that in the original post.
0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 21816767

Oh, man...   You're no fun.....  :)

Let me ask around.  I've not seen any other cause for this.


Kent
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:dfke
ID: 21830613
Also check if the owner of the file is root and if not then :

chown root /usr/bin/rm_mlcache_file

/usr/bin/rm_mlcache_file must have root privileges to perform its task. Setting the s as shown gives the executable the privileges of its owner, which must be root in this case. Then the non-root user can run oslevel and get back a valid result.
0
 

Author Comment

by:sjpetrov
ID: 21830702
It was already owned by root.
I compared several good systems to our bad system and nothing really jumped out.  I looked at lslpp output, contents of /usr/bin and /usr/sbin, tuneables and running processes.  These systems were all cloned at the same time, from the same image, so it just doesn't make sense.
0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 21831816

What is the device / device type under the file?

0
 

Author Comment

by:sjpetrov
ID: 21831891
I don't understand your question.  Can you send the command I need to type to get you this information?
0
 
LVL 45

Accepted Solution

by:
Kent Olsen earned 250 total points
ID: 21831960

You'd mentioned that all 3 systems were cloned from the same image.  I'm wondering if there may be an access issue to the file system or device where the cache file resides.


Kent
0
 

Author Comment

by:sjpetrov
ID: 21918038
System Admin is planning on rebuilding the machine to see if that solves the problem.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question