Switching

Expand all | Collapse all

Any Command? like as cisco's "show interface status"

Jump to Best Answer
  • 1.  Any Command? like as cisco's "show interface status"

    Posted 07-11-2008 06:28

    Juniper switches don't support "show interface status"

    Cisco's command displayed some useful information. port name,Status,vlan,Duplex,speed,type etc...

    Have any command like cisco's command?

    I can't find anywhere yet.

    % root mode

    >  monitoring mode

     

     



  • 2.  RE: Any Command? like as cisco's "show interface status"
    Best Answer

    Posted 07-11-2008 10:23

    Hi,

     

    You can get the information from "show interface <if_name> extensive" / "show interface <if_name>  media

     

    for vlan membership of the interface

     

    check with "show ethernet-switching interfaces" or "show vlans" 

                      

     

    Thanks

    - Kiran Meda

     

    mail: kiranmk@juniper.net 



  • 3.  RE: Any Command? like as cisco's "show interface status"

    Posted 07-12-2008 06:33

    Dear...Kiran MedaMan Tongue

     

    Thanks.

     

    It's an answer exactly.

     

    for example; 

     

    >show interfaces media detail | match Link   

     

    Physical interface: ge-0/0/19, Enabled, Physical link is Up
      Link-level type: Ethernet, MTU: 1514, Speed: Auto, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled,
      Link flags     : None
        Link partner:
            Link mode: Full-duplex, Flow control: None, Remote fault: OK, Link partner Speed: 1000 Mbps
            Flow control: None, Remote fault: Link OK

    Physical interface: ae0, Enabled, Physical link is Up
      Link-level type: Ethernet, MTU: 1514, Speed: 2000mbps, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled,
      Flow control: Disabled, Minimum links needed: 1, Minimum bandwidth needed: 0

     

     

     

     

     

     

     



  • 4.  RE: Any Command? like as cisco's "show interface status"

    Posted 12-29-2010 11:21

    Just tested this Junos Automation slax op script and it works well (just missing the description field you may be used to in Cisco)

     

    http://www.juniper.net/us/en/community/junos/script-automation/library/configuration/show-interface-status/

     

     



  • 5.  RE: Any Command? like as cisco's "show interface status"

    Posted 12-18-2013 00:27
      |   view attached

    Hi All, 

     

    A customer asked for some help on this the other day. They're very used to seeing the interface description (a la Cisco) and wondered if it was possible to adjust the slax script mentioned above to fit. 

     

    I've attached the updated script here. 

     

    The output looks like - 

     

    SHOW-INT-STATUS-SLAX-OUT.png

     

    Best regards

    Andy

    Attachment(s)



  • 6.  RE: Any Command? like as cisco's "show interface status"

    Posted 12-18-2013 10:53

    Sweet! Nice modification - 



  • 7.  RE: Any Command? like as cisco's "show interface status"

    Posted 02-03-2015 09:47

    I grabbed this script for use on an ex4300 running JUNOS EX Software Suite [13.2X51-D26.2] (this is an ELS version, not sure if it matters).  When I run it all I get are the headers, no data.

     

    > op show_interface_status
    Interface Status VLAN Members Port-mode Speed Duplex Description

     

     

    I tried running it with the slax debugger:

     

    > op invoke-debugger cli show_interface_status

     

    but didn't get any output either.

     

    Any guidance would be appreciated thanks.



  • 8.  RE: Any Command? like as cisco's "show interface status"

    Posted 08-16-2015 10:33

    Dear,

     

    i have the same problem, on our EX4550 it works perfektly, on the EX4300 not.

    But i think, i have found the "problem":

     

    The Script use the Command "show ethernet-switching interfaces", who doesnt exists on the EX4300.

    There only exist a Command "show ethernet-switching interface" (without "s"), and the output is tottaly different.

     

    Also the XML-Output on EX4300 have a prefix like this "l2ng-l2ald" / "l2iff". This also not exists on EX4550.

     

    So i think the Script must be changed on a lot of Positions, but i self doent have enough SLAX-Knowhow to do this 😞

    Perhaps everyone here? 😉

     

     

     

     



  • 9.  RE: Any Command? like as cisco's "show interface status"

     
    Posted 08-16-2015 11:45
      |   view attached

    I just checked on an EX4300 and yes the command structure for ELS is indeed "interface" versus "interfaces".  I think I have edit the script to now work with ELS code.  In meatime will look into command structure change.

     

    Good luck

    Attachment(s)



  • 10.  RE: Any Command? like as cisco's "show interface status"

    Posted 08-16-2015 11:57

    Dear rccpgm,

     

    thanks for the fast response and modification, but it doesnt work. The Command-Change only is not enough. The Output of "show ethernet-switching interface" is also different to "show ethernet-switching interfaces". See the following Examples:

     

    EX4550:

    ...@ex4550> show ethernet-switching interfaces | display xml    
    <rpc-reply xmlns:junos="http://xml.juniper.net/junos/12.2R4/junos">
        <switching-interface-information junos:style="brief">
            <interface>
                <interface-name>bme0.32770</interface-name>
                <interface-state>down</interface-state>
                <interface-vlan-member-list>
                    <interface-vlan-member>
                        <interface-vlan-name>mgmt</interface-vlan-name>
                        <interface-vlan-member-tagness>untagged</interface-vlan-member-tagness>
                        <blocking-status junos:emit="emit">unblocked</blocking-status>
                    </interface-vlan-member>
                </interface-vlan-member-list>
            </interface>
            <interface>
                <interface-name>bme0.32771</interface-name>
                <interface-state>down</interface-state>
                <interface-vlan-member-list>
                    <interface-vlan-member>
                        <interface-vlan-name>mgmt</interface-vlan-name>
                        <interface-vlan-member-tagness>untagged</interface-vlan-member-tagness>
                        <blocking-status junos:emit="emit">unblocked</blocking-status>
                    </interface-vlan-member>
                </interface-vlan-member-list>
            </interface>
    ...

    EX4300:

     

    ...@agg1> show ethernet-switching interface | display xml 
    <rpc-reply xmlns:junos="http://xml.juniper.net/junos/13.2X51/junos">
        <l2ng-l2ald-iff-interface-information xmlns="http://xml.juniper.net/junos/13.2X51/junos-l2al">
            <l2ng-l2ald-iff-interface-entry junos:style="brief">
                <l2iff-interface-lr-name></l2iff-interface-lr-name>
                <l2iff-interface-rtt-name>default-switch</l2iff-interface-rtt-name>
                <l2ng-l2ald-iff-interface-entry junos:style="brief">
                    <l2iff-interface-name>ae0.0</l2iff-interface-name>
                    <l2iff-interface-vlan-name/>
                    <l2iff-interface-mac-limit>65535</l2iff-interface-mac-limit>
                    <l2iff-interface-vlan-member-stp-state/>
                    <l2iff-interface-flags></l2iff-interface-flags>
                    <l2iff-interface-vlan-member-tagness>untagged</l2iff-interface-vlan-member-tagness>
                </l2ng-l2ald-iff-interface-entry>
                <l2ng-l2ald-iff-interface-entry junos:style="brief">
                    <l2iff-interface-vlan-name>vlan-137</l2iff-interface-vlan-name>
                    <l2iff-interface-vlan-id>137</l2iff-interface-vlan-id>
                    <l2iff-interface-vlan-member-tagness>untagged</l2iff-interface-vlan-member-tagness>
                    <l2iff-interface-mac-limit>65535</l2iff-interface-mac-limit>
                    <l2iff-interface-vlan-member-stp-state>Forwarding</l2iff-interface-vlan-member-stp-state>
                    <l2iff-interface-flags></l2iff-interface-flags>
                </l2ng-l2ald-iff-interface-entry>
            </l2ng-l2ald-iff-interface-entry>
    ...

    So there are more Code-Changes needed 😕

     



  • 11.  RE: Any Command? like as cisco's "show interface status"

     
    Posted 08-16-2015 11:59

    Maybe Andy can help, . . .



  • 12.  RE: Any Command? like as cisco's "show interface status"

    Posted 08-26-2015 14:35

    Hi All, 

     

    Regrettably, I don't have an EX4300 handy to test/update the script. I'll have a look at the output posted here, however, and see if the existing script can be adjusted in the necessary places. 

     

    Andy

     



  • 13.  RE: Any Command? like as cisco's "show interface status"

    Posted 08-09-2019 10:13

    What about errors or faults on UTP cables...?

     

    I note the diagnostics tdr command, but anything to give an overview of state of play for two-member VC chassis 4300?

     

    thank you