Perl Script: Compare Solaris Patch Level to Sun's Recommendations

Version 3

    The attached script checks patch levels on remote sun servers against Sun's patchdiag.xref file. Missing recommended and security patches are identified in a patch analysis report. The script is network enabled, and uses the network shell perl module to access remote hosts.


    This script supports Solaris 2.6, 7, and 8 (all on sparc). Instructions can be found within the attachment.



    The script requires the Net::FTP perl module to be installed on the server from which this script is kicked off, so that it can download the latest patchdiag.xref file. If you do not already have it, you can get it via CPAN.


    The following command should work: perl -MCPAN -e 'install Net::FTP'


    Alternatively, you can download a copy of the file from, and use the -x flag to point to a local file instead of using FTP.



    • This sample can also be found in the samples directory within the product distribution.