501
Using Celerra Command Scripts
LOGMSG="Command ($CMD) failed with ($RES)...exiting
(retry count of $RETRIES exceeded)"
nas_log
exit 1
fi
else
# command was either successful or failed for an unknown
reason
LOGMSG="Command ($CMD) successful with ($RES)"
nas_log
retry_count=$RETRIES
exit 0
fi
#increment counter for retries
retry_count=`expr $retry 1`
done
}
#
# main
#
CMD="nas_volume -d mtv1"
nas_cmd
Using the NAS
database and query
facility
EMC has partially changed the layout or format of Celerra internal
databases. This change can impact the use of awk or grep utilities
when used in scripts that assume specific positions of fields in
databases.
To enable searching of the NAS database, Celerra has developed a
new query subsystem that appears as a hidden option on some of the
nas_commands. This query subsystem enables you to specify the
information you are interested in, allows you to format the output,
and is independent of the database format.
CAUTION
!
Do not use grep and awk to scan the database files. Database
positions may change and substrings may return false matches for
database objects.
Summary of Contents for Celerra
Page 6: ...Celerra Network Server Command Reference Manual 6 Contents...
Page 10: ...10 Celerra Network Server Command Reference Manual Preface...
Page 16: ...16 Celerra Network Server Command Reference Manual Overview...
Page 276: ...276 Celerra Network Server Command Reference Manual The nas Commands...