API Guide

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
Advanced CLI tasks
107