1.命令结构

  config      Configure object.    对策略,对象等进行配置

  get   Get dynamic and system information. 查看相关关对象的参数信息

  show        Show configuration.  查看配置文件

  diagnose    Diagnose facility.   诊断命令

  execute     Execute static commands.        常用的工具命令,如 ping

2.常用命令1

  1、查看主机名,管理端口

  FortiGate # show system global

  2、查看系统状态信息,当前资源信息

  FortiGate # get system performance status

  3、查看应用流量统计

  FortiGate # get system performance firewall statistics

  4、查看arp表

  FortiGate # get system arp

  5、查看arp丰富信息

  FortiGate # diagnose ip arp list

  6、清楚arp缓存

  FortiGate # execute clear system arp table

  7、 查看当前会话表

  FortiGate # diagnose sys session stat 或 FortiGate # diagnose sys session full-stat;

  8、 查看会话列表

  FortiGate # diagnose sys session list

  9、查看物理接口状态

  FortiGate # get system interface physical

  10、查看默认路由配置

  FortiGate # show router static

  11、查看路由表中的静态路由

  FortiGate # get router info routing-table static

  12、查看ospf相关配置

  FortiGate # show router ospf

  13、查看全局路由表

  FortiGate # get router info routing-table all

  14、查看HA状态

  FortiGate # get system ha status

  15、查看主备机是否同步

  FortiGate # diagnose sys ha showcsum

  16、execute 命令:

  FortiGate #execute  ping  8.8.8.8         //常规ping操作

  FortiGate #execute  ping-options source  192.168.1.200    //指定ping数据包的源地址 192.168.1.200

  FortiGate #execute  ping  8.8.8.8     //继续输入ping的目标地址,即可通过192.168.1.200的源地址执行ping操作

  FortiGate #execute  traceroute   8.8.8.8

  FortiGate #execute  telnet 2.2.2.2      //进行telnet访问

  FortiGate #execute  ssh  2.2.2.2        //进行ssh 访问

  FortiGate #execute  factoryreset        //恢复出厂设置

  FortiGate #execute  reboot              //重启设备

  FortiGate #execute  shutdown            //关闭设备

3.常用命令2  

  1)恢复出厂配置:进入命令行,执行execute factoryrest命令,回车后会提示此操作将会恢复出厂配置,是否继续,输入字母"y"即可

  FortiGate #execute  factoryreset

This operation will reset the system to factory default!

Do you want to continue? (y/n) y

  恢复出厂设置后,管理口地址恢复为192.168.1.99,可通过此地址登陆 https://192.168.1.99,进行管理,用户名和密码分别恢复默认的admin和空。

  2)清除当前回话:diagnose sys session clear

  注:不会导致断网,但登录防火墙会断开(重连即可)。

  3)查看硬盘信息-硬盘:diagnose hardware deviceinfo disk

  4)格式化日志硬盘:execute formatlogdisk

  5)重启设备:execute reboot

  6)恢复出厂设置:execute factoryreset

  7)查看HA状态:FortiGate # get system ha status

  查看主备机是否同步:FortiGate # diagnose sys ha showcsum

  8)查看设备进程信息:diagnose sys top

  9)运行状况检查命令

  查看系统当前运行状态:get system performance status

4.

  •   1)命令行查看单用户配置

  FG300C3912601260 # show user local xinghen

  config user local

     edit "xinghen"

   set type ldap

  set two-factor fortitoken

  set fortitoken "FTKMOB67CBFFD23E"

  set email-to "xinghen1216@hen.com"

   set ldap-server "xinghen"

     next

  end

  查看全部配置

  FG300C3912601260 # show full-configuration user local xinghen

  config user local

  edit "xinghen"

  set status enable

   set type ldap

   set two-factor fortitoken

  set fortitoken "FTKMOB67CBFFD23E"

  set email-to "xinghen1216@hen.com"

   set sms-server fortiguard

  set sms-phone ''

   set authtimeout 0

  set auth-concurrent-override disable

    set ldap-server "xinghen"

   set workstation ''

   next

  end

2)命令行查看所有用户及用户组

  FG300C3912601260 # show user group hris

  config user group

      edit "hris"

       set member "zhaoting5" "lisimin" "zhuyi1" "sunlin3"

   next

  end

3)命令行查看硬件信息

  FGT5HD3915800383 # get hardware

  cpu       Display detailed information for all installed CPU(s).

  memory    Display system memory information.

  nic       Display NIC information.

  npu       npu

  status    Hardware status.

5.查看当前的实际全部详细路由:get router info kernel       get router info routing-table database

FortiGate常用命令的更多相关文章

  1. Fortigate防火墙常用命令

    命令结构 #config 对策略,对象等进行配置 #get  查看相关对象的参数 #show 查看配置文件 #diagnose 诊断命令 #execute  常用的工具命令,如ping treacer ...

  2. Linux 常用命令(持续补充)

    常用命令: command &:将进程放在后台执行 ctrl + z:暂停当前进程 并放入后台 jobs:查看当前后台任务 bg( %id):将任务转为后台执行 fg( %id):将任务调回前 ...

  3. LVM基本介绍与常用命令

    一.LVM介绍LVM是 Logical Volume Manager(逻辑卷管理)的简写,它是Linux环境下对磁盘分区进行管理的一种机制LVM - 优点:LVM通常用于装备大量磁盘的系统,但它同样适 ...

  4. Linux学习笔记(一):常用命令

    经过统计Linux中能够识别的命令超过3000种,当然常用的命令就远远没有这么多了,按照我的习惯,我把已经学过的Linux常用命令做了以下几个方面的分割: 1.文件处理命令 2.文件搜索命令 3.帮助 ...

  5. git常用命令(持续更新中)

    git常用命令(持续更新中) 本地仓库操作git int                                 初始化本地仓库git add .                       ...

  6. 【原】npm 常用命令详解

    今年上半年在学习gulp的使用,对npm的掌握是必不可少的,经常到npm官网查询文档让我感到不爽,还不如整理了一些常用的命令到自己博客上,于是根据自己的理解简单翻译过来,终于有点输出,想学习npm这块 ...

  7. npm常用命令

    npm常用命令 环境:win7 npm 是什么 NPM(node package manager),通常称为node包管理器.顾名思义,它的主要功能就是管理node包,包括:安装.卸载.更新.查看.搜 ...

  8. Git 常用命令

    一.初始環境配置 git config --global user.name "John Doe"git config --global user.email johndoe@ex ...

  9. linux iptables常用命令之配置生产环境iptables及优化

    在了解iptables的详细原理之前,我们先来看下如何使用iptables,以终为始,有可能会让你对iptables了解更深 所以接下来我们以配置一个生产环境下的iptables为例来讲讲它的常用命令 ...

随机推荐

  1. 机器学习进阶-图像金字塔与轮廓检测-轮廓检测 1.cv2.cvtColor(图像颜色转换) 2.cv2.findContours(找出图像的轮廓) 3.cv2.drawContours(画出图像轮廓) 4.cv2.contourArea(轮廓面积) 5.cv2.arcLength(轮廓周长) 6.cv2.aprroxPloyDP(获得轮廓近似) 7.cv2.boudingrect(外接圆)..

    1. cv2.cvtcolor(img, cv2.COLOR_BGR2GRAY) # 将彩色图转换为灰度图 参数说明: img表示输入的图片, cv2.COLOR_BGR2GRAY表示颜色的变换形式 ...

  2. 08-认识margin

    1.margin margin:外边距的意思.表示边框到最近盒子的距离. /*表示四个方向的外边距离为20px*/ margin: 20px; /*表示盒子向下移动了30px*/ margin-top ...

  3. day16-小数据池

    一,什么是代码块 Python程序是由代码块构造的.块是一个python程序的文本,他是作为一个单元执行的. 代码块:一个模块,一个函数,一个类,一个文件等都是一个代码块. 而作为交互方式输入的每个命 ...

  4. jquery事件绑定与事件委托

    //事件绑定简写形式 $(".div2 button").click(function () { $(".div1").scrollTop(0) }) //写全 ...

  5. 更改html代码后网页不更新

    写了一个非常简单的 html 页面,只有简单的跳转功能,但是在 Eclipse 下更改代码后用 chrome 浏览器打开时还是显示原来的网页.开始我以为是网页有错误或者有不规范的地方,因为我编写的是 ...

  6. js函数的创建

    1.js 函数的创建有几种方式: 1.1  直接声明 1.2 创建匿名函数,然后赋值 1.3 声明函数,然后赋值给变量 1.4 使用1.3 得到的变量再赋值给变量 1.5 使用函数对象创建函数 < ...

  7. RTS寻路相关资料收集

    http://www.cocoachina.com/game/20150824/13174.html RVO算法 RVO避开agent

  8. zstack使用笔记之端口转发

    根据官方教程,使用端口转发,可以把公网流量转发到内网 实验环境是这样的 公网网段:172.17.3.x 内网网段:192.168.1.x 首先创建云路由网络,这个就不说了,根据教程大家都可以创建出来, ...

  9. Downloadftp

    #!/bin/bash FILENAME=$ DSTDIR=$ FTPSRV=ip FTPUSER="user" FTPPWD="password" SRCDI ...

  10. ArcGIS案例学习笔记-批量裁剪地理模型

    ArcGIS案例学习笔记-批量裁剪地理模型 联系方式:谢老师,135-4855-4328,xiexiaokui#qq.com 功能:空间数据的批量裁剪 优点:1.批量裁剪:任意多个目标数据,去裁剪任意 ...