EMC Celerra Command Reference Manual page 499

Hide thumbs Also See for Celerra:
Table of Contents

Advertisement

Scripting examples
The RECOVERABLE variable contains the following errors to retry
on:
Unable to acquire lock
Resource temporarily unavailable
Unable to connect to host
Socket: All ports in use
Database resource vanished
Connection timed out
NAS_DB locked object is stale
Following is an example of what the RECOVERABLE variable looks
like:
RECOVERABLE="unable to acquire lock|Resource
temporarily unavailable|unable to connect to
host|socket: All ports in use|database resource
vanished|Connection timed out|NAS_DB locked object is
stale".
The res variable contains the command output.
#!/bin/sh
########################################################
# File: nas_cmdrcvr.sh
# Created by: NAS Engineering
# Date: Thursday, May 25, 2006
# Version: 1.0
# Notes:
# 1) script will retry commands for specified period of
time
#2) script will log messages to file only if there's
available disk space
########################################################
NAS_DB=/nas
export NAS_DB
PATH=$PATH:$NAS_DB/bin:$NAS_DB/sbin:/usr/sbin:.
export PATH
RETRIES=60
SLEEPTIME=30
LOGDIR="/home/nasadmin"
LOGFILE="$0.log"
LOGLAST="$0.last"
DISKFULL=98
RECOVERABLE="Resource temporarily unavailable|\
unable to acquire lock|\
Using Celerra Command Scripts
499

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Celerra and is the answer not in the manual?

Table of Contents

Save PDF