Oracle Solaris System Administration (MOSC)

MOSC Banner

Disk Secure Erase Procedure

edited Sep 23, 2016 1:39PM in Oracle Solaris System Administration (MOSC) 3 commentsAnswered ✓
Hi all,
I would like to secure erase multiple disks on a Solaris10 system (parallel deletion processes).
The following script works. However, I would like to write the date in the logfle before and after the deletion process.
The date, which will be written in the logfile before starting the cleaning process, makes no difficulty.
But how can I write the date in the log file when the delete process is finished?

----------------------------------------------------
#!/bin/bash
for x in {1..7}
do
  mkdir -p secure_erase_log
  for dsk in `ls /dev/dsk/c0t[234]d0s2 | sed -e 's/\/dev\/dsk\///'` ;

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