IOS XR では、show コマンドに | (パイプ)を併用することで使用可能なオプションやユーティリティ
が用意されています。特に bigin, exclude, file, include はよく使用されるオプションですが、
utility オプションを使用することで、さら多くユーティリティを使用することが可能です。
コマンド例 |
---|
RP/0/RP0/CPU0:CRS#show run | ? begin Begin with the line that matches exclude Exclude lines that match file Save the configuration include Include lines that match utility A set of common unix utilities <cr> RP/0/RP0/CPU0:CRS#show logging | utility ? cut Cut out selected fields of each line of a file egrep Extended regular expression grep fgrep Fixed string expression grep head Show set of lines/characters from the top of a file less Fixed string pattern matching more Paging Utility More script Launch a script for post processing sort Sort, merge, or sequence-check text files tail Copy the last part of files uniq Report or filter out repeated lines in a file wc Counting lines/words/characters of a file xargs Construct argument list(s) and invoke a program |
大量の出力をコンソールで確認する場合に有効なので、目的に応じてご使用ください。