[Contents] [Prev] [Next] [Index] [Report an Error]


Use CLI Command Completion

To complete the show interfaces command, do the following:

user@host> show in<Spacebar>terfaces <Enter>

Physical interface: at-0/1/0, Enabled, Physical link is Up
  Interface index: 11, SNMP ifIndex: 65
  Link-level type: ATM-PVC, MTU: 4482, Clocking: Internal, SONET mode
  Speed: OC12, Loopback: None, Payload scrambler: Enabled
  Device flags   : Present Running
  Link flags     : 0x01
[...Output truncated...]

To display a list of all log files whose names start with the string "messages," and then display the contents of one of the files, do the following:

user@host> show log mes?

Possible completions:
  <filename>                                Log file to display
  messages                                Size: 1417052, Last changed: Mar  3 00:33
  messages.0.gz                                Size: 145575, Last changed: Mar  3 00:00
  messages.1.gz                                Size: 134253, Last changed: Mar  2 23:00
  messages.10.gz                                Size: 137022, Last changed: Mar  2 14:00
  messages.2.gr                                Size: 137112, Last changed: Mar  2 22:00
  messages.3.gz                                Size: 121633, Last changed: Mar  2 21:00
  messages.4.gz                                Size: 135715, Last changed: Mar  2 20:00
  messages.5.gz                                Size: 137504, Last changed: Mar  2 19:00
  messages.6.gz                                Size: 134591, Last changed: Mar  2 18:00
  messages.7.gz                                Size: 132670, Last changed: Mar  2 17:00
  messages.8.gz                                Size: 136596, Last changed: Mar  2 16:00
  messages.9.gz                                Size: 136210, Last changed: Mar  2 15:00

user@host> show log mes<Tab>sages.4<Tab>.gz<Enter>
Jan 15 21:00:00 myhost newsyslog[1381]: logfile turned over
[...Output truncated...]

[Contents] [Prev] [Next] [Index] [Report an Error]