Thursday, May 8, 2014

Allied Telesis AT-9924T commands

This article refers to official documentation:
AlliedWare Operating System Software Reference
  • Logon admin switch using telnet

telnet atswitch
default username/password = manager/friend
  • Check temperature/fan status/Voltage

Manager atswitch> SHOW SYSTEM ENVIRONMENTAL
Temperature   Status       Actual(celsius)
------------------------------------------
System        Normal
Temperature1  Normal           27
PSU1          Normal          N/A
PSU2          Normal          N/A
------------------------------------------
Fan           Status       Actual(rpm)
------------------------------------------
PSU1          Normal          N/A
PSU2          Normal          N/A
------------------------------------------
Voltage                    Actual(vdc)
------------------------------------------
12V                         11.68
3V3                          3.31
2V5                          2.57
1V8                          1.82
1V65                         1.60
1V                           1.00
------------------------------------------
  • Check serial number

Manager atswitch> show system serialnumber
111111111
  • Check mac address and also serial number  

Manager atswitch> show system factory
>mac address0: 000000 000000
>software version: 2.6.6-02
>software S/N: 111111111
  • Show port status

In below example, 18 servers + 2 switches use 20 ports.
So first 20 out of 24 ports in this AT switch are in use.
"ifAdminStatus"=Up means the port is enabled in switch.
"ifOperStatus "=Up means the port has been connected. 
Manager atswitch> show interface
  Interfaces                                 sysUpTime: 267 days 03:28:03
  DynamicLinkTraps.....Disabled
  TrapLimit............20
  Number of unencrypted PPP/FR links.....0
  ifIndex Interface      ifAdminStatus   ifOperStatus     ifLastChange
  ------------------------------------------------------------------------------
   1      port1          Up              Up               248 days 01:50:25
   2      port2          Up              Up                        18:40:07
   3      port3          Up              Up                        18:40:00
   4      port4          Up              Up                        18:40:00
   5      port5          Up              Up                        18:40:01
   6      port6          Up              Up               111 days 02:14:38
   7      port7          Up              Up                        18:39:56
   8      port8          Up              Up                        18:39:55
   9      port9          Up              Up               224 days 00:57:03
   10     port10         Up              Up                        18:39:53
   11     port11         Up              Up                 1 days 19:36:49
   12     port12         Up              Up                 1 days 20:01:05
   13     port13         Up              Up               255 days 07:14:15
   14     port14         Up              Up               255 days 02:35:32
   15     port15         Up              Up               255 days 02:59:56
   16     port16         Up              Up               255 days 05:07:30
   17     port17         Up              Up               219 days 23:08:58
   18     port18         Up              Up               229 days 18:03:06
   19     port19         Up              Up                        18:25:15
   20     port20         Up              Up                        00:00:13
   21     port21         Up              Down                      00:00:00
   22     port22         Up              Down                      00:00:00
   23     port23         Up              Down                      00:00:00
   24     port24         Up              Down             141 days 03:12:55
   25     vlan1          Up              Up                        00:00:01
   26     vlan2          Up              Down             267 days 00:21:36
  ------------------------------------------------------------------------------
  • Disable or Enable ports

Take not-in-use port24 for example: 
Manager atswitch> disable switch port=24
Info (1087003): Operation successful.
Then you could see from "show interface" output, the port24's "ifAdminStatus"= Down:
 24     port24         Down            Down             141 days 03:12:55
Manager atswitch>  enable switch port=24
Info (1087003): Operation successful.
  • Get system log

This is an important log we need to get. 
Manager atswitch> show log
  • Restart

Manager atswitch> restart reboot
  • Check switch error counter

Pay attention to different kinds of "ERROR". 
Manager > show switch counter
Switch Counters
---------------------------------------------------------------
Switch instance: 0
Packets Rx ....... 115540759           Packets Tx ....... 169109545
Bcast Packets .... 2974862             Bcast Packets .... 56521150
Mcast Packets .... 938                 Mcast Packets .... 17542
Frames 64 ........ 61199801            Frames 65-127 .... 148921564
Frames 128-255 ... 4154697             Frames 256-511 ... 300092
Frames 512-1023 .. 705248              Frames 1024-1518 . 69368902
CRC Error ........ 0                   Jabber ........... 0
No. of Rx Errors . 356                 No. of Tx Errors . 0
UnderSize Frames . 0                   OverSize Frames .. 0
Fragments ........ 0                   Collision ........ 0
Frames 1519-1522 . 0                   Dropped Frames ... 0
---------------------------------------------------------------

No comments:

Post a Comment

Popular Posts