error when using oslevel

Posted on 2005-05-03
Last Modified: 2013-11-17
   When I isssue oslevel -r or oslvel to see the version of AIX. I get the error unable to acquire lock. I then logged as root but still got the same error. Any ideas how to fix that
Question by:anshuma
    LVL 20

    Expert Comment

    Can you provide the exact error message?
    LVL 61

    Accepted Solution

    first try "find / -name oslevel.lock -print" and remove if one is found (  ? or is it /usr/lib/instl/.oslevel.lock as google says ? ) , since imo lock used by oslevel program can be called this way

    if no success there next try " ksh -x `which oslevel` " to find out failing command sine "file" on my system tells it is shell script.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
    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 how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now