Disk Storage ZFS Storage Appliance (MOSC)

MOSC Banner

Shutdown remotely via a windows batch script

Hi,


I want to be able to shutdown the ZS5 from windows server script.

I know how to ssh and shutdown via CLI (maintenance system poweroff) however according to some web searches, this command appears to ask to confirm the power off with a Y/N. https://docs.oracle.com/cd/E37831_01/html/E52872/godko.html

I am using putty's "plink.exe" to ssh to the CLI from windows server

Does anyone know how to always confirm?

Current script looks like this:

plink.exe -batch -ssh -pw <mypasswd> <user>@<zs5> maintenance system poweroff

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center