-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjunos_CLI_MPLS.sh
More file actions
27 lines (23 loc) · 894 Bytes
/
junos_CLI_MPLS.sh
File metadata and controls
27 lines (23 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
hostname=$(hostname -s)
exe() {
echo ">======================================================================"
echo "=== $USER@$hostname:~# $@"
echo -n "=== "; date '+%Y-%m-%d %H:%M:%S %Z [%z] | %s'
echo "======================================================================="
echo ""
"$@"
echo ""; }
alias cli='exe cli'
# MPLS
cli -c 'show route table mpls.0 | no-more'
cli -c 'show route table mpls.0 extensive | no-more'
cli -c 'show mpls interface detail | no-more'
cli -c 'show mpls lsp terse | no-more'
cli -c 'show mpls lsp | no-more'
cli -c 'show mpls lsp extensive | no-more'
cli -c 'show mpls lsp ingress | no-more'
cli -c 'show mpls lsp transit | no-more'
# Traffic Engineering Database - Display the entries in the Multiprotocol Label Switching (MPLS) traffic engineering database.
cli -c 'show ted database | no-more'
cli -c 'show ted database extensive | no-more'