Unix Technical Forum

slibclean

This is a discussion on slibclean within the AIX Operating System forums, part of the Unix Operating Systems category; --> AIX 5.2.0.0 Is there a command which allows one to see what slibclean will remove? Thanks...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 05:45 AM
Oxnard
 
Posts: n/a
Default slibclean

AIX 5.2.0.0

Is there a command which allows one to see what slibclean will remove?

Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 05:46 AM
Mark Taylor
 
Posts: n/a
Default Re: slibclean


Oxnard wrote:
> AIX 5.2.0.0
>
> Is there a command which allows one to see what slibclean will

remove?
>
> Thanks


yeah, from the docs -->

http://publibn.boulder.ibm.com/doc_l.../slibclean.htm

"The slibclean command unloads all object files with load and use
counts of 0."

To see loaded modules, use genkex or kdb sub command lke.

To get info on loaded modules use kdb subcommand lke -l slot

(0)> lke -l64
ADDRESS FILE FILESIZE FLAGS MODULE NAME

1 F10000AF2004D100 9000000013FC000 00003E78 00080882
/home/udbinst1/sqllib/lib/libcatcp.a
2 F10000AF2004C000 90000000036D100 0000149C 000800C0
shr_64.o/usr/opt/db2_08_01/lib64/libcapro.a

(0)> lke -l64 1
ADDRESS FILE FILESIZE FLAGS MODULE NAME

1 F10000AF2004D100 9000000013FC000 00003E78 00080882
/home/udbinst1/sqllib/lib/libcatcp.a
le_flags....... TEXT LIBRARY TEXTMAPPED 64
le_next........ F10000AF2004C000 le_svc_sequence 00000000
le_fp.......... F100009D000EF3F0
le_filename.... F10000AF2004D188 le_file........ 9000000013FC000
le_filesize.... 00003E78 le_data........ 9000000013FF4A3
le_tid......... 013FF4A3 le_datasize.... 000001CD
le_usecount.... 00000000 le_loadcount... 00000000


This has both a use count and load count of "0", so slibclean will
remove this.

So, dropping out into the shell and running "slibclean" and back into
kdb.

(0)> lke -l64 1
ADDRESS FILE FILESIZE FLAGS MODULE NAME

1 F10000AF2004D300 9000000012E5100 0001C430 000800C0
shr_64.o/usr/opt/db2_08_01/lib64/libdb2sec.a
le_flags....... DATA LIBRARY 64
le_next........ F10000AF2004D200 le_svc_sequence 00000000
le_fp.......... F100009D0014CF50
le_filename.... F10000AF20049C88 le_file........ 9000000012E5100
le_filesize.... 0001C430 le_data........ 9001000A042A3C8
le_tid......... A042A3C8 le_datasize.... 00005E58
le_usecount.... 00000001 le_loadcount... 00000000

Before this was in slot 2, the 1st module was removed and this one
moved up the stack. This has a use count of "1" so will not be removed.

HTH
Mark Taylor

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:48 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com