HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

meaning of commented lines in 'swlist -l patch' output

 
chanthu_1
Occasional Contributor

meaning of commented lines in 'swlist -l patch' output

Hi
'swlist -l patch' contains lots commented(#) data. what is the differece between the commented and uncommented lines in swlist output.


PHKL_29494.CORE2-KRN 1.0 OS-Core.CORE2-KRN applied
PHKL_29494.KERN2-RUN 1.0 OS-Core.KERN2-RUN applied
# PHKL_29494 1.0 SCSI Ultra160 Cumulative Patch
# PHKL_29494.CORE2-KRN 1.0 OS-Core.CORE2-KRN applied
# PHKL_29494.KERN2-RUN 1.0 OS-Core.KERN2-RUN applied

From the above example can anybody explain what is the commented and uncommented lines meaning ?

Thanks in advance
Chanthu
2 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: meaning of commented lines in 'swlist -l patch' output

Hi:

The commented entries point to the contents of the object:

For example:

# swlist -l patch|grep PHCO_36032
PHCO_36032.UX-CORE 1.0 OS-Core.UX-CORE committed
# PHCO_36032 1.0 killall(1M) cumulative patch
# PHCO_36032.UX-CORE 1.0 OS-Core.UX-CORE committed

...

# swlist PHCO_36032.UX-CORE
# Initializing...
PHCO_36032.UX-CORE 1.0 OS-Core.UX-CORE
/usr/sbin/killall

Regards!

...JRF...

Re: meaning of commented lines in 'swlist -l patch' output

This is actually documented under swlist(1m):
OPERATION
The output from swlist follows this rule with all options: only the lowest level listed (product, subproduct, fileset or file) will be uncommented. Among other things, this allows the output from swlist to be used as input to other commands.