Hi!
We want to define aliases using the script exshrc.xsf that is run every time a user logs in. Simple aliases are OK, but we want to create a variable with the most interesting ports and base aliases off that variable, like this:
set var PORTS "1:1,1:2,1:3"
alias shp "show port $PORTS inf"
After logging in, this won't work, but if I run the script using the run script command, it works as intended:
Slot-1 VPEX d123c.1 # shp
^
%% Invalid slot number detected at '^' marker.
%% Parse error in alias command definition.
Slot-1 VPEX d123c.2 # alias
alias shp='show port $PORTS inf'
Slot-1 VPEX d123c.3 # run script exshrc.xsf
Slot-1 VPEX d123c.4 # alias
alias shp='show port 1:1,1:2,1:3 inf'
Slot-1 VPEX d123c.5 #
Does anyone have a suggestion on how to make this work upon login and auto-execution of the exshrx.xsf?
/Fredrik
PS this is on an X590-24x-1q-2c running EXOS 30.2, but should be the same in any modern EXOS (21.x or above).