# Main %commands=( "show chassis clocks" => "ShowChassisClocks", "show chassis environment" => "ShowChassisEnvironment", "show chassis firmware" => "ShowChassisFirmware", "show chassis fpc detail" => "ShowChassisFpcDetail", "show chassis hardware detail" => "ShowChassisHardware", "show chassis routing-engine" => "ShowChassisRoutingEngine", "show chassis scb" => "ShowChassisSCB", "show chassis sfm detail" => "ShowChassisSCB", "show chassis ssb" => "ShowChassisSCB", "show chassis feb" => "ShowChassisSCB", "show chassis cfeb" => "ShowChassisSCB", "show chassis alarms" => "ShowChassisAlarms", "show system boot-messages" => "ShowSystemBootMessages", "show version detail" => "ShowVersion", "show configuration" => "ShowConfiguration" ); @commands=( "show chassis clocks", "show chassis environment", "show chassis firmware", "show chassis fpc detail", "show chassis hardware detail", "show chassis routing-engine", "show chassis scb", "show chassis sfm detail", "show chassis ssb", "show chassis feb", "show chassis cfeb", "show chassis alarms", "show system boot-messages", "show version detail", "show configuration | display set", ); $jnx_commands=join(";",@commands); -$cmds_regexp=join("|",@commands); +$cmds_regexp=join("|",keys(%commands));