(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'CMD='> name:CMD) op: assign_op.Equal rhs: {<'/usr/sbin/iiboot'>} spids: [72] ) ] 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: [75] ) ] 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_ii'>} spids: [78] ) ] 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: [88] ) ] 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: [110 120] ) ] 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: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt='> name:opt) op: assign_op.Equal rhs: {<usage>} spids: [153] ) ] redirects: [] ) ] spids: [138 150] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'opt='> name:opt) op: assign_op.Equal rhs: {($ Id.VSub_Number 1)} spids: [159] ) ] redirects: [] ) ] redirects: [] ) (command.Case to_match: {($ Id.VSub_DollarName opt)} 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 CMD)} ) redirects: [] ) ] ) action: [ (command.Simple words: [{($ Id.VSub_DollarName CMD)} {<-C>} {(DQ ($ Id.VSub_Number 2))} {<-r>}] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (redir op: <Id.Redir_GreatAnd '2>&'> loc: (redir_loc.Fd fd:2) arg: {<1>} ) ] more_env: [] do_fork: T ) ] spids: [177 188] ) ] else_action: [] redirects: [] ) ] spids: [171 174 212 -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 CMD)} ) redirects: [] ) ] ) action: [ (command.Simple words: [{($ Id.VSub_DollarName CMD)} {<-C>} {(DQ ($ Id.VSub_Number 2))} {<-s>}] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (redir op: <Id.Redir_GreatAnd '2>&'> loc: (redir_loc.Fd fd:2) arg: {<1>} ) ] more_env: [] do_fork: T ) ] spids: [221 232] ) ] else_action: [] redirects: [] ) ] spids: [215 218 256 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [(C {<echo>} {(DQ <'usage: ii {start|stop} cluster_resource'>)})] spids: [259 260 270 -1] ) ] redirects: [] ) ] )