[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference csc32::consolemanager

Title:POLYCENTER Console Manager
Notice:Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS:
Moderator:CSC32::BUTTERWORTH
Created:Thu Aug 06 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1541
Total number of notes:6564

34.0. "startup/shutdown notes" by VINO::DBIGELOW (Innovate, Integrate, Evaporate) Mon Oct 12 1992 22:57

1.  When I issue a shutdown message and CM is already shutdown, I get 
    non-descriptive messages like the following:

    Socket connect error - /var/cm/tmp/CM_CONTROL
    No such file or directory

    Wouldn't something like "Console Manager not running" be a little more
    descriptive?

2.  When CM is already running and I issue another cm_startup command, I get
    the following:

   "There is a Notification process running on the machine

    To restart Console Manager run cm_startup with clean option."

    What does this mean? What is the 'clean' option?
    How about just stating "Console Manager is already running"?

    
T.RTitleUserPersonal
Name
DateLines
34.1clean means what it says!!OPG::PHILIPAnd through the square window...Tue Oct 13 1992 11:1913
Dave,

  The 'clean' option will remove all the temporary files that get created
  in the /var/cm/tmp directory, and additionally, kill any cm processes
  that are found to be running on the system (so you dont have to do a
  'ps -ax | grep cm' then kill each process you find) all this ensures
  that we startup in a known state, so the "To restart...." message is
  valid and I beleive it should stay, hopefully all will be revealed
  when we get the documentation finished.

Cheers,
Phil

34.2More feedbackVINO::DBIGELOWInnovate, Integrate, EvaporateTue Oct 13 1992 16:4356
    Phil,
    
    Here's some of the script using the -clean option.
    
    # ps -aux | grep cm
    root      4936  0.0  0.1   40   32 p0 S      0:00 grep cm
    
    
    # cm_startup
    
    # ps -aux | grep cm
    root      4961 34.9  7.3 3028 1944 p0 R      0:01 /var/cm/actions/cm_eventlist
    root      4957  0.0  1.4  532  376 p0 S      0:00 /usr/bin/cmd
    root      4967  0.0  0.1   40   32 p0 S      0:00 grep cm
    root      4956  0.0  1.4  536  372 p0 S      0:00 /usr/bin/cmd
    root      4954  0.0  1.4  492  376 p0 S      0:00 /usr/bin/cm_ensd
    
    # cm_startup - clean
    
    There is a Notification process running on the machine
    
    There are CM Daemon processes running on the machine
    # ps -aux | grep cm
    root      4995 13.4  6.4 3196 1712 p0 S      0:01 /var/cm/actions/cm_eventlist
    root      4957  0.0  1.3  544  344 p0 S      0:00 /usr/bin/cmd
    root      4990  0.0  1.2  536  324 p0 S      0:00 /usr/bin/cmd
    root      4988  0.0  1.2  492  316 p0 S      0:00 /usr/bin/cm_ensd
    root      4961  0.0  6.4 3180 1700 p0 I      0:01 /var/cm/actions/cm_eventlist
    root      4991  0.0  1.3  552  348 p0 S      0:00 /usr/bin/cmd
    root      4956  0.0  1.2  536  324 p0 S      0:00 /usr/bin/cmd
    root      4954  0.0  1.2  492  316 p0 I      0:00 /usr/bin/cm_ensd
    root      5007  0.0  0.1   40   32 p0 S      0:00 grep cm
    
    
    Note that I did not stop CM before issuing the startup and now appear
    to have multiple processes.
    If I then issue a shutdown command (cm -s), then not all the processes
    get killed. As a matter of fact, everything still works, except for 
    the shutdown as evidenced below:
    
    # cm -s
    Do You Really want to Shutdown ConsoleManager? (N) :y
    Socket connect error - /var/cm/tmp/CM_CONTROL
    No such file or directory
    ps -aux | grep cm
    root      4957  0.0  1.5  544  392 p0 S      0:00 /usr/bin/cmd
    root      5034  0.0  0.1   40   32 p0 S      0:00 grep cm
    root      4961  0.0  6.4 3196 1716 p0 I      0:01 /var/cm/actions/cm_eventlist
    root      4956  0.0  1.4  536  372 p0 S      0:00 /usr/bin/cmd
    root      4954  0.0  1.4  492  376 p0 I      0:00 /usr/bin/cm_ensd
    root      4995  0.0  6.4 3196 1716 p0 I      0:01 /var/cm/actions/cm_eventlist
    
    
Cheers,
    
    Dave
34.3Syntax Dave.OPG::SIMONWed Oct 14 1992 11:5310
Dave,
	the syntax for the cm_startup does not include
a - sign.

	cm_startup clean will work. I can change the text
output if you like, what do you consider to be more 
appropriate. I shall also look at putting in a trap for
incorrect syntax.

Cheers Simon....
34.4How about ...VINO::DBIGELOWInnovate, Integrate, EvaporateWed Oct 14 1992 15:3818
    Simon,
    
        How about something like:
    
          Stopping Console Manager daemon process pid xxxxxxxx
          Stopping Console Manager ENS daemon pid xxxxx
          Stopping ...
          .
          .
          .
          Starting Console Manager daemon
          Starting Console Manager ENS
          Starting ....
          .
          .
          .
    
    Dave