CLI в 3Com Baseline Switch 2952-SFP Plus
![]() |
В предыдущей статье я описал процесс обновления микропрограммного обеспечения на коммутаторе 3Com Baseline Switch 2952-SFP Plus (он же – HP 1910-48G JE009A switch). Это делалось для того, чтобы обновить возможности интерфейса командной строки (англ. Command line interface, CLI). Но получить доступ к полному набору команд на данном свиче оказалось делом не тривиальным. |
Почему-то производитель предлагает производить настройку этого оборудования исключительно через web-интерфейс. Это довольно не удобно. Поэтому добавив коммутатору необходимые сервисы (ssh или Telnet), сконфигурировав доступ пользователю к этим сервисам, войдем в наш свич, используя, к примеру, ssh:
login as: admin admin@192.168.100.20’s password: ****************************************************************************** * Copyright © 2004-2012 3Com Corp. and its licensors. All rights reserved. * * This software is protected by copyright law and international treaties. * * Without the prior written permission of 3Com Corporation and its licensors,* * any reproduction republication, redistribution, decompiling, reverse * * engineering is strictly prohibited. Any unauthorized use of this software * * or any portion of it may result in severe civil and criminal penalties, and* * will be prosecuted to the maximum extent possible under the applicable law.* ******************************************************************************
Но, как оказалось, список команд для администрирования очень невелик:
<3Com Baseline Switch>? User view commands: initialize Delete the startup configuration file and reboot system ipsetup Specify the IP address of the VLAN interface 1 password Specify password of local user ping Ping function quit Exit from current command view reboot Reboot system summary Display summary information of the device. upgrade Upgrade the system boot file or the Boot ROM program
Полезным из всего этого может оказаться только команда summary:
<3Com Baseline Switch>sum Select menu option: Summary IP Method: Manual IP address: 192.168.100.20 Subnet mask: 255.255.255.0 Default gateway: Current boot app is: flash:/V1910-CMW520-R1111.bin Next main boot app is: flash:/v1910-cmw520-r1111.bin Next backup boot app is: NULL 3Com Corporation 3Com Baseline Switch 2952-SFP Plus Software Version 5.20 Release 1111 Copyright © 2004-2012 3Com Corp. and its licensors. All rights reserved. 3Com Baseline Switch 2952-SFP Plus uptime is 0 week, 0 day, 0 hour, 6 minutes 3Com Baseline Switch 2952-SFP Plus 128M bytes DRAM 128M bytes Nand Flash Memory Config Register points to Nand Flash Hardware Version is REV.B CPLD Version is 002 Bootrom Version is 151 [SubSlot 0] 48GE+4SFP Hardware Version is REV.B
Но все-таки существует возможность получения полного списка команд и настройки данного сетевого коммутатора через его командную строку. Для этого дадим “волшебную” команду _cmdline-mode on, подтвердим свое нетерпимое желание получить доступ к полному списку команд и введем заводской пароль 512900:
<3Com Baseline Switch>_cmdline-mode on All commands can be displayed and executed. Continue? [Y/N]y Please input password:****** Warning: Now you enter an all-command mode for developer's testing, some commands may affect operation by wrong use, please carefully use it with our engineer's direction.
В этом режиме становятся доступными гораздо больше команд!
<3Com Baseline Switch>? User view commands: archive Specify archive settings backup Backup next startup-configuration file to TFTP server boot-loader Set boot loader bootrom Update/read/backup/restore bootrom cd Change current directory clock Specify the system clock cluster Run cluster command copy Copy from one file to another debugging Enable system debugging functions delete Delete a file dir List files on a file system display Display current system information fixdisk Recover lost chains in storage device format Format the device free Clear user terminal interface ftp Open FTP connection initialize Delete the startup configuration file and reboot system ipsetup Specify the IP address of the VLAN interface 1 lock Lock current user terminal interface logfile Specify log file configuration mkdir Create a new directory more Display the contents of a file move Move the file ntdp Run NTDP commands password Specify password of local user ping Ping function pwd Display current working directory quit Exit from current command view reboot Reboot system rename Rename a file or directory reset Reset operation restore Restore next startup-configuration file from TFTP server rmdir Remove an existing directory save Save current configuration schedule Schedule system task screen-length Specify the lines displayed on one screen send Send information to other user terminal interface sftp Establish one SFTP connection ssh2 Establish a secure shell client connection stack Switch stack system startup Specify system startup parameters summary Display summary information of the device. super Set the current user priority level system-view Enter the System View telnet Establish one TELNET connection terminal Set the terminal line characteristics tftp Open TFTP connection tracert Trace route function undelete Recover a deleted file undo Cancel current setting upgrade Upgrade the system boot file or the Boot ROM program
Но чтобы войти в режим конфигурирования, необходимо дать команду system-view, после чего мы получим полноценный доступ к управляющим командам:
<3Com Baseline Switch>sys
System View: return to User View with Ctrl+Z.
[3Com Baseline Switch]?
System view commands:
aaa Specify AAA configuration
acl Specify acl configuration information
archive Specify archive settings
arp Specify ARP configuration information
bootrom-update bootrom update
clock Specify the system clock
cluster Specify cluster configuration information
command-privilege Specify the command level
configuration Specify configuration settings
copyright-info Copyright information configuration
cut Cut connection
delete Delete function
dhcp DHCP configuration subcommands
dhcp-snooping DHCP Snooping
display Display current system information
domain Add domain or modify domain attributes
dot1x Specify 802.1X configuration information
execute Batch Command
file Specify file system configuration information
ftp Specify FTP configuration information
gratuitous-arp-learning Gratuitous Arp learning function
gratuitous-arp-sending Sending gratuitous-arp packet when receiving
different sub-network arp packet function
habp Specify HABP configuration information
header Specify the login banner
hotkey Specify hotkey configuration information
igmp-snooping IGMP snooping
info-center Specify information center configuration information
interface Specify the interface configuration view
ip Specify IP configurations for the system
job Schedule a system task
jumboframe Jumboframe command
lacp Configure LACP Protocol
lldp Link Layer Discovery Protocol(802.1ab)
local-user Specify local user configuration information
logfile Specify log file configuration
loopback-detection Detect if loopback exists
mac-address Configure MAC address
mib-style MIB style
mirroring-group Specify mirroring-group
multicast-vlan Multicast VLAN
ndp Neighbor discovery protocol
ntdp Specify NTDP configuration information
ntp-service Specify NTP(Network Time Protocol) configuration
information
ping Ping function
pki Specify PKI module configuration information
port-group Port group
public-key Specify public-key module configuration information
qos Command of QoS(Quality of Service)
quit Exit from current command view
radius Specify RADIUS configuration information
return Exit to User View
rmon Specify RMON
save Save current configuration
sftp Specify SFTP service attribute
snmp-agent Specify SNMP(Simple Network Management Protocol)
configuration information
ssh Specify SSH (secure shell) configuration information
ssl Specify SSL (Secure Socket Layer) configuration
information
stack Switch stack system
storm-constrain Port storm-constrain
stp Spanning tree protocol
super Modify super password parameters
sysname Specify the host name
system-failure System failure handling method
system-guard System guard function
tcp Specify TCP(Transmission Control Protocol)
configuration information
telnet Specify TELNET configuration information
temperature-limit Set temperature limit
tftp Specify TFTP configuration information
tftp-server TFTP Server
time-range Specify time-range configuration information
tracert Trace route function
traffic Specify traffic configuration information
undo Cancel current setting
user-group Specify user group configuration information
user-interface Configure the user terminal interface
vlan Configure VLAN
voice Specify voice VLAN
web Web configuration
Описание каждой из этих команд можно получить таким же способом, как и при конфигурировании cisco. Пример – опции команды clock:
[3Com Baseline Switch]clock ? summer-time Configure summer time timezone Configure time zone
Быть может, приведенная здесь информация окажется кому-нибудь полезной.












Обновление к последней прошивке расшрило софтовый функционал свитча до свитчей 4500G-EI/5500G-EI
Andrey – спасибо! Обновил все свои свичи. Написал новую статью по ссылке: http://www.maxblogs.ru/409