Share with friends and colleagues on social media

Looking for a way to filter out the Security, Optional, Recommended or just want to filter the Kernel only? This is a must read.

You must be at ZLM 7.2 IR1 with Hot Patch 3 or greater in order to get this to work. If you have not applied any Hot Patches you will want to send an email to zen.feedback@novell.com with the subject line “ZLM7.2 IR1 Hot Patch” so that you can get the information you need to update your ZLM Server and Clients to the latest Hot Patch.

Below are some example zlmmirror configuration files that you can use to accomplish the filtering spoken of. Please feel free to read my ZLM Lab Guide located here for more information on the setup and troubleshooting of your environment.

Mirroring Security Patches

This is accomplished in a pretty easy fashion with the following zlmmirror configuration. You can adapt this configuration with additional targets if needed. Note the LocalName tag which is for the local name of the Catalog that will be created. Also note the ExcludeBundle tag which includes the kernel to be excluded in this filter. If you would like to include the kernel in the security patches you would just remove that tag.

<ZLMMirrorConf>
   <Session>
      <RemoteServer>
         <Base>https://nu.novell.com/repo</Base>
         <Type>nu</Type>
	 <User>xxxx</User>
	 <Password>xxxx</Password>
      </RemoteServer>
      <LocalServer>
         <Type>zlm</Type>
         <User>administrator</User>
         <Password>novell</Password>
      </LocalServer>
      <Catalog>
         <Name>SLES10-SP1-Updates</Name>
	 <LocalName>SLES10-SP1-Security</LocalName>
         <Folder>sles-10-i586/SP1/patches</Folder>
         <Target>sles-10-i586</Target>
	 <ExcludeBundle>patch-slesp1-kernel.*</ExcludeBundle>
      </Catalog>
   </Session>
</ZLMMirrorConf>

In order to accomplish mirroring the Security patches you will need to run this command:

zlmmirror m --category=security -c /location/of/zlmmirror/configuration

Mirroring Optional Patches

This just like the Security patches can be accomplished with the following zlmmirror configuration. You can adapt this configuration with additional targets if needed. Note the LocalName tag which is for the local name of the Catalog that will be created. Also note the ExcludeBundle tag which includes the kernel to be excluded in this filter. If you would like to include the kernel in the optional patches you would just remove that tag, that is if there is ever any kernel that’s labeled optional :).

<ZLMMirrorConf>
   <Session>
      <RemoteServer>
         <Base>https://nu.novell.com/repo</Base>
         <Type>nu</Type>
	 <User>xxxx</User>
	 <Password>xxxx</Password>
      </RemoteServer>
      <LocalServer>
         <Type>zlm</Type>
         <User>administrator</User>
         <Password>novell</Password>
      </LocalServer>
      <Catalog>
         <Name>SLES10-SP1-Updates</Name>
	 <LocalName>SLES10-SP1-Optional</LocalName>
         <Folder>sles-10-i586/SP1/patches</Folder>
         <Target>sles-10-i586</Target>
	 <ExcludeBundle>patch-slesp1-kernel.*</ExcludeBundle>
      </Catalog>
   </Session>
</ZLMMirrorConf>

In order to accomplish mirroring the Optional patches you will need to run this command:

zlmmirror m --category=optional -c /location/of/zlmmirror/configuration

Mirroring Recommended Patches

Use the following configuration for filtering for recommended patches. You can adapt this configuration with additional targets if needed. Note the LocalName tag which is for the local name of the Catalog that will be created. Also note the ExcludeBundle tag which includes the kernel to be excluded in this filter. If you would like to include the kernel in the optional patches you would just remove that tag, that is if there is ever any kernel that’s labeled Recommended :).

<ZLMMirrorConf>
   <Session>
      <RemoteServer>
         <Base>https://nu.novell.com/repo</Base>
         <Type>nu</Type>
	 <User>xxxx</User>
	 <Password>xxxx</Password>
      </RemoteServer>
      <LocalServer>
         <Type>zlm</Type>
         <User>administrator</User>
         <Password>novell</Password>
      </LocalServer>
      <Catalog>
         <Name>SLES10-SP1-Updates</Name>
	 <LocalName>SLES10-SP1-Recommended</LocalName>
         <Folder>sles-10-i586/SP1/patches</Folder>
         <Target>sles-10-i586</Target>
	 <ExcludeBundle>patch-slesp1-kernel.*</ExcludeBundle>
      </Catalog>
   </Session>
</ZLMMirrorConf>

In order to accomplish mirroring the Recommended patches you will need to run this command:

zlmmirror m --category=recommended -c /location/of/zlmmirror/configuration

Mirroring the Kernel Only

Use the following configuration for filtering for Kernel patches only. You can adapt this configuration with additional targets if needed. Note the LocalName tag which is for the local name of the Catalog that will be created. Also note the Bundle tag which includes the kernel to be included in this filter so that it just mirrors the kernel.

<ZLMMirrorConf>
   <Session>
      <RemoteServer>
         <Base>https://nu.novell.com/repo</Base>
         <Type>nu</Type>
	 <User>xxxx</User>
	 <Password>xxxx</Password>
      </RemoteServer>
      <LocalServer>
         <Type>zlm</Type>
         <User>administrator</User>
         <Password>novell</Password>
      </LocalServer>
      <Catalog>
         <Name>SLES10-SP1-Updates</Name>
	 <LocalName>SLES10-SP1-Kernels</LocalName>
         <Folder>sles-10-i586/SP1/patches</Folder>
         <Target>sles-10-i586</Target>
	 <Bundle>patch-slesp1-kernel.*</Bundle>
      </Catalog>
   </Session>
</ZLMMirrorConf>

In order to accomplish mirroring the Kernels you will need to run this command:

zlmmirror m -c /location/of/zlmmirror/configuration

Enjoy!


Share with friends and colleagues on social media
Tags: ,
Category: SUSE Linux Enterprise Server, Technical Solutions
This entry was posted Monday, 5 May, 2008 at 2:36 pm
You can follow any responses to this entry via RSS.

Leave a Reply

Your email address will not be published. Required fields are marked *

No comments yet