Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The kit contains the following files:

FileDescription
charon_cleanshutdown.ps1PowerShell main script
rsh.exeUsed if 'rsh' mode is selected
template.iniUsed to facilitate the creation of a customized configuration file for the CHARON instance
psexec.exeTaken Downloaded from Microsoft Sysinternals and used in case of integration to Windows shutdown

...

Depending on the guest operating system running on the CHARON instance, the following commands are executed to perform a clean shutdown:

Tru64

/sbin/init 0

OpenVMS

@SYS$MANAGER:CHARON_SHUTDOWN.COM

...

To do so, open a command line window (cmd.exe) as an Administrator and use the following command:

...

...

languagepowershell
c:\

...

Charon>powershell -command

...

"Set-ExecutionPolicy

...

Unrestricted"

(info) The ExecutionPolicy can also be set to "RemoteSigned". In this case the .ps1 script files will have to be unblocked as described below.

If you are still prompted to allow for execution of the script, please run the following command to unblock the downloaded charon_cleanshutdown.ps1 file:

...

languagepowershell

...

:

...

TEST TEST TEST

c:\Charon>powershell -command "Unblock-File -path c:\charon\charon_cleanshutdown.ps1"

...

Please select the method that is best suited to your configuration:

ModeDescriptionRequirementsNotes
opa0Connection to the OPA0 console via telnet on the specified port using PowerShell internal functions

The 'SYS$MANAGER:CHARON_SHUTDOWN.COM' script must exist on the emulated VMS system.

No requirement if Tru64 is used.

  • Does not work if the console is running an application. Works only if the console is at the SRM prompt, prompting for username or password, or at the shell prompt.
  • Does not work if a connection to the console is already active from another host than the CHARON server.
  • If the password of the guest operating system changes, either the encrypted password file has to be updated or the password stored in clear text in the configuration file.
  • Useful if TCP/IP is not available on the guest operating system running on the CHARON instance.
rsh

Executes a remote command on the guest operating system (TCP/IP is required).

On Tru64 the .rhosts file must be configured and on OpenVMS the rexec/rsh services must have been enabled and a proxy must have been created.

The 'rsh.exe' file is included in the kit. Copy it to a folder of your choice ("C:\Bin" or "C:\Charon" for example).

The Charon Windows server and the emulated operating system must be able to communicate via TCPIP.

The 'SYS$MANAGER:CHARON_SHUTDOWN.COM' script must exist on the emulated VMS system.

No requirement if Tru64 is used.

  • Not subject to password change.
ssh

Executes a remote command on the guest operating system over a secure connection (TCP/IP is required).

Download and install OpenSSH from the https://github.com/PowerShell/Win32-OpenSSH/releases web site or preferably the version attached to this document. As a user with Administrator privileges, extract the package to C:\Program Files\OpenSSH.

The Charon Windows server and the emulated operating system must be able to communicate via TCPIP.

The 'SYS$MANAGER:CHARON_SHUTDOWN.COM' script must exist on the emulated VMS system.

No requirement if Tru64 is used.

  • Not subject to password change.
  • Secure connection.

...