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...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |