そんなときの対処方法がKBにあったので掲載。
ちなみに、SRXの通常のパスワードリカバリーは下記を参照
ニュースからコンフィグまで、Juniperに関する情報なら何でも扱っていきます。少数派なJuniperユーザの一人としてがんばっていきたいと思います。(もうじき多数派になるかと。。。)
| root@SRX# set system syslog console ファシリティ レベル |
root@SRX# deactivate system syslog console any |
root@SRX# show system syslog console inactive: any any; authorization any; |
root@SRX# activate system syslog console any |
May 29 07:14:57 SRX mgd[1326]: UI_CMDLINE_READ_LINE: User 'root', command 'show system syslog ' |
root@SRX> help syslog UI_CMDLINE_READ_LINE Name: UI_CMDLINE_READ_LINE Message: User ' Help: User entered command at CLI prompt Description: The indicated user typed the indicated command at the CLI prompt and pressed the Enter key, sending the command string to the management process (mgd). Type: Event: This message reports an event, not an error Severity: info |
root@SRX> show log auth May 28 11:25:32 SRX login: LOGIN_PAM_AUTHENTICATION_ERROR: PAM authentication error for user hoge May 28 11:25:32 SRX login: LOGIN_FAILED: Login failed for user hoge from host root@SRX> configure root@SRX# set system syslog file auth explicit-priority root@SRX# exit root@SRX> show log auth May 29 09:09:48 SRX login: %AUTH-3-LOGIN_PAM_AUTHENTICATION_ERROR: PAM authentication error for user ohoge May 29 09:09:48 SRX login: %AUTH-5-LOGIN_FAILED: Login failed for user ohoge from host May 29 09:10:01 SRX login: %AUTH-6-LOGIN_INFORMATION: User root logged in from host [unknown] on device ttyu0 |
root@SRX> monitor start auth root@SRX> monitor list monitor start "auth" (Last changed May 29 09:24:45) root@SRX> monitor stop |
root@SRX# set system syslog file ファイル名 ファシリティ名 レベル名 |
root@SRX# set system syslog file auth authorization any |
root@SRX# show system syslog archive size 100k files 3; user * { any emergency; } file messages { any critical; authorization info; } file interactive-commands { interactive-commands error; } file auth { authorization any; } |
root@SRX> show log messages May 28 11:00:01 SRX newsyslog[1065]: logfile turned over due to size>100K May 28 11:25:32 SRX login: LOGIN_PAM_AUTHENTICATION_ERROR: PAM authentication error for user hoge May 28 11:25:32 SRX login: LOGIN_FAILED: Login failed for user hoge from host |
root@SRX> show log /var/db/config/juniper.conf.10.gz ## Last changed: 2010-05-04 08:43:07 JST version 10.0R2.10; system { host-name SRX; time-zone Asia/Tokyo; |
root@SRX> file show /var/log/messages May 28 11:00:01 SRX newsyslog[1065]: logfile turned over due to size>100K May 28 11:25:32 SRX login: LOGIN_PAM_AUTHENTICATION_ERROR: PAM authentication error for user hoge May 28 11:25:32 SRX login: LOGIN_FAILED: Login failed for user hoge from host May 28 11:25:36 SRX login: LOGIN_PAM_AUTHENTICATION_ERROR: PAM authentication error for user root |
| # rollback 0 |
root@SRX> show configuration ## Last commit: 2010-05-05 19:10:49 JST by root version 10.0R2.10; system { host-name SRX; |
root@SRX> file show /config/juniper.conf.gz ## Last changed: 2010-05-07 18:05:39 JST version 10.0R2.10; system { host-name SRX; |
| root@SRX# annotate 階層 "コメント" |
root@SRX# annotate system "This is hoge" [edit] root@SRX# show ## Last changed: 2010-05-05 19:35:30 JST version 10.0R2.10; /* This is hoge */ system { host-name SRX; |
root@SRX# edit system /* systemの階層に移動 */ [edit system] root@SRX# annotate name-server "That is hogeohge" [edit system] root@SRX# show host-name SRX; time-zone Asia/Tokyo; root-authentication { encrypted-password "$1$Qr.doh8u$pICbeB.DAEA9Ue789OLZ61"; ## SECRET-DATA } /* That is hogeohge */ name-server { 208.67.222.222; 208.67.220.220; } |
root@SRX# edit system /* systemの階層に移動 */ [edit system] root@SRX# annotate name-server "" [edit system] |
| root@SRX# set system max-configurations-on-flash 10 |
| root@SRX# set system max-configuration-rollbacks 49 |
| root@SRX> file list /config /config: .snap/ juniper.conf.1.gz juniper.conf.2.gz juniper.conf.3.gz juniper.conf.gz juniper.conf.md5* license-status.db usage.db |
root@SRX> file list /var/db/config /var/db/config: juniper.conf.4.gz juniper.conf.5.gz juniper.conf.6.gz juniper.conf.7.gz |
root@SRX> configure Entering configuration mode [edit] root@SRX# exit Exiting configuration mode root@SRX> |
| root@SRX> show system rollback 0 ## Last changed: 2010-05-02 00:30:04 JST version 10.0R2.10; system { host-name SRX240; time-zone Asia/Tokyo; root-authentication { encrypted-password "$1$Ha.XX8Sq$XINOPs3795WyoZc3VX8/p0"; ## SECRET-DATA } |
root@SRX> show system rollback 1 ## Last changed: 2010-05-01 23:20:17 JST version 10.0R2.10; system { host-name SRX; time-zone Asia/Tokyo; root-authentication { encrypted-password "$1$Ha.XX8Sq$XINOPs3795WyoZc3VX8/p0"; ## SECRET-DATA } |
| root@SRX> set date 201005012332 Sat May 1 23:32:00 UTC 2010 |
root@SRX> show system uptime Current time: 2010-05-01 23:32:36 UTC System booted: 2010-05-01 09:51:26 UTC (13:41:10 ago) Protocols started: 2010-05-01 09:54:01 UTC (13:38:35 ago) Last configured: 2010-05-01 23:20:16 UTC (00:12:20 ago) by root 11:32PM up 13:41, 1 user, load averages: 3.08, 3.04, 3.01 |
root@SRX# set system time-zone Asia/Tokyo root@SRX# commit |
root@SRX> show system uptime Current time: 2010-05-01 23:47:36 JST System booted: 2010-05-01 09:51:26 JST (13:56:10 ago) Protocols started: 2010-05-01 09:54:01 JST (13:53:35 ago) Last configured: 2010-05-01 23:46:58 JST (00:00:38 ago) by root 11:47PM up 13:56, 1 user, load averages: 3.07, 3.04, 3.01 |