Print | Rate this content

HP ProCurve Switch -- Repeat "Show" Commands in the CLI

AskProCurve Article

Title:

HP ProCurve Switch -- Repeat "Show" Commands in the CLI

Available Part Numbers:

J4097B HP ProCurve Switch 408.,J4097C ProCurve Switch 408,J4110A HP ProCurve Switch 8000M,J4111A HP ProCurve Switch 10/100Base-T Module,J4112A HP ProCurve Switch 100Base-FX module,J4113A HP ProCurve Gigabit-SX module,J4114A HP ProCurve Switch Gigabit-LX Module,J4115B HP ProCurve Switch 100/1000Base-T Mod.,J4118A HP ProCurve Switch 10Base-FL module,J4119A HP ProCurve Switch 4000M/8000M RPS,J4121A HP ProCurve Switch 4000M,J4812A HP ProCurve 2512 Switch,J4813A HP ProCurve 2524 Switch,J4817A HP ProCurve 2312 Switch,J4818A HP ProCurve 2324 Switch,J4819A HP ProCurve 5308XL Switch,J4820A HP ProCurve Switch XL 10/100-TX Module,J4820B HP ProCurve Switch xl 10/100-TX Module,J4821A HP ProCurve Switch XL 100/1000-T Module,J4821B HP ProCurve Switch xl 100/1000-T Module,J4839A ProCurve Switch gl/xl/vl RPS,J4848A HP ProCurve Switch 5372XL,J4848B HP ProCurve 5372XL Switch,J4849A HP ProCurve Switch 5348XL,J4849B HP ProCurve 5348XL Switch,J4850A HP ProCurve 5304XL Switch,J4852A HP ProCurve Switch XL 100-FX MTRJ Module,J4861A HP ProCurve Switch 4108GL Bundle,J4862B HP ProCurve Switch gl 10/100-TX Module,J4863A HP ProCurve Switchgl10/100/1000-T Module,J4864A HP ProCurve Switch gl Transceiver Module,J4865A HP ProCurve 4108GL Switch,J4868A HP ProCurve 2124 Switch,J4878A HP ProCurve Switch XL Mini-GBIC Module,J4878B HP ProCurve Switch XL Mini-GBIC Module,J4887A HP ProCurve 4104GL Switch,J4888A HP ProCurve 4148gl Switch,J4892A HP ProCurve Switch gl 100-FX Mtrj Module,J4893A HP ProCurve gl Mini-GBIC Module,J4897A HP ProCurve 2724 Switch,J4898A HP ProCurve 2708 Switch,J4899A HP ProCurve Switch 2650,J4899B HP ProCurve 2650 Switch,J4899C ProCurve Switch 2650,J4900A HP ProCurve Switch 2626,J4900B HP ProCurve 2626 Switch,J4900C ProCurve Switch 2626,J4901A ProCurve Switch 2524 Limited Edition,J4903A HP ProCurve Switch 2824,J4904A HP ProCurve Switch 2848,J4905A HP ProCurve Switch 3400cl-24G,J4906A HP ProCurve Switch 3400cl-48G,J4907A HP ProCurve Switch xl 16P 10/100/1000Mod,J4908A HP ProCurve Switch 10/100/1000 module,J8151A HP ProCurve 4140GL Switch,J8152A HP ProCurve 4160gl Switch,J8161A HP ProCurve Switch Xl10/100-TXPoe Module,J8162A HP ProCurve Switch Controller Module,J8164A HP ProCurve Switch 2626 Pwr,J8165A HP ProCurve Switch 2650 Pwr,J8166A HP ProCurve 5304xl 32G Switch,J8167A HP ProCurve 5308xl-48G Switch,J8692A ProCurve Switch 3500 yl 24G PWR Intel Ed,J8693A ProCurve Switch 3500 yl 48G PWR Intel Ed,J8697A ProCurve Switch 5406 zl Intelligent Edge,J8698A ProCurve Switch 5412zl Intelligent Edge,J8699A ProCurve Switch 5406 zl 48G Intell Edge,J8700A ProCurve Switch 5412zl-96G Intell Edge,J8702A ProCurve Switchzl 24 10/100/1000 PoE Mo,J8705A ProCurve Switch zl 20 Gig-T 4 mGBIC Mo,J8706A Procurve Switch zl 24-P Mini-GBIC Module,J8707A ProCurve Switch zl 4-P 10 GbE X2 Mod,J8708A ProCurve Switch zl 4-P 10 GbE CX4 Module,J8712A ProCurve Switch zl 875W Power Supply,J8713A ProCurve Switch zl 1500W Power Supply,J8714A ProCurve Switch zl Power Supply Shelf,J8762A ProCurve Switch 2600-8PWR w/Gig Uplink,J8763A ProCurve Switch vl 100FX MTRJ Module,J8764A ProCurve Switch vl 10/100/1000-T Module,J8765A ProCurve Switch vl 10/100-TX Module,J8766A ProCurve Switch vl 1-P 10-GbE X2 Module,J8768A ProCurve Switch vl 24-Port Gig T module,J8770A ProCurve Switch 4204 vl,J8772A ProCurve Switch 4202 vl-72,J8773A ProCurve Switch 4208vl,J8775A ProCurve Switch 4208 vl-96,J8776A ProCurve Switch vl 4-Port Mini-GBIC,J8988A ProCurve switch xl 1-P 10-GbE X2 Module,J9019A ProCurve Switch 2510-24,J9019B ProCurve Switch 2510-24,J9020A ProCurve Switch 2510-48,J9021A ProCurve Switch 2810-24 G,J9022A ProCurve Switch 2810-48 G,J9028A ProCurve Switch 1800-24G,J9029A ProCurve Switch 1800-8G,J9030A ProCurve Switch 4208vl-72GS,J9033A ProCurve Switch vl 20-P Gig-T+4 SFP Mod,J9049A ProCurve Switch 2900- 24G,J9050A ProCurve Switch 2900 48G,J9064A ProCurve Switch 4204vl-48GS,J9077A ProCurve Switch 1400-8G,J9078A ProCurve Switch 1400-24 G,J9079A ProCurve Switch 1700-8,J9080A ProCurve Switch 1700-24,J9085A ProCurve Switch 2610-24,J9086A ProCurve Switch 2610-24/12PWR,J9087A ProCurve Switch 2610-24-PWR,J9088A ProCurve Switch 2610-48,J9089A ProCurve Switch 2610-48-PWR,J9279A ProCurve Switch 2510G-24,J9280A ProCurve Switch 2510G-48

Issue Description:

How can I repeat a command when sampling statistics, such as CPU utilization, port stats, or the MAC address table?

Solution:

Use the 'repeat' command.

Example 1:

no page

show mac

repeat count 5 delay 2

page

(This will show the MAC address table 5 times in a row, with each repetition 2 seconds apart.)

Example 2:

show int {port number} or show int e {port number}

repeat count 5 delay 10

(This will show the port stats five times in a row, with 10 seconds between each repetition.)

Example 3:

show cpu

repeat count 5 delay 15

(This will show the CPU utilization of the switch 5 times in a row, with 15 seconds between each repetition.)

Modified Date:

2009-08-24

Provide feedback

Please rate the information on this page to help us improve our content. Thank you!