Cisco Cisco Prisma II ICIM 2 Installation Guide

Page of 184
 
Chapter 3    Operation Using CLI 
 
 
 
56 
78-4025693-01 Rev D 
Terminal Commands 
Overview 
Terminal commands are intended for control of the output or pattern matching 
format. 
Note: 
 
Using the alarm command while in this mode shows a list of all active alarms in 
the ICIM domain. 
 
Using the show command while in this mode lists the current values for all 
terminal states. 
 
Colsep Command 
The colsep command controls the separation between columns of output in the 
display. By default, output is displayed in columns only slightly wider than are 
needed for the longest value in the column. Adding spaces between columns can 
make the output more legible to a craft operator, but may make output parsing more 
difficult for a remote network management system. 
On the other hand, if network management software recognizes a specific character 
(such as |) as a column separator, the colsep command can be used to insert this 
character between columns in the output. 
The basic command syntax is as follows: 
colsep "string"
 
where string is the column separation character or characters, or is empty ("") to 
specify default column separation. 
In the sample dialog below, a network management system sends this command to 
enforce default column separation just before it sends a command requesting 
columns of output. 
CLI> terminal colsep "" exit
 
CLI> module modid * show control *serv* exit
 
  MODID  NAME     SETTING  UNITS
 
  01/07  Service  Off (0)
 
  01/08  Service  Off (0)
 
  01/09  ServiceA On (1)
 
  01/09  ServiceB Off (0)
 
SUCCESS!
 
CLI>
 
The next example shows how the output could be modified to make it more easily 
parsed by another program, such as Microsoft Excel: