Configuring a Command Alias
User can configure an alias for a PicOS command. This CLI also supports multiple parameters. In other words, user can use the parameter in PicOS CLI e.g. $1,$2…., which will be used in the alias command.
admin@XorPlus# set alias set_vlans as "set vlans vlan-id $1" admin@XorPlus# commit Commit OK. Save done. admin@XorPlus# set_vlans 10 admin@XorPlus# commit Commit OK. Save done. admin@XorPlus# set alias set_vlans_interface as " set vlans vlan-id $1 vlan-name $2" admin@XorPlus# commit Commit OK. Save done. admin@XorPlus# set_vlans_interface 20 vlan20 admin@XorPlus# commit Commit OK. Save done.
Copyright © 2024 Pica8 Inc. All Rights Reserved.