Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

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 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set_vlans 10
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set alias set_vlans_interface as " set vlans vlan-id $1 vlan-name $2"
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
admin@XorPlus# set_vlans_interface 20 vlan20
admin@XorPlus# commit 
Merging the configuration.
Commit OK.
Save done.
  • No labels