System Administration Guide: Network Interfaces and Network Virtualization

ProcedureHow to Customize the Output of the ipmpstat Command in a Script

When you use the ipmpstat, by default, the most meaningful fields that fit in 80 columns are displayed. In the output, all the fields that are specific to the option that you use with the ipmpstat command are displayed, except in the case of the ipmpstat -p syntax. If you want to specify the fields to be displayed, then you use the -o option in conjunction with other options that determine the output mode of the command. This option is particularly useful when you issue the command from a script or by using a command alias

  1. To customize the output, issue one of the following commands:

    • To display selected fields of the ipmpstat command, use the -o option in combination with the specific output option. For example, to display only the GROUPNAME and the STATE fields of the group output mode, you would type the following:

      $ ipmpstat -g -o groupname,state
      itops0     ok
      accgt1     failed
      field2     degraded
    • To display all the fields of a given ipmpstat command, use the following syntax:

      # ipmpstat -o all