Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell EMC SmartFabric OS10 User Guide Release 10.5.0

Linux shell commands

From the Linux shell, you can run a single command or a series of commands in a batch file.

Linux command examples

  • Use the -c option to run a single command.
    admin@OS10:/opt/dell/os10/bin$ clish -c "show version"
    
    New user admin logged in at session 10
    Network Operating System
    OS Version: 10.5.0.0
    Build Version: 10.5.0.270
    Build Time: 2019-07-29T23:35:01+0000
    System Type: S4148F-ON
    Architecture: x86_64
    Up Time: 1 day 00:54:13
    
    User admin logged out at session 10
    admin@OS10:/opt/dell/os10/bin$
     
  • Use the -B option to run a batch file with a series of commands.
    • Create a batch file — for example, batch_cfg.txt — with a series of executable commands.
      configure terminal
      router bgp 100
      neighbor 100.1.1.1
      remote-as 104
      no shutdown
    • Execute the batch file.
      admin@OS10:/opt/dell/os10/bin$ clish -B ~/batch_cfg.txt 
      
      New user admin logged in at session 15
    • Verify the BGP settings configured by the batch file.
      admin@OS10:/opt/dell/os10/bin$ clish -c "show running-configuration bgp"
      
      New user admin logged in at session 16
      !
      router bgp 100
       !
       neighbor 100.1.1.1
        remote-as 104
        no shutdown
      admin@OS10:/opt/dell/os10/bin$ 
      
      User admin logged out at session 16
      
  • Use the ifconfig -a command to display the interface configuration. The Linux kernel port numbers that correspond to front-panel port, port-channel, and VLAN interfaces are displayed. Port-channel interfaces are in boportchannel-number format. VLAN interfaces are in brvlan-id format. In this example, e101-001-0 identifies port 1/1/1.
    admin@OS10:~# ifconfig -a
    e101-001-0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet6 fe80::20c:29ff:feed:9ea9  prefixlen 64  scopeid 0x20<link>
         ether 00:0c:29:ed:9e:a9  txqueuelen 1000  (Ethernet)
            RX packets 266262  bytes 18763391 (17.8 MiB)
            RX errors 0  dropped 8293  overruns 0  frame 0
            TX packets 18754  bytes 3963136 (3.7 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    bo1: flags=5123<UP,BROADCAST,MASTER,MULTICAST>  mtu 1500  >>>  port-channel
            inet6 fe80::20c:29ff:feed:9f11  prefixlen 64  scopeid 0x20<link>
            ether 00:0c:29:ed:9f:11  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 1 overruns 0  carrier 0  collisions 0
    
    br1: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST>  mtu 1500 >>> vlan1
            inet6 fe80::20c:29ff:feed:9f12  prefixlen 64  scopeid 0x20<link>
            ether 00:0c:29:ed:9f:12  txqueuelen 1000  (Ethernet)
            RX packets 257964  bytes 12155776 (11.5 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 10287  bytes 900262 (879.1 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
  • Use the tcpdump -i kernel-port-number command to capture all packets received on a specified port interface. Press Ctrl+C to stop the packet output display. For example, to capture the packets received on the Ethernet 1/1/1 interface, enter:
    admin@OS10:~# tcpdump -i e101-001-0 
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on e101-001-0, link-type EN10MB (Ethernet), capture size 262144 bytes
    11:35:07.538133 STP 802.1w, Rapid STP, Flags [Learn, Forward, Agreement], bridge-id 8001.00:0c:29:74:3b:7e.8204, length 43
    11:35:07.538467 STP 802.1w, Rapid STP, Flags [Learn, Forward, Agreement], bridge-id 8001.00:0c:29:74:3b:7e.8204, length 43
    11:35:08.416291 LLDP, length 343: OS10
    11:35:09.067621 IP6 fe80::20c:29ff:feed:9f12 > ff02::1:ffed:9ea9: ICMP6, neighbor solicitation, who has fe80::20c:29ff:feed:9ea9, length 32
    ^C
    4 packets captured
    4 packets received by filter
    0 packets dropped by kernel
    1 packet dropped by interface
    root@OS10:~#
    
  • Run show commands remotely using an SSH session. Only show commands are supported.
    Enter the $ ssh admin@ip-address "show-command" command, where ip-address is the IP address of the switch.
    $ ssh admin@10.11.98.39 "show version"
    admin@10.11.98.39's password: 
    Dell EMC Networking OS10 Enterprise
    Copyright (c) 1999-2019 by Dell Inc. All Rights Reserved.
    OS Version: 10.5.0.0
    Build Version: 10.5.0.270
    Build Time: 2019-07-29T23:35:01+0000
    System Type: S4148F-ON
    Architecture: x86_64
    Up Time: 1 day 00:54:13

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\