Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirceaulinic/52e42f4c30632c6224d5f133d11672d8 to your computer and use it in GitHub Desktop.
Save mirceaulinic/52e42f4c30632c6224d5f133d11672d8 to your computer and use it in GitHub Desktop.
salt-output.sh
root@ip-172-31-13-136:~# salt device1 netmiko.send_command "show clock"
device1:
*11:46:08.849 UTC Tue Mar 21 2017
root@ip-172-31-13-136:~# salt device1 netmiko.send_command "show ip interface brief"
device1:
Interface IP-Address OK? Method Status Protocol
GigabitEthernet1 172.31.46.249 YES DHCP up up
root@ip-172-31-13-136:~# salt device1 netmiko.send_command "show interfaces"
device1:
GigabitEthernet1 is up, line protocol is up
Hardware is CSR vNIC, address is 0a11.aabe.c10f (bia 0a11.aabe.c10f)
Internet address is 172.31.46.249/20
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full Duplex, 1000Mbps, link type is auto, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:02, output 00:00:02, output hang never
Last clearing of "show interface" counters never
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
541 packets input, 35059 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 0 multicast, 0 pause input
669 packets output, 71714 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
root@ip-172-31-13-136:~# salt device1 netmiko.send_command "show interfaces summary"
device1:
*: interface is up
IHQ: pkts in input hold queue IQD: pkts dropped from input queue
OHQ: pkts in output hold queue OQD: pkts dropped from output queue
RXBS: rx rate (bits/sec) RXPS: rx rate (pkts/sec)
TXBS: tx rate (bits/sec) TXPS: tx rate (pkts/sec)
TRTL: throttle count
Interface IHQ IQD OHQ OQD RXBS RXPS TXBS TXPS TRTL
-----------------------------------------------------------------------------------------------------------------
* GigabitEthernet1 0 0 0 0 1000 1 1000 1 0
root@ip-172-31-13-136:~# salt device1 netmiko.send_command "show arp"
device1:
Protocol Address Age (min) Hardware Addr Type Interface
Internet 172.31.32.1 0 0a9a.d74c.2695 ARPA GigabitEthernet1
Internet 172.31.46.249 - 0a11.aabe.c10f ARPA GigabitEthernet1
root@ip-172-31-13-136:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment