Gblog

おもにTips

asmcmd のコマンドをみたいとき

asmcmd って結構べんりですよね。しょぼいけど。

たまにしか使わないのでコマンドはすぐわすれます。

コマンド一覧は asmcmd help

$ asmcmd help
asmcmd
        Starts asmcmd or executes the command

Synopsis
        asmcmd [-V] [--nocp] [-v {errors | warnings | normal | info | debug} ] [--privilege {sysasm | sysdba} ] [-p] [--inst <instance_name>] [--discover][<command>]

Description
        (省略)

        commands:
        --------

        md_backup, md_restore

        amdu_extract

        lsattr, setattr

        audcleanaudittrail, audclearproperty, audcleartimestamp
        audcreatejob, auddropjob, audloaduniauditfiles, audsetdebug
        audsetjobinterval, audsetjobstatus, audsetproperty, audsettimestamp
        audsettraillocation, audshowtimestamp, lsaudcleanevents
        lsaudcleanupjobs, lsaudconfigparams

        cd, cp, du, find, help, ls, lsct, lsdg, lsof, mkalias
        mkdir, pwd, rm, rmalias, showclustermode, showclusterstate
        showpatches, showversion
             :

 

コマンドのヘルプをみるときは asmcmd help [コマンド名]

$ asmcmd help ls
ls
        Lists the contents of an Oracle ASM directory, the attributes of the
        specified file, or the names and attributes of all disk groups from the
        V$ASM_DISKGROUP_STAT or V$ASM_DISKGROUP view. The default view is
        V$ASM_DISKGROUP_STAT.

Synopsis
        ls [-lsdtLg] [--absolutepath] [--suppressheader] [--reverse] [--permission] [<pattern>]

Description
        The options for the ls command are described below.
            :

 

ちなみに、help の help

$ asmcmd help help
help
        Displays help for the specified command.

Synopsis
        help [<command>]

 

ちょいちょい使えるんですよね、しょぼいけど。