Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233114
  • 博文数量: 47
  • 博客积分: 776
  • 博客等级: 军士长
  • 技术积分: 514
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-18 12:04
文章分类

全部博文(47)

文章存档

2016年(1)

2015年(18)

2013年(28)

我的朋友

分类: 网络与安全

2015-05-21 17:16:31

提交配置:commit后配置会自动保存
admin@jr1# commit ?
Possible completions:
  <[Enter]>            Execute this command
  and-quit             Quit configuration mode if commit succeeds //提交并退出
  at                   Time at which to activate configuration changes //延迟提交
  check                Check correctness of syntax; do not apply changes //只做检查不提交
  comment              Message to write to commit log
  confirmed            Automatically rollback if not confirmed
  |                    Pipe through a command
[edit]
admin@jr1#



配置回退: 0为当前配置,总共保存50个配置备份
admin@jr1# rollback ?
Possible completions:
  <[Enter]>            Execute this command
  0                    2015-05-21 16:43:07 UTC by root via cli
  1                    2015-05-21 16:42:31 UTC by root via cli
  2                    2015-05-19 17:24:35 UTC by admin via cli commit at
  3                    2015-05-19 17:19:23 UTC by admin via cli commit at
  4                    2015-05-19 17:02:19 UTC by admin via cli commit at
  5                    2015-05-19 16:58:14 UTC by admin via cli commit at
  6                    2015-05-19 16:52:51 UTC by admin via cli commit at
  7                    2015-05-19 16:41:57 UTC by admin via cli
  8                    2015-05-19 16:22:48 UTC by admin via cli commit at
  9                    2015-05-19 15:32:40 UTC by root via cli
  10                   2015-05-19 15:20:45 UTC by root via cli commit at
  11                   2015-05-19 15:15:41 UTC by root via cli
  12                   2015-05-19 15:14:50 UTC by root via cli commit at
  13                   2015-03-14 08:55:35 UTC by root via cli commit at
  14                   2015-03-14 08:50:31 UTC by root via cli
  15                   2015-03-14 08:50:11 UTC by root via cli
  16                   2015-03-14 08:48:48 UTC by root via cli
  17                   2015-03-13 09:25:42 UTC by root via cli
  18                   2015-03-13 09:19:34 UTC by root via cli
  19                   2015-03-13 09:19:17 UTC by root via cli
  20                   2015-03-13 09:15:40 UTC by root via cli
  21                   2013-06-17 02:01:55 UTC by root via cli
  22                   2013-06-17 01:40:08 UTC by root via cli
  23                   2013-06-17 01:37:39 UTC by root via cli
  24                   2012-12-05 01:37:05 UTC by admin via cli
  25                   2012-11-20 08:03:29 UTC by admin via cli
  26                   2012-11-20 06:28:18 UTC by admin via cli
  27                   2012-11-19 06:34:04 UTC by admin via cli
  28                   2012-11-16 06:57:34 UTC by admin via cli
  29                   2012-11-16 06:53:11 UTC by admin via cli
  30                   2012-11-16 06:51:06 UTC by admin via cli
  31                   2012-11-16 06:44:50 UTC by admin via cli
  32                   2012-11-16 06:33:51 UTC by admin via cli
  33                   2012-11-16 06:29:42 UTC by admin via cli
  34                   2012-11-16 06:25:58 UTC by admin via cli
  35                   2012-11-16 06:09:51 UTC by admin via cli
  36                   2012-11-16 05:53:19 UTC by admin via cli
  37                   2012-11-16 02:47:19 UTC by admin via cli
  38                   2012-11-16 02:40:07 UTC by admin via cli
  39                   2012-11-16 02:32:00 UTC by admin via cli
  40                   2012-11-16 02:10:39 UTC by admin via cli
  41                   2012-11-16 01:49:33 UTC by admin via cli
  42                   2012-11-16 01:47:35 UTC by admin via cli
  43                   2012-11-15 08:50:06 UTC by admin via cli
  44                   2012-11-15 08:29:59 UTC by admin via cli
  45                   2012-11-15 07:49:56 UTC by admin via cli
  46                   2012-11-15 07:42:05 UTC by admin via cli
  47                   2012-11-15 07:16:31 UTC by admin via cli
  48                   2012-11-15 06:59:14 UTC by admin via cli
  49                   2012-11-15 06:42:32 UTC by admin via cli
  |                    Pipe through a command
[edit]
admin@jr1#

把配置保存为提一个文件:
admin@jr1# save ?            
Possible completions:
             Filename (URL, local, remote, or floppy)
  terminal             Use login terminal
[edit]
admin@jr1#

load一个配置:
Possible completions:
  factory-default      Override existing configuration with factory default  //缺省配置
  merge                Merge contents with existing configuration //合并配置
  override             Override existing configuration //覆盖配置
  patch                Load patch file into configuration
  replace              Replace configuration data
  set                  Execute set of commands on existing configuration
  update               Update existing configuration
[edit]
admin@jr1#

应急配置文件:可以将一个配置保存为rescue应急配置文件,以便在紧急的时候通过load来装入。
admin@jr1> request system configuration rescue ?
Possible completions:
  delete               Delete the rescue configuration //删除当前的应急配置文件
  save                 Save committed configuration as rescue configuration //将当前的配置保存为应急配置文
admin@jr1>
应急配置文件保存在/configure/的rescue.conf.gz中,
admin@jr1> file show /config/?   
Possible completions:
  <[Enter]>            Execute this command
             Filename to show
  /config/juniper.conf.1.gz  Size: 393, Last changed: May 21 17:09:44
  /config/juniper.conf.2.gz  Size: 391, Last changed: May 21 16:43:03
  /config/juniper.conf.3.gz  Size: 395, Last changed: May 21 16:42:27
  /config/juniper.conf.gz  Size: 390, Last changed: May 21 17:11:47
  /config/juniper.conf.md5  Size: 32, Last changed: May 19 15:24:55
  /config/lr/          Last changed: Nov 20 2012
  /config/rescue.conf.gz  Size: 390, Last changed: May 21 17:14:36
  /config/usage.db     Size: 1436, Last changed: Mar 28 2012
admin@jr1>




配置文件show:

admin@jr1# show | ?
Possible completions:
  compare              Compare configuration changes with prior version //比较配置文件
  count                Count occurrences  //统计行数
  display              Show additional kinds of information //改变现实方式,譬如按照XML方式显示。
  except               Show only text that does not match a pattern //排除某些行
  find                 Search for first occurrence of pattern  //搜索
  hold                 Hold text without exiting the --More-- prompt
  last                 Display end of output only
  match                Show only text that matches a pattern //只显示匹配的行
  no-more              Don't paginate output //不显示--more--换行
  request              Make system-level requests //发送show的信息到其他用户,在其他用户的终端上可看到show出来的信息。
  resolve              Resolve IP addresses //解析IP地址
  save                 Save output text to file //保存到一个文件
  trim                 Trim specified number of columns from start of line //指定显示的列
[edit]
admin@jr1# show | compare ?
Possible completions:
  <[Enter]>            Execute this command
             Filename or URL of configuration file
  rescue               Size: 864, Last changed: May 21 17:08:55
  rollback             Index of rollback configuration file (0..49)
  |                    Pipe through a command
[edit]
admin@jr1#
阅读(1670) | 评论(0) | 转发(0) |
0

上一篇:003-配置模式

下一篇:005-文件处理

给主人留下些什么吧!~~