Aliases set [aset]

Syntax:

    aset <alias> <command>

CLI command "aset" is used to set an alias. If the aliases is already defined, it is overwritten. The right <command> part can contain any CLI command as well as aliases and also parameters:

Example:

    aset quit exit
    aset ls lc
    aset cd cc
    aset nq sr router1;cd /sys$queuemanager/queues;new ${1};lc ${1}

The above "nq" aliases creates a new queue and references a parameter (Note that the "cd" alias is referenced here). These parameters are referenced as ${number} where "number" is the sequence number of the parameter, starting with 1. So the following CLI command creates a new queue "smsqueue" on router1 and shows the attributes after creation (the lc ${1} command):

    router1> nq smsqueue

    Entity:      Queue
    Description: Queue Definition

    Properties for this Entity:

    Name                                    Current Value
    --------------------------------------------------------------
    cache-size                              500
    cache-size-bytes-kb                     -1
    cleanup-interval                        120000
    duplicate-detection-backlog-size        2000
    duplicate-detection-enabled             true
    flowcontrol-start-queuesize             400
    max-messages                            -1
    persistence-mode                        as_message

    Entity contains no Sub-Entities.

    router1/sys$queuemanager/queues>

This queue uses the default values for its attributes. If I want to have an alias where I can specify a variable number of parameters, I use the ${*} place holder which puts all parameters at this position:

    aset nq sr router1;cd /sys$queuemanager/queues;new ${*}

So I can issue the following command:

    nq smsqueue cache-size 2000 flowcontrol-start-queuesize 1800 max-messages 20000