Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
Source Code and GitHub Links The source code below is also available from the following GitHub locations: show-trunk in Junoscriptorium on GitHub Example Output SLAX Script Contents XML Script Contents Example Output 01 The output: 02 03 root@VC2> op show-trunk 04 Interface State VLAN Member Blocked Description 05 ae0 down blue RTG Blocked 06 vlan200 RTG Blocked 07 red RTG Blocked 08 yellow RTG Blocked 09 ae1 up blue unblocked 10 vlan200 unblocked 11 red unblocked 12 yellow unblocked 13 ge-0/0/20 down 14 ge-0/0/21 down blue unblocked 15 ge-1/0/0 up vlan100 unblocked 16 vlan200 unblocked 17 vlan300 unblocked 18 19 20 (master:0) 21 root@VC2> SLAX Script Contents 001 /* 002 * 003 * NAME: show-trunk.slax 004 * PURPOSE: Created to provide vlan information for all interfaces 005 * that are defined as trunk interfaces. 006 * 007 * CREATED: 02/12/09 008 * BY: Jay Wilson (Solutions Architect - Western Area) 009 * LAST MOD: 02/12/09 010 * BY: Jay Wilson 011 * VERSION: 1.00 012 * 013 * MODIFICATION HISTORY: 014 * V1.00 = Initial release 015 * 016 */ 017 version 1.0; 018 ns junos = "http://xml.juniper.net/junos/*/junos"; 019 ns xnm = "http://xml.juniper.net/xnm/1.1/xnm"; 020 ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0"; 021 import "