|
Question : HP ProCurve command line: how to print mac addresses
|
|
I am trying to get a ProCurve 2650 command line to let me print all of the port assignments by mac. I ultimatly want to write a script that can go get the mac addresses to each port from all of the switches.
I can telnet (using the xp command line program or linux) into a HP Procurve 2650 and log in. I can use the command line to type in: SHOW MAC and it will give me all MAC's assigned to the different ports but in only does 20 lines at a time. I use: PRINT "SHOW MAC" and it will display all of the mac addresses at one time but it scrolls so far up that I can capture this information. I want to be able to send this information to a txt file somehow.
Thanks, doug
|
Answer : HP ProCurve command line: how to print mac addresses
|
|
One way to do something like this is set up tftp on a box to recieve the MAClog-files. www.solarwinds.net has a free tftp. asuming this box has IP 10.20.30.40 .
Then telnet to sw and isue the command: copy command 'show MAC 1-50' tftp 10.20.30.40 logfile.txt
This wil send the output from the command: show MAC 1-50 to a file named logfile.txt (or whatever) on your tftp-box.
HTH
|
|
|