Solved

Why does oslevel command generate cache return code 228

Posted on 2008-06-18
9
1,326 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
  • 4
  • 4
9 Comments
 
LVL 45

Expert Comment

by:Kdo
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:Kdo
ID: 21816767

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

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


Kent
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
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:Kdo
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:
Kdo 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vmware Vswitch  VS  Redhat  Bridge 1 107
aix tls version 6 315
How should I mount this 3 TB USB Hard disk to my Linux server? 9 111
unix example issues 18 90
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

770 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