ASMCMD

ASMCMD COMMAND

To see the free space
asmcmd lsdg

To see the lists the current operations on a disk group or Oracle ASM instance.

asmcmd lsop

To see the ASM Volume Information 

asmcmd volinfo -G data volume1

To get the discovery disk string value that used by ASM to seeing a disk
asmcmd dsget


To set the discovery disk string value that used by ASM to seeing a disk
asmcmd dsset

To list the user from an Oracle ASM password file
asmcmd lspwusr
Username sysdba sysoper sysasm 
     SYS   TRUE    TRUE   TRUE 

 ASMSNMP   TRUE   FALSE  FALSE 

To add user  
orapwusr --add agap

To add privilege 
orapwusr --add --privilege sysdba hruser

To shutdown ASM instance 
asmcmd shutdown --normal
asmcmd shutdown --immediate
asmcmd shutdown --abort

To back up spfile 
asmcmd spbackup +DATA/asm/asmparameterfile/registry.251.745816193 +FRA/spfileASM.backup

To copy spfile to destination location 
asmcmd spcopy +DATA/asm/asmparameterfile/registry.251.745816193 +FRA/spfileASM.cp

asmcmd spcopy -u 
/u01/app/oracle/product/12.0.1/db/dbs/spfileagap.ora +DATA/agap/parameterfile/registry.253.767915194

To get the spfile location 
asmcmd spmove
/u01/app/oracle/product/12.0.1/db/dbs/spfileagap.ora +DATA/agap/parameterfile/registry.253.767915194

asmcmd spmove +DATA/agap/parameterfile/registry.253.767915194
/u01/app/oracle/product/12.0.1/db/dbs/spfileagap.ora

To set the location of the Oracle ASM spfile
asmcmd spset +DATA/agap/parameterfile/registry.253.767915194

To startuo ASM Instance
asmcmd startup