Wired Intelligent Edge

 View Only
Expand all | Collapse all

Output of some command in HP ProCurve

This thread has been viewed 1 times
  • 1.  Output of some command in HP ProCurve

    Posted Aug 08, 2011 11:39 PM

    Hi all,

    I start to work with CLI of HP Procuve without real device. I found some documents, show some cli. but that's not enough,so, while waiting for real devices, could you please tell me output of some following commands:

    - show cdp neighbors detail

    - show version.

     

    Thanks a lot.



  • 2.  RE: Output of some command in HP ProCurve

    Posted Aug 09, 2011 01:22 PM

    Hi,

    here you go:

     

    sw1# sh ver
    Image stamp:    /sw/code/build/btm(t3a)
                    Oct 17 2008 20:03:02
                    K.13.45
                    706
    Boot Image:     Primary
    sw1#

     

    sw1# sh cdp nei detail

     CDP neighbors information

      Port : A1
      Device ID : XX XX XX XX XX XX
      Address Type : IP
      Address      : 192.168.0.2
      Platform     : ProCurve J8697A Switch 5406zl, revision K.13.45, ROM K.1...
      Capability   : Switch
      Device Port  : 1
      Version      : ProCurve J8697A Switch 5406zl, revision K.13.45, ROM K.1...

    ------------------------------------------------------------------------------

      Port : A2
      Device ID : XX XX XX XX XX XX
      Address Type : IP
      Address      : 192.168.0.2
      Platform     : ProCurve J8697A Switch 5406zl, revision K.13.45, ROM K.1...
      Capability   : Switch
      Device Port  : 2
      Version      : ProCurve J8697A Switch 5406zl, revision K.13.45, ROM K.1...

     

     

    hth

    Alex



  • 3.  RE: Output of some command in HP ProCurve

    Posted Aug 11, 2011 07:33 AM

    Hi.

    Please help me to specify equivalent command in HP ProCurve of  some following Cisco commands, and output.

     

    + show ip route

    + show int vlan <number> (get detail information of  a vlan)

    + show interface description (get Description of interface)

    + show inter 

     

    Thanks.



  • 4.  RE: Output of some command in HP ProCurve

    Posted Aug 11, 2011 07:48 AM

    Hi,

     

    Please.... Here  you can found all the CISCO<=> Procurve comparative command.

     

    SW_Archivo_Anexo# sh ip route
                                    IP Route Entries
      Destination        Gateway         VLAN Type      Sub-Type   Metric     Dist.
      ------------------ --------------- ---- --------- ---------- ---------- -----
      0.0.0.0/0          10.128.24.136   2    static               0          250 
      10.128.24.128/25   DATOSARCHIVO    2    connected            0          0   
      127.0.0.0/8        reject               static               0          250 
      127.0.0.1/32       lo0                  connected            0          0   
     

    ******************************************************************************************

    SW_Archivo_Anexo# show vlans 2

     Status and Counters - VLAN Information - Ports - VLAN 2

      802.1Q VLAN ID : 2          
      Name : DATOSARCHIVO
      Status : Port-based  Voice : No
      Jumbo : No

      Port Information Mode     Unknown VLAN Status   
      ---------------- -------- ------------ ----------
      1                Untagged Learn        Up       
      2                Untagged Learn        Down     
      3                Untagged Learn        Down     
      4                Untagged Learn        Down     
      5                Untagged Learn        Down     
      6                Untagged Learn        Up       
      7                Untagged Learn        Down     
      8                Untagged Learn        Up       
      9                Untagged Learn        Up       
      10               Untagged Learn        Up       
      11               Untagged Learn        Down     
      12               Untagged Learn        Up       
      13               Untagged Learn        Down     
      14               Untagged Learn        Down     
      15               Untagged Learn        Up       
      16               Untagged Learn        Up       
      17               Untagged Learn        Down     
      18               Untagged Learn        Down     
      19               Untagged Learn        Up       
      20               Untagged Learn        Down     
      21               Untagged Learn        Down     
      22               Untagged Learn        Up       
      23               Untagged Learn        Up       
      24               Untagged Learn        Up       
     

    ******************************************************************************************

    SW_Archivo_Anexo# sh interfaces brief 1

     Status and Counters - Port Status

                      | Intrusion                           MDI   Flow  Bcast
      Port  Type      | Alert     Enabled Status Mode       Mode  Ctrl  Limit
      ----- --------- + --------- ------- ------ ---------- ----- ----- ------
      1     100/1000T | No        Yes     Up     1000FDx    MDI   off   0    
     
    SW_Archivo_Anexo# sh interfaces 1

     Status and Counters - Port Counters for port 1                      

      Name  : PC Digitalizacion (10.128.24.146)                              
      Link Status     : Up 
      Totals (Since boot or last clear) :                                   
       Bytes Rx        : 111,644,502        Bytes Tx        : 919,931,758      
       Unicast Rx      : 322,927            Unicast Tx      : 357,849          
       Bcast/Mcast Rx  : 6778               Bcast/Mcast Tx  : 8,909,893        
      Errors (Since boot or last clear) :                                   
       FCS Rx          : 0                  Drops Rx        : 0                
       Alignment Rx    : 0                  Collisions Tx   : 0                
       Runts Rx        : 0                  Late Colln Tx   : 0                
       Giants Rx       : 0                  Excessive Colln : 0                
       Total Rx Errors : 0                  Deferred Tx     : 0                
      Rates (5 minute weighted average) :
       Total Rx  (bps) : 357496             Total Tx  (bps) : 5001024  
       Unicast Rx (Pkts/sec) : 0            Unicast Tx (Pkts/sec) : 0        
       B/Mcast Rx (Pkts/sec) : 0            B/Mcast Tx (Pkts/sec) : 1        
       Utilization Rx  : 00.03 %            Utilization Tx  : 00.50 %

    ******************************************************************************************

     

    Greetings...



  • 5.  RE: Output of some command in HP ProCurve

    Posted Aug 12, 2011 05:33 AM

    Hi again,

     

    How about command "show interface"? I need a full ouput to create a parser to get all interface information.

     

    Thanks.



  • 6.  RE: Output of some command in HP ProCurve

    Posted Aug 14, 2011 10:00 AM

    Hi

     

    Do you want to see full details of one interface or all of them? If one, the command would be

     

    show interfaces <portnum>

     

     Status and Counters - Port Counters for port A1                     

     

      Name  :                                                                
      MAC Address      : 001ffe-xxxxxx

      Link Status      : Up 
      Totals (Since boot or last clear) :                                   
       Bytes Rx        : 0                  Bytes Tx        : 643,613,020      
       Unicast Rx      : 0                  Unicast Tx      : 19,091,649       
       Bcast/Mcast Rx  : 0                  Bcast/Mcast Tx  : 48,109,276       
      Errors (Since boot or last clear) :                                   
       FCS Rx          : 0                  Drops Tx        : 22,762           
       Alignment Rx    : 0                  Collisions Tx   : 0                
       Runts Rx        : 0                  Late Colln Tx   : 0                
       Giants Rx       : 0                  Excessive Colln : 0                
       Total Rx Errors : 0                  Deferred Tx     : 0                
      Others (Since boot or last clear) :                                   
       Discard Rx      : 0                  Out Queue Len   : 0                
       Unknown Protos  : 0                
      Rates (5 minute weighted average) :
       Total Rx  (bps) : 0           Total Tx  (bps) : 5029824  
       Unicast Rx (Pkts/sec) : 0          Unicast Tx (Pkts/sec) : 0        
       B/Mcast Rx (Pkts/sec) : 0          B/Mcast Tx (Pkts/sec) : 27       
       Utilization Rx  :     0 %  Utilization Tx  : 00.50 %

     

    You can replace <portnum> with port list as well (show interfacess a1-b7) or if you want everything, just show interfaces all. And of course, port numbers like A1 refer to a modular switch, on a single box it's just a number.



  • 7.  RE: Output of some command in HP ProCurve

    Posted Aug 14, 2011 10:50 PM

    Hi.

     

    I need the full output of command "show interface" because i need to know how to separate between 2 interface,

    ex: in cisco device:

     

    FastEthernet0/0 is up, line protocol is up
      Hardware is AmdFE, address is
      Description: Test
      Internet address is 10.11.0.3/24
      MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation ARPA, loopback not set
      Keepalive set (10 sec)
      Full-duplex, 100Mb/s, 100BaseTX/FX
      ARP type: ARPA, ARP Timeout 04:00:00
      Last input 00:00:00, output 00:00:00, output hang never
      Last clearing of "show interface" counters never
      Input queue: 0/75/2437850/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/40 (size/max)
      5 minute input rate 4000 bits/sec, 6 packets/sec
      5 minute output rate 11000 bits/sec, 5 packets/sec
         23438226 packets input, 1888069064 bytes
         Received 896051 broadcasts, 0 runts, 0 giants, 0 throttles
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
         0 watchdog
         0 input packets with dribble condition detected
         17440339 packets output, 1890934238 bytes, 0 underruns
         0 output errors, 0 collisions, 0 interface resets
         0 babbles, 0 late collision, 0 deferred
         0 lost carrier, 0 no carrier
         0 output buffer failures, 0 output buffers swapped out
    FastEthernet0/1 is up, line protocol is up
      Hardware is AmdFE, address is
      Description: OHUI
      Internet address is 10.11.14.1/30
      MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation ARPA, loopback not set
      Keepalive set (10 sec)
      Full-duplex, 100Mb/s, 100BaseTX/FX
      ARP type: ARPA, ARP Timeout 04:00:00
      Last input 00:00:05, output 00:00:03, output hang never
      Last clearing of "show interface" counters never
      Input queue: 1/75/0/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/40 (size/max)
      5 minute input rate 7000 bits/sec, 2 packets/sec
      5 minute output rate 2000 bits/sec, 3 packets/sec
         3650517 packets input, 555207068 bytes
         Received 180588 broadcasts, 0 runts, 0 giants, 0 throttles
         0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
         0 watchdog
         0 input packets with dribble condition detected
         3647836 packets output, 408367098 bytes, 0 underruns
         0 output errors, 0 collisions, 0 interface resets
         0 babbles, 0 late collision, 0 deferred
         0 lost carrier, 0 no carrier
         0 output buffer failures, 0 output buffers swapped out

     

    please help me!

     

    Thank a lot.



  • 8.  RE: Output of some command in HP ProCurve

    Posted Aug 15, 2011 02:16 AM

    Hi,

     

    ok.. with just "show interface" you get:

    sw5# show interface

     Status and Counters - Port Counters

                                                                  Flow
      Port    Total Bytes  Total Frames Errors Rx    Drops Tx     Ctrl
      ------- ------------ ------------ ------------ ------------ -----
      A1-Trk1 4,004,276... 157,619,151  0            0            off
      A2-Trk1 921,541,885  499,414,679  0            0            off
      A3      0            0            0            0            off
      A4      0            0            0            0            off
      B1-Trk2 2,776,599... 342,217,023  0            0            off
      B2-Trk2 3,281,941... 229,766,326  0            0            off
      B3      0            0            0            0            off
      B4      0            0            0            0            off
      C1      294,469,778  317,316      0            0            off
      C2      0            0            0            0            off
      C3      2,247,750... 108,259,293  16           17           off
      C4      3,450,795... 15,034,711   0            0            off
      C5      2,405,096... 9,600,108    0            0            off
      C6      3,552,205... 147,368,798  0            55           off
      C7      3,448,203... 64,653,985   0            0            off
      C8      3,259,989... 64,601,796   0            0            off
      C9      1,803,630... 74,745,461   0            30,161,251   off
      C10     2,469,029... 10,435,556   0            9            off
      C11     3,218,997... 74,119,939   3            9            off
      C12     0            0            0            0            off
      D1      3,932,098... 295,514,597  7            19           off
      D2      2,811,100... 367,766,257  17           54           off
      D3      2,892,338... 82,529,668   1            19           off
      D4      1,381,751... 419,517,687  9            67           off
      D5      1,700,185... 462,164,040  11           74           off
      D6      4,118,810... 15,677,629   0            0            off
      D7      2,289,634... 263,249,459  7            81           off
      D8      3,055,788... 184,010,374  4            55           off
      D9      2,205,425... 155,051,641  3            41           off
      D10     2,304,889... 167,045,660  8            49           off

     .....

     

     

    to get something like the show interface in cisco you need:

     

    sw5#  show interface all

     Status and Counters - Port Counters for port A1

      Name  : sw4
      Link Status     : Up
      Totals (Since boot or last clear) :
       Bytes Rx        : 1,318,069,079      Bytes Tx        : 2,686,356,928
       Unicast Rx      : 2,139,608,173      Unicast Tx      : 2,036,301,979
       Bcast/Mcast Rx  : 272,334,159        Bcast/Mcast Tx  : 4,343,579
      Errors (Since boot or last clear) :
       FCS Rx          : 0                  Drops Tx        : 0
       Alignment Rx    : 0                  Collisions Tx   : 0
       Runts Rx        : 0                  Late Colln Tx   : 0
       Giants Rx       : 0                  Excessive Colln : 0
       Total Rx Errors : 0                  Deferred Tx     : 0
      Rates (5 minute weighted average) :
       Total Rx  (bps) : 5188464            Total Tx  (bps) : 5071816
       Unicast Rx (Pkts/sec) : 65           Unicast Tx (Pkts/sec) : 46
       B/Mcast Rx (Pkts/sec) : 11           B/Mcast Tx (Pkts/sec) : 0
       Utilization Rx  : 00.14 %            Utilization Tx  : 00.14 %


     Status and Counters - Port Counters for port A2

      Name  : sw4
      Link Status     : Up
      Totals (Since boot or last clear) :
       Bytes Rx        : 3,314,964,636      Bytes Tx        : 1,901,655,975
       Unicast Rx      : 2,684,432,287      Unicast Tx      : 1,944,660,504
       Bcast/Mcast Rx  : 161,496,461        Bcast/Mcast Tx  : 3,793,635
      Errors (Since boot or last clear) :
       FCS Rx          : 0                  Drops Tx        : 0
       Alignment Rx    : 0                  Collisions Tx   : 0
       Runts Rx        : 0                  Late Colln Tx   : 0
       Giants Rx       : 0                  Excessive Colln : 0
       Total Rx Errors : 0                  Deferred Tx     : 0
      Rates (5 minute weighted average) :
       Total Rx  (bps) : 5213328            Total Tx  (bps) : 5114600
       Unicast Rx (Pkts/sec) : 49           Unicast Tx (Pkts/sec) : 45
       B/Mcast Rx (Pkts/sec) : 5            B/Mcast Tx (Pkts/sec) : 0
       Utilization Rx  : 00.14 %            Utilization Tx  : 00.14 %

     ....

     

    hth

     

    alex



  • 9.  RE: Output of some command in HP ProCurve

    Posted Aug 15, 2011 04:29 AM

    Thanks . It's very helpful for me.

     

    In cisco device, I can use command "show ip interface brief" to get all interface of switch, include VLAN interface with ip address, status,protocol

    ex:

     CSW-2-1#sho ip int bri
    Interface                  IP-Address      OK? Method Status                Protocol
    Vlan1                      unassigned      YES manual administratively down down
    Vlan3                      unassigned      YES manual administratively down down
    Vlan4                      10.11.2.2       YES manual up                    up
    Vlan888                    10.11.99.199    YES manual administratively down down
    FastEthernet0/1            unassigned      YES unset  up                    up
    FastEthernet0/2            unassigned      YES unset  up                    up

     

    Please tell me, how to do this in HP ProCurve?

    Thanks.



  • 10.  RE: Output of some command in HP ProCurve

    Posted Aug 15, 2011 05:03 AM
      |   view attached

    Well there isn't one...

    Procurve doesn't has the "inteface" kind of view.

     

    there is:

    show ip

     

    sw5# show ip

     Internet (IP) Service

      IP Routing : Disabled

      Default Gateway : 192.168.0.1
      Default TTL     : 64
      Arp Age         : 20
      Domain Suffix   :
      DNS server      :

      VLAN         | IP Config  IP Address      Subnet Mask
      ------------ + ---------- --------------- ---------------
      DEFAULT_VLAN | Disabled
      Service      | Manual     192.168.0.2     255.255.254.0
      test           | Manual     192.168.4.2    255.255.248.0
      bla           | Manual     192.168.20.2     255.255.254.0
      bla2         | Disabled

     

     

    and there is:

     

    sw5# show interfaces brief

     Status and Counters - Port Status

                        | Intrusion                           MDI   Flow
      Port    Type      | Alert     Enabled Status Mode       Mode  Ctrl
      ------- --------- + --------- ------- ------ ---------- ----- -----
      A1-Trk1 1000T-SFP | No        Yes     Up     1000FDx    NA    off
      A2-Trk1 1000T-SFP | No        Yes     Up     1000FDx    NA    off
      A3                | No        Yes     Down                    off
      A4                | No        Yes     Down                    off
      B1-Trk2 1000SX    | No        Yes     Up     1000FDx    NA    off
      B2-Trk2 1000SX    | No        Yes     Up     1000FDx    NA    off
      B3                | No        Yes     Down                    off
      B4                | No        Yes     Down                    off
      C1      100FX     | No        Yes     Up     100FDx           off
      C2      100FX     | No        Yes     Down   100FDx           off
      C3      100FX     | No        Yes     Down   100FDx           off
      C4      100FX     | No        Yes     Up     100FDx           off
      C5      100FX     | No        Yes     Up     100FDx           off
      C6      100FX     | No        Yes     Up     100FDx           off
      C7      100FX     | No        Yes     Down   100FDx           off
      C8      100FX     | No        Yes     Down   100FDx           off
      C9      100FX     | No        Yes     Down   100FDx           off
      C10     100FX     | No        Yes     Up     100FDx           off
      C11     100FX     | No        Yes     Down   100FDx           off
      C12     100FX     | No        Yes     Down   100FDx           off
      D1      100FX     | No        Yes     Up     100FDx           off
      D2      100FX     | No        Yes     Up     100FDx           off
      D3      100FX     | No        Yes     Down   100FDx           off
      D4      100FX     | No        Yes     Up     100FDx           off
      D5      100FX     | No        Yes     Up     100FDx           off
      D6      100FX     | No        Yes     Up     100FDx           off
      

     

    there is a "HP Networking and Cisco CLI Reference Guide" attached...

     

    hth

    alex



  • 11.  RE: Output of some command in HP ProCurve

    Posted Aug 16, 2011 12:02 AM

    Hi.

     

    I looked around the attachment,but I don't know how to get statistic information of VLAN like cisco device:

     

    CSW-2-1#show int vlan 1
    Vlan1 is administratively down, line protocol is down
      Hardware is CPU Interface, address is ...
      MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation ARPA, loopback not set
      ARP type: ARPA, ARP Timeout 04:00:00
      Last input never, output never, output hang never
      Last clearing of "show interface" counters never
      Input queue: 0/75/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
         75 packets input, 10472 bytes, 0 no buffer
         Received 1 broadcasts (0 IP multicast)
         0 runts, 0 giants, 0 throttles
         0 input errors, 0 CRC, 0 frame, 0 overrun, 1 ignored
         259 packets output, 0 bytes, 0 underruns
         0 output errors, 5 interface resets
         0 output buffer failures, 0 output buffers swapped out

    Please tell me, is there any command in HP ProCurve show information like that?

     

    Thanks.

     



  • 12.  RE: Output of some command in HP ProCurve

    Posted Aug 16, 2011 02:54 AM
    Hi,
    not that i'm aware of..
    hth
    alex


  • 13.  RE: Output of some command in HP ProCurve

    Posted Aug 22, 2011 12:50 AM

    Hi again,

     

    Please help me, how to know MAC address of and interface(port) in HP ProCurve?

     

    Thanks.



  • 14.  RE: Output of some command in HP ProCurve

    Posted Aug 22, 2011 01:00 AM

     

    sw5# sh mac

     Status and Counters - Port Address Table

      MAC Address   Located on Port
      ------------- ---------------
      xxxxxx-xxxxxx Trk1
      xxxxxx-xxxxxx H7

     

    sw5# sh mac h7

     Status and Counters - Port Address Table - H7

      MAC Address
      -------------
      xxxxxx-xxxxxx

     

    hth

    alex