[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Command line utility to check patch levels

Posted on 2004-11-24
7
Medium Priority
?
10,323 Views
Last Modified: 2013-12-27
Anyone know the command to check patch levels of all critical files on a Solaris 5.9 Generic_112233_03 box.

This is a production box so I can't install anything and don't want to get into scripting...
0
Comment
Question by:mellowmarquis
7 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 12671056
You can use the following command:

showrev -p | grep 112233_03

or
patchadd -p | grep 112233_03

man showrev
man patchadd

to learn more details.

also, you can have a look ar /var/sadm/patch for the patch infor.
0
 
LVL 48

Expert Comment

by:Tintin
ID: 12671120
Depends on your definition of critical files.

If you are interested in just security patches, then the easiest way is to use some of the patching tools from sunsolve.sun.com
0
 
LVL 2

Author Comment

by:mellowmarquis
ID: 12671397
It's just for security patches, and as I said, I can't install anything (client's machine).

When I use the commands showrev or patchadd, the cursor halts for a second or two and then appears again but I get no output. When I try to view the man pages, it tells me "No manual entry for <command>.

Any suggestions?
Thanks again
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 38

Expert Comment

by:yuzh
ID: 12671474
Do:

cd  /var/sadm/patch
ls -al

Can you see anything?

>>>"No manual entry for <command>.

Have you set MANPATH, in your .profile? eg:
  #============================================================================
  #
  # Set up MANPATH
  #

    MANPATH=/opt/SUNWspro/man
    MANPATH=$MANPATH:/usr/man
    MANPATH=$MANPATH:/usr/bin/man
    MANPATH=$MANPATH:/usr/openwin/man
    MANPATH=$MANPATH:/usr/dt/man
    MANPATH=$MANPATH:/usr/local/man
    MANPATH=$MANPATH:/usr/apache/man
    MANPATH=$MANPATH:/usr/local/teTex/man
    MANPATH=$MANPATH:/usr/local/Magic/man
    export MANPATH



0
 
LVL 38

Accepted Solution

by:
yuzh earned 1000 total points
ID: 12671542
0
 
LVL 6

Expert Comment

by:Gugro
ID: 12674407
showrev -p SHOULD show you all installed patches. if not you have a problem with this system
( missing files/packages, corrupt patch database )
Hints
- look in /var/sadm/install/patches
- Is the explorer tool installed in /opt/SUNWexplo ?
- look for the patchdiag tool on Suns web pages
0
 
LVL 2

Author Comment

by:mellowmarquis
ID: 12674580
The commands would not work because I needed to escalate to admin mode....spot the noob.

Thanks to everyone for all your help, especially yuzh... that link was exactly what I was dreaming about as I trawled thru the Sun site for an hour before posting this question. It will now take pride of place in my Favourites folder.

Cheers,
Mark
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

872 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