hp StorageWorks fabric OS commands version 3.1.x/4.1.x
Product Version: 3.1.x/4.1.x
Fabric OS Commands Version 3.1.x/4.1.x Quick Reference Guide Second Edition (June 2003)Part Number: AA–RTE6B–TE
? Copyright 1999-2003 Hewlett-Packard Development Company, L.P.Hewlett-Packard Company makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of
merchantability and fitness for a particular purpose. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.
This document contains proprietary information, which is protected by copyright. No part of this document may be photocopied, reproduced, or translated into another language without the prior written consent of Hewlett-Packard. The information contained in this document is subject to change without notice.
BROCADE, the Brocade B weave logo, Brocade: the Intelligent Platform for Networking Storage, SilkWorm, and SilkWorm Express, are trademarks or registered trademarks of Brocade Communications Systems, Inc. or its subsidiaries in the United States and/or in other countries.
Hewlett-Packard Company shall not be liable for technical or editorial errors or omissions contained herein. The information is provided “as is” without warranty of any kind and is subject to change without notice. The warranties for Hewlett-Packard Company products are set forth in the express limited warranty statements for such products. Nothing herein should be construed as constituting an additional warranty.Printed in the U.S.A.
quick reference guide
This document provides a quick reference to definitions of specified commands.
Command
Definition
agtcfgDefault Reset the SNMP agent configuration to default values.
agtcfgSet Modify the SNMP agent configuration.
agtcfgShow Display the SNMP agent configuration.
aliasDelete Delete a port from all local groups.
aliasJoin Create or add a member to a group of N_Ports. aliasPurge Remove an alias group.aliasShow Display local alias server information.
aliAdd Add a member to a zone alias.
aliCreate Create a zone alias.aliDelete Delete a zone alias.aliRemove Remove a member from a zone alias.aliShow Display zone alias information.
backplanetest
Run backplane connection test for multiple blade configured system.
backPort Run test for back-end
miniswitch to miniswitch links.backSpace Set an alternate backspace character.
bannerset Set the banner on the local switch.
bannershow Display the banner text.bcastShow Display broadcast routing information.
bladeBeacon Set blade beaconing mode on or off.
bladeDiag Run diagnostics on a switch blade.
bladeDiagShort Run diagnostics on a switch blade.
bladedisable Disable a blade.bladeenable Enable a blade.bladePropShow Display blade property.bsn Display the serial number.
Legend:
v3.1 unique commands v4.1 unique commands v3.1 and v4.1 commands
camTest Run functional test of the
CAM memory. Verify
QuickLoop's Content
Addressable Memory (CAM)
SID translation. centralMemoryTest Test ASIC central memory
operation. cfgactvshow Display effective zone
configuration information. cfgAdd Add a member to a zone
configuration.
cfgClear Clear all zone configurations. cfgCreate Create a zone configuration. cfgDelete Delete a zone configuration. cfgDisable Disable a zone configuration. cfgEnable Enable a zone configuration. cfgRemove Remove a member from a
zone configuration. cfgSave Save zone configuration to
non-volatile memory. cfgShow Display zone configuration
information.
cfgsize Display size details of the
zone database. cfgTransAbort Abort the current zoning
transaction. cfgtransshow Display information about
current zoning transaction. chassisName Display or set the chassis
name for a StorageWorks
Core switch. chassisShow Display all Field Replaceable
Units (FRUs). chippropshow Display ASIC chip property
contents.
chipregshow Display port registers of a
given chip number. cmemRetentionTest Test the data retention of the
central memory SRAMs. cmiTest Verify the Control Message
Interface (CMI) bus between
ASICs.
configDefault Reset a subset of
configuration settings to the
default values. configDownload Download the switch
configuration file from a host
system.
configShow Display system configuration
settings.
Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands configUpload Create a backup file of switch
configuration information on
a host workstation. configure Modify system configuration
settings. crossPortTest Run functional test of port
external transmit and receive
path.
dataTypeShow Display sample data stream
types used in some
diagnostic commands. date Display or set the switch date
and time.
dbgshow Display current values of
debug and verbosity levels of
the specified module. diagClearError Clear the diag software flag
to allow for retest. diagCommandShow Display a list of diagnostic
commands. diagDisablePost Disable POST execution at
reboot. diagEnablePost Enable POST execution at
next reboot. diagesdports Set ESD skip ports list. diagfaillimit Set diagnostics fail limit to a
specified value.
diagHelp Display diagnostic command
information.
diagloopid Set the diagnostics loop ID. diagmodepr Enable or disable mode
messages.
diagpost Enable or disable POST
testing.
diagretry Enable or disable retry mode. diagsetburnin Initialize the blade for a
burn-in run. diagsetcycle Set diagnostic script
parameters.
diagshow Display diagnostics status. diagshowtime Enable or disable elapsed
time messages. diagsilkworm Enable or disable silkworm
mode.
diagskiptests Enable or disable diagnostics
skip test flags. diagstopburnin Terminate a blade burn-in
run.
dlsReset Disable Dynamic Load
Sharing (DLS) option. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands
dlsSet Enable DLS option. dlsShow Display the setting of the DLS
option.
dnsconfig Set or display Domain Name
Service parameters. errClear Clear the switch error log. errDump Display the error log without
page breaks errNvLogSizeSet Resize the persistent error
log. errNvLogSizeShow Display the current persistent
(non-volatile) error log
configuration of a switch. errSaveLvlSet Set error saving level of a
switch. errSaveLvlShow Show current error save level
setting of a switch. errShow Display the error log.
exit Log out from a shell session. fabportshow Display fabric port
information. fabretryshow Display the retry count of the
fabric commands. fabricprincipal Set the Principal Switch
Selection mode. fabricShow Display fabric membership
information. fabstateclear Clear the fabric state
information. fabstateshow Display the fabric state
information. fabStatsShow Display the fabric statistics
information. fabswitchshow Display the fabric switch state
structure information. fanDisable Disable a fan unit. fanEnable Enable a fan unit. fanShow Display fan status. fashow Display Fabric Assist
information. faStatsShow Display statistics about Fabric
Assist.
fastboot Reboot the switch, bypassing
POST.
fazoneAdd Add a member to a Fabric
Assist zone. fazoneCreate Create a Fabric Assist zone. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands fazoneDelete Delete a Fabric Assist mode
zone.
fazoneRemove Remove members from a
Fabric Assist mode zone. fazoneShow Display fazone information. fcpprobeshow Display the FCP probe
information.
fcprlsshow Display the FCP RLS
information. fdmicacheshow Display abbreviated remote
FDMI device information
according to remote domain
ID.
fdmishow Display detailed FDMI device
information.
filterTest Run frame filter test. firmwareCommit Commit switch firmware
update. firmwareDownload Download switch firmware
from a remote host or from a
local directory. firmwaredownloadstatus Display the status of a
firmware download. firmwarerestore Restore old active firmware
image.
firmwareshow Display the Fabric OS
versions on both partitions of
the local and remote CPs. fporttest Run functional test of F->N,
N->F point to point path. fspfShow Display FSPF protocol
information. fwAlarmsFilterSet Enable or disable alarms for
Fabric Watch. fwAlarmsFilterShow Display alarm filtering for
Fabric Watch. fwClassInit Initialize all classes under
Fabric Watch. fwConfigReload Reload the Fabric Watch
configuration. fwConfigure Display and modify the
Fabric Watch configuration
and status.
fwFruCfg Display or modify FRU state
alert configuration. fwHelp Display Fabric Watch
command information. fwMailCfg Configure e-mail alerts in
Fabric Watch.
Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands
fwsamshow Display the switch availability
monitor information. fwSetToCustom Set boundary and alarm
levels to custom values. fwSetToDefault Set boundary and alarm
levels to the default values. fwShow Display the thresholds
monitored by Fabric Watch. gbicShow Display serial ID GBIC
information.
h Display shell history. haDisable Disable the High Availability
feature in the switch. hadump Disable the High Availability
feature in the switch. haEnable Enable the High Availability
feature in the switch. haFailover Force the failover mechanism
so that the Standby CP
becomes the Active CP. haShow Display Control Processor
(CP) status.
hasyncstart Enable the HA state
synchronizing process. hasyncstop Disable the HA state
synchronizing process.
help Display help information for
commands. historyLastShow Display last history log
record.
historymode Display or set the mode of the
history log. historyShow Display the history log.
i Display task summary. ifModeSet Set the link operating mode
for a network interface. ifModeShow Display the link operating
mode for a network interface. ifShow Display network interface
information. interfaceShow Display FSPF interface
information.
iodReset Turn off the In-order Delivery
(IOD) option.
iodSet Enable the In-Order Delivery
(IOD) option.
iodShow Display the In-Order Delivery
(IOD) option setting. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands ipAddrSet Set the IP Address details for
a switch or Control Processor. ipAddrShow Display the IP address for a
switch or Control Processor. islshow Display ISL information. itemlist List parameter syntax and
grammar information. killtelnet Terminate an open telnet
session.
ledtest Run LED diagnostics on a
switch blade and WWN. licenseAdd Add license key to switch. licenseHelp Show commands used to
administer license keys. licenseIdShow Display system license ID. licenseRemove Remove the license key from
a switch.
licenseShow Display current license keys. linkCost Set or print the FSPF cost of a
link.
login Log in as a new user. logout Log out from a shell session. loopPortTest Test the L_port M->M path on
a loop..
LSDbShow Display the FSPF Link State
Database.
mcastShow Display multicast routing
information.
memshow Display the amount of free
and used memory in a
switch. msCapabilityShow Display the Management
Server Capability. msConfigure Configure the Management
Server.
msPlatShow Display the Management
Server Platform database. msPlClearDB Clear the Management
Server Platform database on
all switches in the fabric. msPlMgmtActivate Activate the Management
Server Platform service on all
switches in the fabric. msPlMgmtDeactivate Deactivate the Management
Server Platform service on all
switches in the fabric. msTdDisable Disable the Management
Server Topology Discovery
service.
Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands
msTdEnable Enable the Management
Server Topology Discovery
service. msTDReadConfig Display the status of the
Management Server
Topology Discovery service. myid Display the current login
session details. nbrStatsClear Reset FSPF interface counters. nbrStateShow Display FSPF neighbor's
state.
nodefind Display all the device PIDs
matching a given WWN. nsaliasshow Display local Name Server
information with aliases. nsAllShow Display global Name Server
information. nscamshow Display information about
remote devices in the Name
Server Cache.
nsShow Display local Name Server
information. nsstatshow Display local Name Server
statistical information. nszonemember Display the information of all
the online devices which are
zoned with the given device. parityCheck Enable or disable DRAM
parity checking.
passwd Change system login name
and password.
pdshow Display data from a panic
dump file. perfAddEEMonitor Add end-to-end monitor to a
port. perfAddIPMonitor Add a filter-based monitor
for IP frame count. perfAddReadMonitor Add a filter-based monitor
for the SCSI Read command. perfAddRWMonitor Add a monitor for the SCSI
Read and Write commands. perfAddSCSIMonitor Add a monitor for SCSI
frame count. perfAddUserMonitor Add a user-defined
filter-based monitor. perfAddWriteMonitor Add a filter-based monitor
for the SCSI Write command. perfCfgClear Clear the previously saved
performance monitoring
configuration settings from
non-volatile memory. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands perfCfgRestore Restore performance
monitoring configuration
settings from non-volatile
memory.
perfCfgSave Save performance monitoring
configuration settings to
non-volatile memory. perfcleareemonitor Clear statistics counters of an
end-to-end monitor on a
port. perfclearfiltermonitor Clear statistics counters of a
filter-based monitor. perfClrAlpaCrc Clear an AL_PA device’s CRC
count by the port and AL_PA. perfDelEEMonitor Delete an end-to-end monitor
on port. perfDelFilterMonitor Delete a filter-based monitor. perfHelp Display performance
monitoring help information. perfSetPortEEMask Set overall mask for
end-to-end (EE) monitors. perfShowAlpaCrc Display the AL_PA CRC count
by port or by AL_PA. perfShowEEMonitor Display end-to-end monitor
information and frame traffic
on a port. perfShowFilterMonitor Display filter-based monitor
information and frame traffic
for a port. perfShowPortEEMask Display the current
end-to-end mask of a port. pkicreate Create pki objects. pkiremove Remove existing pki objects. pkishow Display existing pki objects. portcamshow Display port-based filter
CAM use. portcfgdefault Restore the port configuration
to default values. portCfgEport Enable or disable a port from
becoming an E_Port. portCfgGport Designate a port as a locked
G_Port. portcfgislmode Enable or disable ISL R_RDY
Mode on a port. portCfgLongDistance Configure a port to support
long distance links. portCfgLport Lock a port as an L_PORT. portcfgpersistentdisable Disable a port persistently. portcfgpersistentenable Enable a port persistently. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands
portCfgShow Display port configuration
settings. portCfgSpeed Configure the port speed. portCfgTrunkport Configure a port to be
enabled or disabled for
trunking.
portdebug Set debug level and verbose
level of port modules. portDisable Disable a switch port. portEnable Enable a switch port. portErrShow Display port error summary. portflagshow Display the port status
bitmaps for all ports in a
switch
portLEDTest Exercise the user port LEDs. portLogClear Clear the port log. portLogDump Display the port log without
page breaks. portLogDumpPort Display the port log of
specified port, without page
breaks.
portloginshow Display port logins. portlogpdisc Set or clear the
debug_pdisc_flag. portLogShow Display the port log. portlogshowport Display the port log of
specified port, with page
breaks. portLoopbackTest Run functional test of port
N->N path.
portname Assign or display a port
name.
portPerfShow Display port throughput
performance in bytes,
kilobytes, or megabytes. portRegTest Run bit write/read test of the
ASIC SRAMs and registers. portRouteShow Display routing tables for a
port.
portShow Display port status. portstatsclear Clear the hardware statistics
of a specified switch port. portStatsShow Display port hardware
statistics.
portswap Swap area numbers of two
switch ports. portswapdisable Disable the portswap feature. portswapenable Enable the portswap feature. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands portswapshow Display information for any
ports where area ID numbers
have been swapped. porttest Run functional test of a switch
in a live fabric. porttestshow Retrieve information from the
current execution of the
porttest command. powerOffListSet Display information from
porttest. powerOffListShow Set slot power off list order. psShow Display power supply status. ptdatashow Display port data structures. ptphantomshow Display the quick-loop CAM
tables.
ptpropshow Display port properties. ptregshow Display ASIC port registers. ptrouteshow Display port routing
properties.
ptstatsshow Display port statistics
properties.
qlDisable Disable QuickLoop mode. qlEnable Enable QuickLoop mode. qloopAdd Add a member to a
QuickLoop. qloopCreate Create a QuickLoop. qloopDelete Delete a QuickLoop. qloopRemove Remove a member from a
QuickLoop.
qloopShow Display QuickLoop
information.
qlPartner Set a QuickLoop partner or
display information about a
partner.
qlPortDisable Disable a QuickLoop port. qlPortEnable Enable a QuickLoop port. qlPortShowAll Display QuickLoop port
information.
qlShow Display QuickLoop
information. qlStatsShow Display QuickLoop statistics. quietMode Toggle the shell quiet mode
on and off.
ramTest Run bit write and read test of
SDRAMs in the switch. reboot Reboot the switch. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands
routeHelp Display routing help
commands.
savecore Save or remove core files
created by daemons. secfabricshow Display security-related fabric
information. secfcsfailover Enable a Backup FCS switch
to take over as Primary FCS
switch.
sechelp Display information about
security telnet commands. secmodedisable Disable security mode. secmodeenable Enable security mode. secmodeshow Display if security mode is
enabled or disabled. secnonfcspasswd Set the admin password for
non-FCS switches. secpolicyabort Abort all changes to the
defined database that have
not been saved. secpolicyactivate Apply defined policy set to all
switches in the fabric. secpolicyadd Add members to an existing
policy. secpolicycreate Create a new policy. secpolicydelete Delete an existing policy. secpolicydump Show all members of existing
policies. secpolicyfcsmove Move a member in the FCS
policy. secpolicyremove Remove members from an
existing policy. secpolicysave Save a defined security policy
to flash memory on all
switches in the fabric. secpolicyshow Show an existing security
policy.
secstatsreset Reset security statistic for a
policy for all policies to zero. secstatsshow Display security statistic for a
policy or for all policies. sectemppasswdreset Reset a password on a
remote switch. sectemppasswdset Set a temporary password on
a remote switch. sectransabort Abort current security
transaction. secversionreset Reset the version stamp to
zero.
Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands sensorShow Display sensor readings. setdbg Set debug level of the
specified module. setesdmode Enable or disable ESD mode. setgbicmode Enable or disable GBIC
mode.
setsfpmode Enable or disable SFP mode. setSplbMode Enable or disable two-port
loopback.
setverbose Set verbose level of the
module to specified level. sfpShow Display serial ID SFP
information.
slotOff Disable a blade slot. slotOn Enable a blade slot. slotpoweroff Power off a blade unit. slotpoweron Power on a blade unit. slotShow Display slot status. snmpMibCapSet View and modify options for
configuring SNMP MIB trap
capability.
spinFab Test for Cascaded switch ISL
links.
spinSilk Run functional test of port
connection at maximum
switch speed. sramRetentionTest Run data retention test of the
miscellaneous SRAMs in
ASIC.
snn Display and set the soft serial
number.
statsTest Run a statistics counter
diagnostic test. stopporttest Terminate the running
porttest.
supportShow Print switch information for
debugging purposes. switchBeacon Set switch beaconing mode
on or off. switchcfgpersistentdisable Disable switch persistently. switchcfgpersistentenable Enable switch persistently. switchCfgSpeed Configure all ports of the
switch to a particular speed. switchCfgTrunk Enable or disable trunking on
all the ports of a switch. switchDisable Disable the switch. switchEnable Enable the switch. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands
switchName Display or set the switch
name.
switchReboot Halt and bring down the
operational switch. switchShow Display switch and port
status. switchShutdown Halt the operational switch. switchStart Initialize the switch to
operational. switchStatusPolicySet Set the policy parameters that
determine the overall switch
status. switchStatusPolicyShow Display the policy parameters
that determine the overall
switch status. switchStatusShow Display the overall status of
the switch. switchuptime Display the amount of time
the switch has been
operating. syslogdIpAdd Add the IP address of a
syslog daemon. syslogdIpRemove Remove the IP address of a
syslog daemon. syslogdIpShow Display all syslog daemon IP
addresses.
systemtest Run a series of diagnostic
tests on a switch blade. systemverification Run a series of diagnostic
tests on all switches in a
fabric.
tempShow Display temperature
readings.
timeout Set or show the IDLE timeout
value for a login session. topologyShow Display the unicast fabric
topology. trackChangesHelp Display information on
track-changes feature
commands. trackChangesSet Enable configuring of
track-changes feature. trackChangesShow Display status of
track-changes feature. trunkDebug Debug a trunk link failure. trunkShow Display trunking information. tsclockserver Display or set the NTP Server
address.
tshelp Display the time service
commands.
Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands tstimezone Display or set the system time
zone.
turboRamTest Run turbo SRAM logic test for
2 Gb ASICs. txdpathtest Run functional test of TXA
and TXD connections. uptime Display length of time the
system has been operational. uRouteConfig Configure a static route. uRouteRemove Remove a static route. uRouteShow Display unicast routing
information.
version Display firmware version
information.
wwn View WWN of a switch. zoneAdd Add a member to the zone. zoneCreate Create a zone. zoneDelete Delete a zone.
zoneHelp Display help information on
zone commands. zoneRemove Remove a member from a
zone.
zoneShow Display zone information. Legend:v3.1 unique commands
v4.1 unique commands
v3.1 and v4.1 commands
Cisco的命令大全 序号/类别基于ios的交换机命令基于CLI的交换机命令 1.设置主机名/系统名 switch(config)# hostname "hostname" switch(enable) set sys tem name name-string 2.设置登录口令 switch(config)# enable password level 1 password switch(enable) set password switch(enable) set enalbepass 3.设置远程访问 switch(config)# inte***ce vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address switch(enable) set inte***ce s c0 ip-address netmask broadcast-address switch(enable) set inte***ce sc0 vlan switch(enable) set ip route default gateway 4.启用和浏览CDP信息 switch(config-if)# cdp enable switch(config-if)# no cdp enable switch(enable) set cdp {enable|disable} module /port 5.查看Cisco邻接设备的CDP通告 switch# show cdp inte***ce [type modle/port] switch# show cdp neighbors [type module/port] [detail] switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 6.端口描述 switch(config-if)#description escription-string switch(enable)set p ort name module/number description-string 7.设置端口速度 switch(config-if)# speed{10|100|auto} switch(enable) set port s peed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto} 8.设置以太网的链路模式 switch(config-if)# duplex {auto|full|half} switch(enabl e) set port duplex module/number {full|half 9.配置静态VLAN switch# vlan database switch(vlan)# vlan vlan-num name vla switch(vlan)# exit switch# configure teriminal switch(config)#inte***ce inte***ce module/number switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num switch(config-if)# end switch(enable) set vlan vlan-num [name name] switch(enable) set vlan vlan-num mod-num/port-list 10.配置VLAN中继线 switch(config)# inte***ce inte***ce mod/port
思科交换机命令大全集团文件发布号:(9816-UATWW-MWUB-WUNN-INNUL-DQQTY-
思科交换机常用命令大全 1.1 用户模式与特权模式 用户模式:可以使用一些基本的查询命令 特权模式:可以对交换机进行相关的配置 进入特权模式命令:Switch>enable 退出特权模式命令:Switch#exit 启用命令查询: 时间设置:Switch#clock set 时间(自选参数,参数必须符合交换机要求) 显示信息命令:Switch#show 可选参数 注意:可以用TAB键补齐命令,自选参数为用户自定义参数,可选参数为交换机设定参数 查看交换机配置: Switch#show running-config 保存交换机配置:Switch#copy running-config startup-config Switch#wr
查看端口信息:Switch#show interface 查看MAC地址表:Switch#show mac-address-table 查看交换机CPU的状态信息:Switch#show processes 1.2 全局配置模式 进入全局配置模式:Switch#configure terminal 主机名修改:Switch(config)#hostname 主机名(自选参数) 特权模式进入密码: Switch(config)#enable secret 密码(自选参数) 取消特权模式密码:Switch(config)#no enable secret 取消主机名设置: Switch(config)#no hostname 退出配置模式: Switch(config)#exit 需要特别注意的是在配置模式中无法使用show命令,如果要使用 的话show前必须加do和空格,例如:do show * 指定根交换机命令:Switch(config)#spanning-tree vlan 自选参数(VLAN号) root primary 例如: Switch(config)#spanning-tree vlan 1 root primary
CISCO命令全集-思科命令汇总 视图模式介绍: 普通视图router> 特权视图router# /在普通模式下输入enable 全局视图router(config)# /在特权模式下输入config t 接口视图router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口) router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码
1.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 password 在基于CLI的交换机上设置登录口令: switch(enable) set password switch(enable) set enalbepass 3.在基于IOS的交换机上设置远程访问: switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交换机上设置远程访问: switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlan switch(enable) set ip route default gateway 4.在基于IOS的交换机上启用和浏览CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable
为了查看Cisco邻接设备的CDP通告信息: switch# show cdp interface [type modle/port] switch# show cdp neighbors [type module/port] [detail] 在基于CLI的交换机上启用和浏览CDP信息: switch(enable) set cdp {enable|disable} module/port 为了查看Cisco邻接设备的CDP通告信息: switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交换机的端口描述: switch(config-if)# description description-string 基于CLI的交换机的端口描述: switch(enable)set port name module/number description-string 6.在基于IOS的交换机上设置端口速度: switch(config-if)# speed{10|100|auto} 在基于CLI的交换机上设置端口速度: switch(enable) set port speed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto} 7.在基于IOS的交换机上设置以太网的链路模式: switch(config-if)# duplex {auto|full|half} 在基于CLI的交换机上设置以太网的链路模式: switch(enable) set port duplex module/number {full|half}
命令要在一行内打完,窗体可以自动拉大。Aux口这个版本暂不支持。 支持三级Switch网络,需要路由时支持两级Switch。 设置的主机名中不要含有空格。F2、F3键清屏(为了方便而加) Ctrl+P 历史命令,建议使用方向键。 Ctrl+z 回根, 建议使用end命令 Ctrl+Break 路由器进入ROM监控状态。交换机清除特权密码。 双击设备进入终端操作 单击设备的接口可以实现画线 单击画有线的接口可以删除连线 在指定的设备按下鼠标右键可以删除设备。 在指定的设备按下鼠标左键可以实现移动。 按Tab键,可以得到命令全称。 键入"?"可以得到当前状态下的命令帮助。 接收的作业名固定为当前目录下的sim.txt。 系统的配置文件是:sim.ini。 计算测验得分中,ping PCA->PCB;5 表示ping通得5分, SWAf6=2;5表示交换机SwitchA的f0/6在vlan 2时得5分。 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PCA login: root ;使用root用户password: linux ;口令是linux # shutdown -h now ;同init 0 关机 # logout # login # ifconfig ;显示IP地址 # ifconfig eth0
思科交换机路由器命令 大全 YUKI was compiled on the morning of December 16, 2020
1. 交换机支持的命令:交换机基本状态: 交换机口令设置: switch>enable ;进入特权模式switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口 令switch(config)#enable password xxa ;设置特权非 密口令switch(config)#line console 0 ;进入控制台 口switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令 xxswitch#exit ;返回命令 交换机VLAN设置:
switch(vlan)#vlan 2 ;建VLAN 2switch(vlan)#no vlan 2 ;删vlan 2switch(config)#int f0/1 ;进入端 口1switch(config-if)#switchport access vlan 2 ; 当前端口加入vlan 2switch(config-if)#switchport mode trunk ;设置为干线switch(config- if)#switchport trunk allowed vlan 1,2 ;设置允许 的vlanswitch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain ;设置发vtp域名switch(config)#vtp password ;设置发vtp密码switch(config)#vtp mode server ;设置发vtp模式switch(config)#vtp mode client ;设置发vtp模式 交换机设置IP地址: 交换机显示命令:
一 switch> 用户模式 1:进入特权模式enable switch> enable switch# 2:进入全局配置模式configure terminal switch> enable switch#c onfigure terminal switch(conf)# 3:交换机命名hostname aptech2950 以aptech2950为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令enable password cisco 以cisco为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码enable secret ciscolab 以cicsolab为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 配置交换机端口ip和子网掩码 aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 设置网关地址 7:进入交换机某一端口interface fastehernet 0/17 以17端口为例switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)# 8:查看命令show switch> enable
1. 交换机支持的命令: 交换机基本状态: switch: ;ROM状态,路由器是rommon> hostname> ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态 交换机口令设置: switch>enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令 switch(config)#enable password xxa ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令 交换机VLAN设置: switch#vlan database ;进入VLAN设置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;删vlan 2 switch(config)#int f0/1 ;进入端口1 switch(config-if)#switchport access vlan 2 ;当前端口加入vlan 2 switch(config-if)#switchport mode trunk ;设置为干线 switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlan switch(config-if)#switchport trunk encap dot1q ;设置vlan 中继 switch(config)#vtp domain;设置发vtp域名 switch(config)#vtp password;设置发vtp密码 switch(config)#vtp mode server ;设置发vtp模式 switch(config)#vtp mode client ;设置发vtp模式 交换机设置IP地址: switch(config)#interface vlan 1 ;进入vlan 1 switch(config-if)#ip address;设置IP地址 switch(config)#ip default-gateway;设置默认网关 switch#dir flash: ;查看闪存 交换机显示命令: switch#write ;保存配置信息 switch#show vtp ;查看vtp配置信息 switch#show run ;查看当前配置信息 switch#show vlan ;查看vlan配置信息 switch#show interface ;查看端口信息 switch#show int f0/0 ;查看指定端口信息 2. 路由器支持的命令:
路由协议(routing protocol):用于routers动态寻找网络最佳路径,保证所有routers拥有相同的路由表.一般,路由协议决定数据包在网络上的行走的路径.这类协议的例子有OSPF,RIP,IGRP,EIGRP等 可路由协议(routed protocol):当所有的routers知道了整个网络的拓扑结构以后,可路由协议就可以用来发送数据.一般的,可路由协议分配给接口,用来决定数据包的投递方式.这类例子有IP和IPX 路由:把1个数据包从1个设备发送到不同网络里的另1个设备上去.这些工作依靠routers来完成.routers并不关心主机,它们只关心网络的状态和决定网络中的最佳路径 router可以路由数据包,必须至少知道以下状况: 1.目标地址(destination address) 2.可以学习到远端网络状态的邻居router 3.到达远端网络的所有路线 4.到达远端网络的最佳路径 5.如何保持和验证路由信息 The IP Routing Process 路由原理:当IP子网中的一台主机发送IP包给同一IP子网的另一台主机时,它将直接把IP包送到网络上,对方就能收到.而要送给不同IP于网上的主机时,它要选择一个能到达目的子网上的router,把IP包送给该router,由它负责把IP包送到目的地.如果没有找到这样的router,主机就把IP包送给一个称为缺省网关(default gateway)的router上.缺省网关是每台主机上的一个配置参数,它是接在同一个网络上的某个router接口的IP地址,router转发IP包时,只根据IP包目的IP地址的网络号部分,选择合适的接口,把IP包送出去.同主机一样,router也要判定接口所接的是否是目的子网,如果是,就直接把包通过接口送到网络上,否则,也要选择下一个router来传送包.router也有它的缺省网关,用来传送不知道往哪儿送的IP包.这样,通过router把知道如何传送的IP包正确转发出去,不知道的IP包送给缺省网关,这样一级级地传送,IP包最终将送到目的地,送不到目的地的IP包则被网络丢弃了当主机A发送个IP包到主机B,目标MAC地址使用的是默认网关的以太网接口地址.这是因为帧不能放置在远端网络. show ip route:查看路由表信息,比如:
【第一部分】交换机支持的命令: 1.交换机基本状态: switch: ;ROM状态,路由器是rommon> hostname> ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态 2.交换机口令设置: switch>enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令 switch(config)#enable password xxa ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令 3.交换机VLAN设置: switch#vlan database ;进入VLAN设置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;删vlan 2 switch(config)#int f0/1 ;进入端口1 switch(config-if)#switchport access vlan 2 ;当前端口加入vlan 2 switch(config-if)#switchport mode trunk ;设置为干线 switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlan switch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain;设置发vtp域名 switch(config)#vtp password;设置发vtp密码 switch(config)#vtp mode server ;设置发vtp模式 switch(config)#vtp mode client ;设置发vtp模式
思科交换机路由器命令大全 交换机命令: switch> 用户模式 1:进入特权模式 enable switch> enable switch# 2:进入全局配置模式 configure terminal switch> enable switch#configure terminal switch(conf)# 3:交换机命名 hostname aptech2950 以aptech2950为例 switch> enable switch#configure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令 enable password cisco 以cisco为例 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码 enable secret ciscolab 以cicsolab为例--设置禁用IP地址解析特性,设置启用消息同步特性 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab aptech2950(conf)#no ip domain-lookup -----设置禁用IP地址解析特性 aptech2950(conf)#logging synchronous -----设置启用消息同步特性 aptech2950(conf)#interface range fastethernet0/1-20 aptech2950(conf-if-range)#spanning-tree portfast -----设置快速端口
CS秘技命令大全 反恐精英CS是由Valve开发的射击游戏系列,作为一个经典的电子竞技项目,在全世界各地都有着大量的粉丝。但是这款游戏入门并不容易,需要长时间比较枯燥的练习,但却是成为高手的必经之路。接下来,小编就给大家介绍一下CS里很多玩家不是太清楚的命令大全和秘技,希望能对大家有所帮助。 操作命令 adjust_crosshair 每打一次准心就会换颜色,共有五种颜色,选个亮一点吧 ah 1 是否开始自动说明 cl_allowUpload 1 允许用户方上传自己的资料如logo等 cl_allowdownload 1 允许用户方自动下传sever的资料如map等 cl_download_ingame 1 作用同上 cl_lw 1 是否有武器的动画 cl_lb 1 设置血渍的表现,设1比较真实,但会减低速度 cl_lc 1 和网络相关的设置 cl_cmdrate 30 网络相关设置,modem用户设30,宽带设40~50,Lan=50 cl_hidefrags 0 是否隐藏除了自己以外其它人的杀敌数与死亡数
cl_observercrosshair 1 设定在观察员(就是你还没有投胎的时候)模式的时候是否要开起准星 cl_Updaterate 20 上传速度,如果是宽带设30~40,modem 用户就设15,局域网就可以设为50 con_color R G B 无控制台的文字颜色(R、G、B就是相对应的RGB颜色值) fps_max 72 游戏输出给显示卡的最大fps数,如有不顺或鼠标一动就滑来滑去的情形时,把它设低会有很大的改善 hideradar 关闭雷达 hud_centerid 1 设定为1时,玩家ID会出现在屏幕的正中央。否则会出现在画面的左下角 hud_fastswitch 1 是否使用快速切换武器 kill 自杀!! lefthand 0 设定玩家是用左手,还是用右手 listmaps 显示server的地图排列顺序 listplayers 显示所有玩家的编号与姓名 maps 搜索地图,*为所有地图 max_shells 50 子弹的最大显示数量0~500 max_smokepuffs 50 烟雾弹的最大显示数量0~500 name 名字换名字,活着的时候才能用 nightvision 开关夜视镜 r_speeds 0 以文字方式显示平均fps,draw speed及polygon
HP StorageWorks 8Gb SAN Switch 配置手册及实例 编辑:Windy.Chen 目 录 第一分部:SAN相关的重要概念 第二部分,配置命令及实例 第三部分: 附HP StorageWorks 8Gb SAN Switch的初始配置第四部分: 附Brocade光纤交换机划分Zone的案例及纠错
第一分部:SAN相关的重要概念 1,SAN是什么? SAN英文全称:Storage Area Network,即存储区域网络。它是一种通过光纤集线器、光纤路由器、光纤交换机等连接设备将磁盘阵列、磁带等存储设备与相关服务器连接起来的高速专用子网。 SAN由三个基本的组件构成:接口(如SCSI、光纤通道、ESCON等)、连接设备(交换设备、网关、路由器、集线器等和通信控制协议(如IP和SCSI等)。这三个组件再加上附加的存储设备和独立的SAN 服务器,就构成一个SAN系统。SAN提供一个专用的、高可靠性的基于光通道的存储网络,SAN允许独立地增加它们的存储容量,也使得管理及集中控制(特别是对于全部存储设备都集群在一起的时候)更 加简化。而且,光纤接口提供了10 km的连接长度,这使得物理上分离的远距离存储变得更容易. SAN的一个概念是允许存储设备和处理器(服务器)之间建立直接的高速网络(与LAN相比)连接, 通过这种连接实现只受光纤线路长度限制的集中式存储。SAN可以被看作是存储总线概念的一个扩展,它使用局域网(LAN)和广域网(WAN)中类似的单元,实现存储设备和服务器之间的互连。这些单元包括:路由器、集线器、交换机和网关。 SAN 可在服务器间共享,也可以为某一服务器所专有,既可以是本地的存储设备也可以扩展到地理区 域上的其他地方。SAN的接口可以是企业系统连接(ESCON)、小型计算机系统接口(SCSI)、串行存储结构(SSA)、高性能并行接口(HIPPI)、光纤通道(FC)或任何新的物理连接方法。 2,什么是SAN Switch? 交换机是用于连接大量设备、增加带宽、减少阻塞和提供高吞吐量的一种高性能设备。 3,什么是光纤交换机(FC SWITCH)? 光纤通道交换机有着许多不同的功能,包括支持GBIC、冗余风扇、电源、分区、环操作和多管理接口等。每一项功能都可以增加整个交换网络的可操作性,理解这些特点可以帮助用户设计一个功能强大的大规模 的SAN。光纤交换机的主要功能如下:自配置端口、环路设备支持、交换机级联、自适应速度检测、可配置的帧缓冲、分区(基于物理端口和基于WWN的分区)、IP over Fiber Channel(IPFC)广播、远程登录、Web管理、简单网络管理协议(SNMP)以及SCSI接口独立设备服务(SES)等。 4,什么是HBA卡和WWWN? 这里所说的HBA,全称FC HBA,也就是Fiber Channel Host Bus Adapter。在FC网络中,主机(如服务器)需要和FC网络、FC存储设备(如SAN)连接时,需要使用一种接口卡,就如同连接以太网需要以太网卡一样。这种接口卡就叫做FC HBA,简称HBA 和以太网卡的MAC地址一样,HBA上也有独一无二的标识,这就是WWN(World Wide Name)。HBA上的WWN有两种: Node WWN(WWNN):每个HBA有其独有的Node WWN Port WWN(WWPN):HBA卡上每个port有其独一无二的Port WWN。由于通讯是通过port进行的,多数情况下需要使用WWPN而不是WWNN。 WWN的长度为8bytes,用16进制表示并用冒号分隔。例如:50:06:04:81:D6:F3:45:42 在Windows 环境,有一个工具软件可是方便查询HBA卡的WWN。 FCHBA Test Tool v1.0.17.1
视图模式介绍: 普通视图 router> 特权视图 router# /在普通模式下输入enable 全局视图 router(config)# /在特权模式下输入config t 接口视图 router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图 router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式 serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口) router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码router(config-if)#enca hdlc/ppp 捆绑链路协议 hdlc 或者 ppp 思科缺省串口封装的链路层协议是HDLC所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的enca ppp或者enca fr router(config)#int loopback /建立环回口(逻辑接口)模拟不同的本机网段 router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口 在物理接口上配置了ip地址后用no shut启用这个物理接口反之可以用shutdown管理性的关闭接口 3、路由配置: (1)静态路由 router(config)#ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 下一条或自己的接口router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由 (2)动态路由 rip协议 router(config)#router rip /启动rip协议 router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段 router(config-router)#version 2 转换为rip 2版本 router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用 router(config-router)# passive-int 接口名 /启动本路由器的那个接口为被动接口
Switch命令大全! 1.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 password 在基于CLI的交换机上设置登录口令: switch(enable) set password switch(enable) set enalbepass 3.在基于IOS的交换机上设置远程访问: switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交换机上设置远程访问: switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlan switch(enable) set ip route default gateway 4.在基于IOS的交换机上启用和浏览CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable 为了查看Cisco邻接设备的CDP通告信息: switch# show cdp interface [type modle/port] switch# show cdp neighbors [type module/port] [detail] 在基于CLI的交换机上启用和浏览CDP信息: switch(enable) set cdp {enable|disable} module/port 为了查看Cisco邻接设备的CDP通告信息: switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交换机的端口描述: switch(config-if)# description description-string 基于CLI的交换机的端口描述: switch(enable)set port name module/number description-string 6.在基于IOS的交换机上设置端口速度: switch(config-if)# speed{10|100|auto} 在基于CLI的交换机上设置端口速度: switch(enable) set port speed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto}
cisco router and switch 配置命令精华压缩版 时间: 2010-08-05 / 分类: +CCNA, ★CISCO技术 / 浏览次数: 105 views / 0个评论发表评论 Router and switch 配置命令精华压缩版 1、进入SETUP模式Router#setup 2、时间设置router#clock set hh:mm:ss date moth year 3、 router>show history Router>terminal history size lines 4、 router#show version 5、 router#show running-config 6、 router#show starup-config 7、 router(config)#hostname name 主机命名 8、 router(config)#banner motd # message # 开机时的固定显示信息 9、 router(config)#enable password password 特权模式明文密码 10、 router(config)#no enable password 11、 router(config)#enable secret password 特权模式加密密码 12、 router(config)#no enable secret 13、 router(config)#service password-encryption特权模式把明文密码加密密码,但没enable secret安全可以反解 14、 router(config)#line console控制台密码 15、 router(config-line)#login 16、 router(config-line)#password password 17、 router(config-line)#exec-timeout mm ss 禁止控制台会话自动退出 18、 router(config-line)#logging synchronous重显被打乱的控制台输入 router(config)#no ip domain-lookup 禁止域名解析 19、 router(config)#line vty 0 4虚拟终端密码 20、 router(config-line)#login 21、 router(config-line)#password password 22、 router(config)#interface type number(slot/port)端口设置