【ACE适用 V6.0软件平台】ACE 中admin账号常用命令

发布时间: 2013-09-16 点击量:1161 打印 字体:

一、查看命令

1、 版本信息查看

ruijie# show version

MatrixOS version 6.0.02(163), RELEASE SOFTWARE                            //firmware版本信息

Copyright (c) 2002-2013, Ruijie Networks Co., Ltd. All rights reserved.

Build time: Mar 29 2:28:49 2013, running on ACE series/ACE-3000

 

Phoenix 1.2.08-RELEASE #0: Thu Mar 28 10:26:52 CST 2013

    root@Sindy:/usr/obj/usr/src/sys/MATRIX

Copyright (c) 2002-2013, Ruijie Networks Co., Ltd. All rights reserved.

Copyright (c) 1992-2009 The FreeBSD Project.

Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994

        The Regents of the University of California. All rights reserved.

webui 6.0.02(11)                                                                                 //webui版本信息

Copyright(c) 2006-2013, Ruijie Networks Co., Ltd. All Rights Reserved.

Build Time: Fri Mar 29 10:18:14 2013

 

dpi-signature 4.2.173(0)                                                                     //DPI版本信息

Copyright(c) 2006-2013, Ruijie Networks Co., Ltd. All Rights Reserved.

Build Time: Mon Apr 22 06:52:20 2013

2cpu内存查看

ruijie# show system cpu-utilization

    Core      %User      %Nice    %System %Interrupt      %Idle                          Time

       0        0.0        0.0        0.0        0.0      100.0      Thu May 16 07:53:56 2013

       1        0.0        0.0        0.0        0.0      100.0      Thu May 16 07:53:56 2013

       2        0.0        0.0        0.0        0.0      100.0      Thu May 16 07:53:56 2013

       3        0.0        0.0        0.0        0.0      100.0      Thu May 16 07:53:56 2013

       4        0.0        0.0        0.0        0.0      100.0      Thu May 16 07:53:56 2013

       5        0.0        0.0        0.0        0.0      100.0      Thu May 16 07:53:56 2013

       6        0.0        0.0        0.8        0.0       99.2      Thu May 16 07:53:56 2013

       7        0.0        0.0        0.0        0.0      100.0      Thu May 16 07:53:56 2013

average:        0.0        0.0        0.1        0.0       99.9      Thu May 16 07:53:56 2013

ruijie# show system memory-utilization

   Active  Inactive     Wired     Cache    Buffer      Free                          Time

      76M       11M      580M      128K       89M     5151M      Thu May 16 07:54:01 2013

3、查看hwid信息

ruijie# show hwid

a506010008180402000bab4ef209cd2d

4、查看配置

ruijie# show running-config             //查看当前配置

# version: 6.0.02(163)

# ip

interface mgmt

    no shutdown

    ip address 192.168.0.195 255.255.255.0

    exit

ip name-server 61.177.7.1

ip default-gateway 192.168.0.1

ip-internal

                   ...

 

ruijie# show startup-config         //查看启动配置

# version: 6.0.02(163)

# clock

# hostname

hostname ruijie

# snmp-server

snmp-server

 

二、初始化命令

 

ruijie> enable

ruijie# configure 

ruijie(config)# interface mgmt

ruijie(config-if-mgmt)# ip address 172.18.10.101 255.255.255.0  //IP配置

kern.matrix.switch_ip: 172.18.10.101 -> 172.18.10.101

ruijie(config-if-mgmt)# no shutdown 

ruijie(config-if-mgmt)# exit

ruijie(config)# ip default-gateway 172.18.10.101  //配置默认网关

ruijie (config)# ip name-server 192.168.58.110  //配置DNS

ruijie(config)# http-server    //开启web管理功能

ruijie(config)#

ruijie(config)# clock zone GMT 8  //设置GMT+8

ruijie(config)# clock set   //设置系统时间

clock set <time> <day> <month> <year>

 Set the time and date

  time    Current time

  day     Day of the month (1..31)

  month   Month of year (1..12)

  year    Year (1993..2035)

ruijie(config)# clock set 14:21:00 1 8 2012         //设置系统时间

ruijie(config)# exit

ruijie# show clock            //查看系统时间

三、升级命令

1CF看使用情况命令

ruijie# show flash     //查看flash信息

ruijie# show flash status

22 files, 12 directories

Total 465332 1K-blocks, 25292 1K-blocks used, 402814 1K-blocks free.      //CF卡使用情况

2、补丁查看那和补丁删除命令。

ruijie# show patch

Patch Information:

NAME                           MD5

------------------------------ --------------------

patch_v6.0_20130428            1259da89f54c661198c2d9fdc5fb5683

ruijie# clear patch                                                                                         

patch_v6.0_20130428

Clear all patch above? [y/n]y

说明:此命令4.0及以前版本不支持;

3、升级命令

ACE# firmware firmware_ACE3000_FW6500_4D4G4_ruijie_v6.0.02.bin  //启用firmware

ACE# webui webui.bin                                                    //启用webui

ACE# dpi-signature  dpi-signature.bin                                    //启用DPI

ACE#copy url firmware                                                  //升级firmware软件包

ACE#copy url webui                                                  //升级webui软件包

ACE#copy url  dpi-signature                                             //升级DPI软件包

4、恢复出厂设置和重启命令

ACE# write erase                                                     //恢复出厂设置命令

matrix# reload                                  //重启设备

 

                                                                                                              

四、配置命令

1、查看时间和NTP命令

ruijie# configure    //进入全局配置模式

ruijie(config)# ntp  //NTP自动更新服务未开启

ruijie(config)# exit  //退到特权模式

ruijie# show ntp     //查看NTP服务

NTP INFORMATION:

 

NTP: Enable  //NTP自动更新服务未开启

 

Server               Status               Last Time Change             

--------------------------------------------------------------------------------

65.55.21.23          Availiable           13 May 02:00:02

 

 

2、查看和配置bypass命令

 

     ruijie # show bypass status                                                     //查看电口桥组

    BYPASS INFORMATION:

    BRIDGE PORT TYPE     UPTIME     STATUS

    ------ ---- ---- ---------- ----------

     1    0   EP 158788764ms     normal                                   //EP表示电口

     2    1   EP    93365ms     normal

     3    0   OP    93414ms     normal                                    //OP表示光口

     4    1   OP    93463ms     normal

 

      一组桥Bypass配置

     ruijie>enable 

     ruijie#configure

     ruijie(config)#bridge-group 1   //进入桥1

     ruijie(config-bg-1)#bypass      //配置桥1组BYPASS

     ruijie(config-bg-1)#no bypass  //取消桥1组BYPASS

     ruijie>enable

 

     全部桥Bypass配置:

     ruijie>enable 

     ruijie#configure                                           

     ruijie(config)#bypass                                                        

     ruijie(config)#no bypass

3、查看接口信息,启用网络接口,开启接口的Rmon和Qos功能:   

ruijie# configure        

ruijie(configure)#interface int2          //进入接口int2

ruijie(configure-if-int2)#no shutdown    //激活接口

ruijie(configure-if-int2)#qos              //开启qos

ruijie(configure-if-int1)#rmon             //开启rmon

ruijie(configure-if-int2)#exit

ruijie(configure)#interface ext2           //进入接口ext2

ruijie(configure-if-ext2)#no shutdown     

ruijie(configure-if-ext2)#qos

ruijie(configure-if-ext2)#rmon

4、日志发送配置

ruijie# show logserver     //查看日志配置

log       logserver

ruijie# show logserver

Remote Syslog Server:

           IPAddress       Port

-------------------- ----------

StateLog: Disable

HttpLog: Disable

ImmsnLog: Disable

ImqqLog: Disable

ruijie# configure

ruijie(config)# remotelog           //进入日志配置模式

ruijie(config-rl)# logserver 192.168.252.118 5140       //APM接收端口5140

ruijie(config-rl)# state    //会话日志

ruijie(config-rl)# http      //http日志

ruijie(config-rl)# im-msn    //msn日志

 ruijie(config-rl)# im-qq     //qq日志

5、查看开启matrix

ruijie# show rmon2 running-config        //查看matrix开启状态

Runing Config Rmon2 Matrix: Enable

ruijie# configure 

ruijie(config)# rmon2

ruijie(config-rmon2)# matrix                 //开启matrix

NOTE: This configuration only take effect after rebooting the system!!!

 

五、硬盘配置

1、查看硬盘

ACE-3000D# show disk                   //显示硬盘存储情况

 

 

子命令

描述

health

显示磁盘的健康信息

log

显示磁盘的日志信息

selftest

显示磁盘的自检信息

status

显示磁盘的状态信息

 

1)show disk health

ACE-3000D# show disk health

SMART overall-health self-assessment test result: PASSED       ------健康自我评价测试:通过

2)show disk log

ACE-3000D# show disk log  

Wed Mar 20 17:29:40 GMT+8 2013 :find flash device ad1

Wed Mar 20 17:29:40 GMT+8 2013 :%DISK%: Initialize /dev/ad3 ...

Wed Mar 20 17:29:40 GMT+8 2013 :%DISK%: fsck /dev/ad3

Wed Mar 20 17:29:40 GMT+8 2013 :%HARDDISK% : Mount /dev/ad3 OK.

Wed Mar 20 17:29:40 GMT+8 2013 :%HARDDISK% : Harddisk fsck and mount took 1 seconds.

Wed Mar 20 17:29:40 GMT+8 2013 :call /usr/sbin/rrdd -l 3

 

find flash device ad1 ------------ 发现 flash设备,设备名为ad1

Initialize /dev/ad3 ... ------------ 初始化设备 /dev/ad3

fsck /dev/ad3            ------------ 检测 /dev/ad3 这个设备文件 ,详细请参考 freebsd fsck命令

Mount /dev/ad3 OK.------------- 挂载 /dev/ad3 这个设备文件成功,详细请参考freebsd mount命令

Harddisk fsck and mount took 1 seconds. ---------- 硬盘检测和挂载总共花费1秒钟

call /usr/sbin/rrdd -l 3   ------------ 开启rrdd 程序参数为 -l 3详细请参考freebsd call命令

 

说明:设备断电启动时,硬盘检测信息。

3show disk selftest

ACE-3000D# show disk selftest

=== START OF READ SMART DATA SECTION ===

SMART Self-test log structure revision number 0          --------智能自测日志结构修订号0

Warning: ATA Specification requires self-test log structure revision number = 1        --------ATA自测日志结构规范要求修订号为1

说明:日志记录的格式规范号。一个规范号,对应一种规范格式。在使用smartctl进行硬盘的各项检测时候,tool会使用各种不同的记录规范来记录、显示测试结果,这里它只是指明了正在使用哪个规范号。此条语句不影响硬盘检测结果。

4)show disk status

ACE-3000D# show disk status 

91 files, 9 directories

Total 113526654 1K-blocks, 5420348 1K-blocks used, 99024174 1K-blocks free.      --------硬盘当前使用情况

 

2、硬盘格式化

ruijie# configure

ruijie(config)# disk                                                                                               //进入硬盘配置模式

ruijie(config-disk)# umount                                                                                //硬盘卸载

 

ruijie(config-disk)# format                                                                                 //硬盘格式化

This will format /dev/ad0, all the data will be lost. Continue?[y/n]y                     //选择y

format /dev/ad0 [OK]

 

ruijie(config-disk)# remount                                                                              //硬盘重新加载

%DISK%: Initialize /dev/ad0 ...

%DISK%: fsck /dev/ad0

%HARDDISK% : Harddisk fsck and mount took 1 seconds.

%HARDDISK% : Initialization complete.

...done Initializing DISK.

说明:格式化后重新加载硬盘时会重新生成数据文件,文件都已预留空间,但没有数据。

 

 

00 分享 纠错
相关条目