Suppress Headers in CLI Output

To suppress the headers in CLI output, you can create a file that includes the functions provided in the following section and can refer this file at the top of each script.
csp
To suppress the headers in CLI output, you can create a file that includes the functions provided in the following section and can refer this file at the top of each script.
The functions in the following procedure call CLI commands and strip the header information from the output of the commands.
Follow these steps:
  1. Create a file named StripHeaders in your scripts directory.
  2. Include the following functions in the StripHeaders file:
    tcreate() # only needed for the createalarm { # and create event commands $CLIPATH/create [email protected] | tail +2 } tseek()     {   $CLIPATH/seek [email protected] | tail +2     } tshow() { $CLIPATH/show [email protected] | tail +2 } tupdate() { $CLIPATH/update [email protected] | tail +2 }
  3. Include the name StripHeaders at the top of your CLI script as follows:
    . StripHeaders
  4. Call the tcreate(), tseek(), tshow(), and tupdate() functions instead of the corresponding CLI command whenever you want to strip the headers from CLI output.
    For example, the following line generates the output of the show models command without the CLI header information:
    tshow models