Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1522688.1
Update Date:2018-05-25
Keywords:

Solution Type  Technical Instruction Sure

Solution  1522688.1 :   Sun Storage 7000 Unified Storage System: How to remotely power off a Series 7000 NAS using scripting  


Related Items
  • Sun ZFS Storage 7420
  •  
  • Oracle ZFS Storage ZS5-2
  •  
  • Sun Storage 7110 Unified Storage System
  •  
  • Oracle ZFS Storage ZS3-2
  •  
  • Sun Storage 7210 Unified Storage System
  •  
  • Oracle ZFS Storage ZS4-4
  •  
  • Sun Storage 7410 Unified Storage System
  •  
  • Oracle ZFS Storage ZS5-4
  •  
  • Sun Storage 7310 Unified Storage System
  •  
  • Sun ZFS Storage 7120
  •  
  • Oracle ZFS Storage ZS3-4
  •  
  • Sun ZFS Storage 7320
  •  
  • Oracle ZFS Storage ZS3-BA
  •  
Related Categories
  • PLA-Support>Sun Systems>DISK>ZFS Storage>SN-DK: 7xxx NAS
  •  


The facility to remotely power off the NAS server - possibly in response to some environmental issue (eg. UPS power failure alert) - may be a desirable feature.

In this Document
Goal
Solution


Applies to:

Sun Storage 7310 Unified Storage System - Version All Versions and later
Sun Storage 7410 Unified Storage System - Version All Versions and later
Sun ZFS Storage 7420 - Version All Versions and later
Sun ZFS Storage 7120 - Version All Versions and later
Sun ZFS Storage 7320 - Version All Versions and later
7000 Appliance OS (Fishworks)

Goal

The facility to remotely power off the NAS server - possibly in response to some environmental issue (eg. UPS power failure alert) - may be a desirable feature.

Solution

We can achieve this goal by using CLI scripting in conjunction with 'password-less' SSH remote connectivity.


To setup ssh login to the Series 7000 server with does not require a password (host equivalency)

Create a shared key on your unix system with ssh-keygen:

    $ ssh-keygen -T dsa -b 1024.          (The 7000 can use DSA and RSA)

This will create files in your ~/.ssh/directory including a .pub file.

Then edit the id_dsa.pub (or rsa) file and copy the key field between the ssh-dss and the comment at the end - making sure you have no spaces in your copy buffer.


Configure the key on the Series 7000 server:

 - ssh into the 7000 ... AS THE USER YOU WANT TO USE

      > configuration preferences key create
      > set type=DSA
      > set key=<BIG_LONG_KEY_WITH_NO_SPACES>
      > set comment=FirstLast            (no spaces)
      > commit


You should now be able to ssh into the CLI without password


Remotely power off the Series 7000 NAS using ssh/CLI command

On your solaris (or linux) client system, the NAS power off script can be run like this:

    ssh root@<NAS_APPLIANCE_NAME> confirm maintenance system poweroff < /dev/null &


Please ensure that you have set up ssh host equivalency (as above) to allow this to work without a password.

 

 

 

***Checked for relevance on 25-MAY-2018***


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback