技术
成就梦想!

H3C 防火墙挂载日志存储硬盘或SD卡

V7防火墙挂在日志存储硬盘命令行配置


<H3C_F1000_IPS>dir ?     #检查日志硬盘有没有识别到
  /all              Display all files and directories in the current directory
  /all-filesystems  Display the files and directories in the root directories of
                    all storage media
  >                 Redirect it to a file
  >>                Redirect it to a file in append mode
  STRING            [drive][path][file name]
  flash:            Device name
  hda0:             Device name          #这里是识别到的hda的sata硬盘
  slot1#flash:      Device name
  slot1#hda0:       Device name
  |                 Matching output
  <cr>              

<H3C_F1000_IPS>fdisk hda:      #对hda设备分区
Capacity of hda: : 476940M bytes
Partition 1 (32MB~476908MB, 476940MB. Press CTRL+C to quit or Enter to use all available space): 
hda: will be divided into the following partition(s):
DeviceName               Capacity
hda0:               	476940MB
All data on hda: will be lost, continue? [Y/N]:y    #选择Y
Partitioning hda:........... Done.
<H3C_F1000_IPS>for
<H3C_F1000_IPS>format hd
<H3C_F1000_IPS>format hda0:         #格式化硬盘分区
All data on hda0: will be lost, continue? [Y/N]:y    #选择Y
Formatting hda0:........... Done.
[H3C_F1000_IPS]  
[H3C_F1000_IPS]info-center logfile directory hda0:/ #设置日志存储位置为hda0的磁盘分区
[H3C_F1000_IPS]display logfile summary 
  #查询日志存储位置
Log file: Enabled
  Log file size quota: 10 MB
  
Log file directory: hda0:
  
Writing frequency: 24 hour 0 min 0 sec
赞(0)
未经允许不得转载:未来往事 » H3C 防火墙挂载日志存储硬盘或SD卡

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址