|  | Nadine,
well, yes, you can. However, if the system needs a password to log in, to shut
it down cleanly, then you'll have to store th password in the script file, and
this is a real security 'no-no'.
Shaun
 | 
|  |     As long as you understand the security hole that Shaun pointed out
    then  here is your answer:
    
    Create a DIALOG file for use with the CONSOLE DIALOG command. This
    file will contain all the neccesary commands to send to the managed
    system to login to it and shut it down.
    
    Now you can create another command file that will actually run the DIALOG
    command for you. This command file will be whats known as an ENS action 
    routine. You must then use the PCM config editor to define it as
    an action routine within the PCM config file. 
    
    Now assuming you haven't defined the event in the config editor you
    need to do that  as well as include it in the scan profile for the
    system in question.
    
    The next step is to create a filter that will match only on this
    event. *MAKE SURE* that when you define the filter that you have
    deselected  "Filter all classes" . If you don't, every event that
    occurs will attempt to run the action routine and shut the system down.
    The filter is also that which points at the action routines to run when
    events occur so you must attach a dispatch record to te filter that 
    tells it to run your action routine.
    
    These are the basic steps. The manual outlines the details.
    
    Regs,
      Dan
    
    
     Buffer: NOTES$
 |