Sie sind auf Seite 1von 2

SmartFabric OS10 CLI Commands

Commands used in SmartFabric OS10 CLI Implementation course:

Command Syntax Command Example


Licensing
show license status OS10# show license status
OS10# license install scp://user:userpwd@10.1.1.10/0A900Q2-
license install [transfer method]
NOSEnterprise-License.xml
Switch operational modes
show switch-operating-mode OS10# show switch-operating-mode
switch-operating-mode [sfd | full-
OS10(config)# switch-operating-mode full-switch
switch]
write memory OS10# write memory
reload OS10# reload
Switch name
OS10(config)# hostname Switch1
hostname <new name>
Switch1(config)#
Management port
interface mgmt x/y/z OS10(config)# interface mgmt 1/1/1
no ip address dhcp (disable dhcp
OS10(conf-if-ma-1/1/1)# no ip address dhcp
addressing)
ip address A.B.C.D/<mask> OS10(conf-if-ma-1/1/1)# ip address 192.168.1.1/24
show configuration OS10(conf-if-ma-1/1/1)# show configuration
show interface mgmt 1/1/1 OS10(conf-if-ma-1/1/1)# do show interface mgmt 1/1/1
Management default gateway
management route 0.0.0.0/0 [next-hop
OS10(config)# management route 0.0.0.0/0 192.168.1.254
addr]
ping A.B.C.D OS10# ping 192.168.5.5
SSH/Telnet
Enable telnet: ip telnet server enable OS10(config)# ip telnet server enable
Disable telnet: no ip telnet server
OS10(config)# no ip telnet server enable
enable
Show ip ssh OS10# show ip ssh
Enable SSH: ip ssh server enable OS10(config)# ip ssh server enable
Disable SSH: no ip ssh server enable OS10(config)# no ip ssh server enable
Crypto ssh-key generate rsa [bits] OS10# crypto ssh-key generate rsa 4096
Upgrade firmware
show version OS10# show version
OS10# image download
Image download [file-url] scp://dnos_user:Passw0rd@192.168.1.254:/var/www/htmo/PKGS_OS10-
Enteprise-10.5.1.0.124stretch-installer-x86_64.bin
show image status OS10# show image status
show boot OS10# show boot
dir image OS10# dir image
OS10# image install image://PKGS_OS10-Enteprise-
10.5.1.0.124stretch-installer-x86_64.bin
image install [file location]
OS10# image install
scp://dnos_user:Passw0rd@192.168.1.254:/var/www/htmo/PKGS_OS10-
Enteprise-10.5.1.0.124stretch-installer-x86_64.bin
show boot detail OS10# show boot detail
boot system [active | standby] OS10# boot system standby
reload OS10# reload

pg. 1
Command Syntax Command Example
Secure boot feature
secure-boot enable OS10(config)# secure-boot enable
show secure-boot status OS10# show secure-boot status
OS10# secure-boot verify kernel
secure-boot verify OS10# secure-boot verify file-system-integrity
OS10# secure-boot verify startup-config
Creating VLANs
interface vlan [VLAN ID] OS10(config)# interface vlan 10
description [description text] OS10(conf-if-vl-10)# description Finance
show vlan OS10# show vlan
Working with switch interfaces
show interface status OS10# show interface status
interface ethernet node/slot/port OS10(config)# interface ethernet 1/1/7
Disable: shutdown OS10(conf-if-eth1/1/7)# shutdown
Enable: no shutdown OS10(conf-if-eth1/1/7)# no shutdown
OS10(config)# interface range ethernet 1/1/2-1/1/9
interface range
OS10(conf-range-eth1/1/2-1/1/9)#
show configuration OS10(conf-if-eth1/1/7)# show configuration
L2 untagged interface
Assign VLAN to an interface: OS10(config)# interface ethernet 1/1/4
interface ethernet 1/1/1 OS10(conf-if-eth1/1/4)# switchport mode access
switchport access vlan [VLAN ID] OS10(conf-if-eth1/1/4)# switchport access vlan 10
Multiple VLANs on a single interface
switchport mode trunk OS10(conf-if-ma-1/1/3)# switchport mode trunk
switchport trunk allowed vlan [list] OS10(conf-if-ma-1/1/3)# switchport trunk allowed vlan 10,20,30
Configure a L3 physical interface
interface [port type] node/slot/port OS10(config)# interface ethernet 1/1/12
no switchport OS10(conf-if-eth1/1/12)# # no switchport
ip address A.B.C.D/mask OS10(conf-if-eth1/1/12)# # ip address 10.10.10.1/30
ip route 0.0.0.0/0 [next-hop router] OS10(config)# ip route 0.0.0.0/0 10.10.10.2
show ip route OS10(config)# do show ip route
Configure a VLAN interface with a L3 IP address and assign to a physical interface
interface vlan [VLAN ID] OS10(config)# interface vlan 10
ip address A.B.C.D/mask OS10(conf-if-vl-10)# ip address 192.168.10.1/24
interface ethernet node/slot/port OS10(conf-if-vl-10)# interface ethernet 1/1/1
switchport access vlan [VLAN ID] OS10(conf-if-eth1/1/1)# switchport access vlan 10
show ip route OS10(conf-if-eth1/1/1)# show ip route
Saving switch configuration changes
show running-configuration OS10# show running-configuration
copy running-configuration startup-
OS10# copy running-configuration startup-configuration
configuration
write memory OS10# write memory
dir config OS10# dir config
Disable zero-touch deployment (ZTD)
ztd cancel OS10# ztd cancel
show ztd status OS10# show ztd status
Configure users and credentials
username [name] password [password]
OS10(config)# username jayne20 password P@ssw0rd20 role
role [netadmin | netoperator |
netadmin priv-lvl 15
secadmin] priv-lvl [1-15]
show running-config | grep username OS10# show running-configuration | grep username

End of command list

pg. 2

Das könnte Ihnen auch gefallen