Remove Existing Port Monitors

Team-Fly    

Solaris™ Operating Environment Boot Camp
By David Rhodes, Dominic Butler
Table of Contents
Chapter 14.  Connecting Serial Devices


Now that we've seen the hierarchy and the type of data that is stored there, we can add the devices we require. The first task to perform is to clear out any existing configuration details and start with a clean sheet, so let's do that now.

When the system is installed, at least one port monitor will usually be created, and will probably be a service on the "zsmon" tag. Completely removing this tag will allow us to reuse it later and will hopefully make things clearer when we create the services on the system:

 hydrogen# sacadm r p zsmon hydrogen# sacadm l No port monitors defined hydrogen# 

Good. Everything has gone. Running pmadm to list the current port monitor details will also confirm that they've been removed:

 hydrogen# pmadm l No services defined hydrogen# 

We could actually leave it at this point and start to reconfigure the ports as we require, but for this chapter we'll also remove the existing zsmon hierarchy. This will allow us to see how it is rebuilt automatically:

 hydrogen# rm -r /etc/saf/zsmon hydrogen# ls -l total 4 prw-------   1 root     root      0 Mar  9 13:03 _cmdpipe prw-------   1 root     root      0 Mar  9 14:12 _sacpipe -r--r--r--   1 root     other    13 Mar  9 14:25 _sactab -rw-r--r--   1 root     sys      45 Aug 27  2000 _sysconfig hydrogen# 

Looking at the contents of /etc/saf, we can see that we are now left with the top-level configuration files only. We've already looked at the _sysconfig file, but let's look at _sactab to see what it contains now:

 hydrogen# cat _sactab # VERSION=1 hydrogen# 

Just as we thoughtapart from the version number the file is empty, confirming that all the services have been removed.


    Team-Fly    
    Top
     



    Solaris Operating Environment Boot Camp
    Solaris Operating Environment Boot Camp
    ISBN: 0130342874
    EAN: 2147483647
    Year: 2002
    Pages: 301

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net