WAAS の CLI には、IOS でログ確認時に利用される "show logging" コマンドは実装されていません。
WAAS の CLI でログを確認する際は、代わりに "type" コマンドもしくは、"type-tail" コマンドでログファイルを指定します。
"type" コマンドはファイルの先頭から順に表示します。
"type-tail" コマンドはファイルの末尾から指定した行を表示するか、follow オプションを使い、ログの更新をリアルタイムで監視することが出来ます。
follow オプションを利用する際は、事前に "terminal length 0" コマンドを実行しておくと、ログのスクロールが途中で停止しなくなります。
IOS の "show logging" コマンド該当するログは、syslog.txt ファイルに記録されており、これらのコマンドで表示できます。
WAE7326-B#type syslog.txt 2010 Aug 5 05:01:05 (none) populate_ds: %WAAS-CLI-5-170050: Cisco WAAS software starts booting 2010 Aug 5 05:01:06 (none) create_etc_hosts.sh: %WAAS-CLI-5-170051: HOSTPLUSDOM AIN: NO-HOSTNAME 2010 Aug 5 05:01:06 (none) ver_hostname: %WAAS-CLI-5-170053: Recreated etc_host s (1, 0) 2010 Aug 5 05:01:07 NO-HOSTNAME Nodemgr: %WAAS-NODEMGR-5-330082: [CLI_VER_NTP] requests stop service ntpd. 2010 Aug 5 05:01:08 NO-HOSTNAME ftp_export: %WAAS-UNKNOWN-2-899999: sysdb_item_ get failed for /cfg/gl/wmt/trans_log/export/enable: 4 2010 Aug 5 05:01:08 NO-HOSTNAME ftp_export: %WAAS-UNKNOWN-2-899999: exiting at ftp_export.c:1012 2010 Aug 5 05:01:08 NO-HOSTNAME Nodemgr: %WAAS-NODEMGR-5-330080: [ver_telnetd] requests start service telnetd 2010 Aug 5 05:01:11 NO-HOSTNAME Nodemgr: %WAAS-NODEMGR-5-330080: [Nodemgr_Admin ] requests start service videoao 2010 Aug 5 05:01:11 NO-HOSTNAME ver_ao_common: %WAAS-CLI-5-170053: sucessfull n odemgr start videoao request --More-- |
"type-tail" コマンドの実行例
WAE7326-B#type-tail syslog.txt ? <1-65535> The numbers of lines from end follow Follow the file as it grows | Output Modifiers <cr> --- syslog.txt ファイルの末尾10行を表示 WAE7326-B#type-tail syslog.txt 10 2010 Sep 29 12:17:41 WAE7326-B last message repeated 4 times 2010 Sep 29 12:26:56 WAE7326-B last message repeated 3 times 2010 Sep 29 12:33:06 WAE7326-B last message repeated 2 times 2010 Sep 29 12:33:59 WAE7326-B login: %WAAS-SYSUTL-5-800003: admin login on 0 fr om 192.168.61.13 2010 Sep 29 12:35:24 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330027: Process with pid 4871 exits 2010 Sep 29 12:35:24 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330024: Service 'mingett y' exited normally with code 0 2010 Sep 29 12:35:24 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330032: Stopping service : 'mingetty'. 2010 Sep 29 12:35:24 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330048: DEBUG: respawn_c ount = 1, period: 4345639.190000 2010 Sep 29 12:35:25 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330040: Start service 'm ingetty' using: '/ruby/bin/startmingetty.sh' with pid: 31616 2010 Sep 29 12:35:27 WAE7326-B login: %WAAS-SYSUTL-5-800003: admin login on ttyS 0, via login.c
--- ログのスクロールが止まらないようし、ログ更新のリアルタイム監視 --- ctr + c で止めます。 WAE7326-B#terminal length 0 WAE7326-B#type-tail syslog.txt follow 2010 Sep 29 12:26:56 WAE7326-B last message repeated 3 times 2010 Sep 29 12:33:06 WAE7326-B last message repeated 2 times 2010 Sep 29 12:33:59 WAE7326-B login: %WAAS-SYSUTL-5-800003: admin login on 0 from 192.168.61.13 2010 Sep 29 12:35:24 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330027: Process with pid 4871 exits 2010 Sep 29 12:35:24 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330024: Service 'mingetty' exited normally with code 0 2010 Sep 29 12:35:24 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330032: Stopping service: 'mingetty'. 2010 Sep 29 12:35:24 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330048: DEBUG: respawn_count = 1, period: 4345639.190000 2010 Sep 29 12:35:25 WAE7326-B Nodemgr: %WAAS-NODEMGR-5-330040: Start service 'mingetty' using: '/ruby/bin/startmingetty.sh' with pid: 31616 2010 Sep 29 12:35:27 WAE7326-B login: %WAAS-SYSUTL-5-800003: admin login on ttyS0, via login.c 2010 Sep 29 12:36:12 WAE7326-B exec_license: %WAAS-CLI-5-170098: The License Transport has not been purchased.
|