Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
8.  Managing Diskless Clients (Tasks) Managing Diskless Clients How to Delete Diskless Client Support  Previous   Contents   Next 
   
 

Example--Deleting Diskless Client Support

This example shows how to delete the diskless client earth from the OS server starbug.

# /usr/sadm/bin/smdiskless delete -- -o starbug -n earth
Authenticating as user: root

Type /? for help, pressing enter accepts the default denoted by [ ]
Please enter a string value for: password :: 
Starting SMC server version 2.0.0.
endpoint created: :898
SMC server is ready.
Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug
Login to starbug as user root was successful.
Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug
was successful.

How to Delete OS Services for Diskless Clients

  1. Become superuser or assume an equivalent role.

    For more information, see "How to Become Superuser (root) or Assume a Role".

  2. Remove the OS services for the diskless clients.

    # /usr/sadm/bin/smosservice delete -H hostname:898 -- 
    -x rmplatform=instruction-set.machine-class.Solaris-version
  3. Verify that the OS services are removed.

    # /usr/sadm/bin/smosservice list -H hostname:898 --

Example--Deleting OS Services for Diskless Clients

The following example shows how to delete the diskless client OS services (sparc.all.Solaris_9) from the server starbug.

# /usr/sadm/bin/smosservice delete -H starbug:898 -- 
-x rmplatform=sparc.all.Solaris_9
Authenticating as user: root
Type /? for help, pressing enter accepts the default denoted by [ ]
Please enter a string value for: password :: 
Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug:898
Login to starbug as user root was successful.
Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug:898
was successful.

Patching Diskless Client OS Services

You use the smosservice patch command to do the following:

  • Establish the /export/diskless/Patches patch spool directory on an OS server.

  • Add patches to the patch spool directory. If the patch you are adding obsoletes an existing patch in the spool, the obsolete patch is moved to /export/diskless/Patches/Archive.

  • Delete patches from the patch spool directory.

  • List the patches in the patch spool directory.

  • Synchronize spooled patches out to clients. You must reboot each synchronized client for the client to recognize the patch update.


Note - Keep your OS servers up to date by installing recommended OS patches on a timely basis.


For information on downloading patches, see "How to Download and Add a Solaris Patch From SunSolve".

Displaying OS Patches for Diskless Clients

Diskless client patches are logged in different directories, depending on the type of patch:

  • Kernel patches are logged in the diskless client's /var/sadm/patch directory. To display kernel patches, type the following command on the diskless client:

    % patchadd -p
  • /usr patches are logged in the OS server's /export/Solaris_version/var/patch directory. A directory is created for each patch ID. To display /usr patches, type the following command on the OS server:

    % patchadd -S Solaris_8 -p
    Patch: 111879-01 Obsoletes: Requires: Incompatibles: Packages: SUNWwsr

To list all spooled patches by OS and architecture, use the smosservice command with the -P option.

How to Add an OS Patch for a Diskless Client

  1. Become superuser or assume an equivalent role on the server.

    For more information, see "How to Become Superuser (root) or Assume a Role".

  2. Log in to the diskless client system and shut it down.

    # init 0
  3. Add the patch to a spool directory.

    # /usr/sadm/bin/smosservice patch -- -a /var/patches/patch-ID-revision
    Authenticating as user: root
    
    Type /? for help, pressing <enter> accepts the default denoted by [ ]
    Please enter a string value for: password :: 
    Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug
    Login to starbug as user root was successful.
    Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug 
    was successful.

    If the patch to add depends on another patch, adding the patch fails with the following message:
    The patch patch-ID-revision could not be added 
    because it is dependent on other patches which have not yet been spooled. 
    You must add all required patches to the spool first.

  4. Verify the patch is spooled.

    # /usr/sadm/bin/smosservice patch -- -P
  5. Push the spooled patch to the diskless client.

    # /usr/sadm/bin/smosservice patch -- -m -U
    Authenticating as user: root
    
    Type /? for help, pressing <enter> accepts the default denoted by [ ]
    Please enter a string value for: password :: 
    Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug
    Login to starbug as user root was successful.
    Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug 
    was successful.

    Note - Pushing and synchronizing the patch to the diskless client can take up to 90 minutes per patch.


  6. Verify the patch is applied to the diskless client.

    # /usr/sadm/bin/smosservice patch -- -P
    Authenticating as user: root
    
    Type /? for help, pressing <enter> accepts the default denoted by [ ]
    Please enter a string value for: password :: 
    Loading Tool: com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug
    Login to starbug as user root was successful.
    Download of com.sun.admin.osservermgr.cli.OsServerMgrCli from starbug 
    was successful.
    Patches In Spool Area
    Os Rel Arch   Patch Id  Synopsis
    -------------------------------------------------------------------------
    8      sparc  111879-01 SunOS 5.8: Solaris Product Registry patch SUNWwsr  
    
    Patches Applied To OS Services
    Os Service                              Patch
    -------------------------------------------------------------------------
    Solaris_8                               
    
    Patches Applied To Clone Areas
    Clone Area                              Patch
    -------------------------------------------------------------------------
    Solaris_8/sun4m           
 
 
 
  Previous   Contents   Next