(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH) op: assign_op.Equal rhs: {<'/etc'> <Id.Lit_Colon ':'> <'/bin'>} spids: [91] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RDCBOOT='> name:RDCBOOT) op: assign_op.Equal rhs: {(DQ <'/usr/sbin/sndrboot'>)} spids: [96] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'RDCSYNCD='> name:RDCSYNCD) op: assign_op.Equal rhs: {(DQ <'/usr/lib/sndrsyncd'>)} spids: [101] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'USAGE='> name:USAGE) op: assign_op.Equal rhs: {(DQ <'Usage: '> ($ Id.VSub_Number 0) <' {start|stop} cluster_resource'>)} spids: [106] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SVCS='> name:SVCS) op: assign_op.Equal rhs: {<'/usr/bin/svcs'>} spids: [114] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'SVCS_NAME='> name:SVCS_NAME) op: assign_op.Equal rhs: {<'system/nws_rdc'>} spids: [117] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ONLINE='> name:ONLINE) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [ (command.Simple words: [{($ Id.VSub_DollarName SVCS)} {<-D>} {($ Id.VSub_DollarName SVCS_NAME)}] redirects: [ (redir op: <Id.Redir_DGreat '2>>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] more_env: [] do_fork: T ) (C {<grep>} {(DQ <'^online'>)}) ] negated: F stderr_indices: [] ) right: <Id.Backtick_Right '`'> ) } spids: [127] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {<-z>} {($ Id.VSub_DollarName ONLINE)} {<Id.Lit_RBracket ']'>}) ] ) action: [ (C {<echo>} {(DQ ($ Id.VSub_DollarName SVCS_NAME) <' not online'>)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [149 159] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.DBracket expr: (bool_expr.Unary op_id:Id.BoolUnary_z child:{(DQ ($ Id.VSub_Number 2))}) redirects: [] ) ] ) action: [ (C {<echo>} {(DQ ($ Id.VSub_DollarName USAGE))}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [177 189] ) ] else_action: [] redirects: [] ) (command.Case to_match: {(DQ ($ Id.VSub_Number 1))} arms: [ (case_arm pat_list: [{(SQ <start>)}] action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_x child: {($ Id.VSub_DollarName RDCBOOT)} ) redirects: [] ) ] ) action: [ (C {($ Id.VSub_DollarName RDCBOOT)} {<-r>} {<-C>} {(DQ ($ Id.VSub_Number 2))}) ] spids: [220 231] ) ] else_action: [] redirects: [] ) ] spids: [214 217 248 -1] ) (case_arm pat_list: [{(SQ <stop>)}] action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_x child: {($ Id.VSub_DollarName RDCBOOT)} ) redirects: [] ) ] ) action: [ (C {($ Id.VSub_DollarName RDCBOOT)} {<-s>} {<-C>} {(DQ ($ Id.VSub_Number 2))}) ] spids: [257 268] ) ] else_action: [] redirects: [] ) ] spids: [251 254 285 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<echo>} {($ Id.VSub_DollarName USAGE)}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] spids: [288 289 302 -1] ) ] redirects: [] ) ] )