When you enter the asmcmd utility
Chapter 5 ■ Storage and aSM praCtiCeS
ASMCMD Utility
Then you can run the ASMCMD commands in the interactive mode from the ASMCMD> prompt.
ASMCMD> du
Used_MB Mirror_used_MB
1036439 1036439
And execute this command file using the ASMCMD utility
[grid@k2r720n1 ~]$ asmcmd <test.cmd
ASMCMD> DATA/
VOCR/
ASMCMD> +
ASMCMD> Used_MB Mirror_used_MB
1036439 1036439
Chapter 5 ■ Storage and aSM praCtiCeS
ASMCMD> ls
DATA/
VOCR/
ASMCMD> cd DATA
ASMCMD> cd KHDBThe control file: ‘+DATA/KHDB/CONTROLFILE/ Current.256.789808289’:
ASMCMD> ls -l +DATA/KHDB/CONTROLFILE/Current.256.789808289
Type Redund Striped Time Sys Name
CONTROLFILE UNPROT FINE NOV 01 07:00:00 Y Current.256.789808289This is the ASM instance spfile:
ASMCMD> ls -l +VOCR/kr720n-scan/ASMPARAMETERFILE/REGISTRY.253.789801893
Type Redund Striped Time Sys Name
ASMPARAMETERFILE UNPROT COARSE JUL 28 05:00:00 Y REGISTRY.253.789801893