Commit cab775f0 authored by Mac Newbold's avatar Mac Newbold
Browse files

Added two other suggestions for getting if-> cisco port translations.

parent d5ae35a0
...@@ -14,6 +14,70 @@ Some notes on how to diagnose problems on the Cisco. ...@@ -14,6 +14,70 @@ Some notes on how to diagnose problems on the Cisco.
control net cisco (``tip control''). card2/port2 give you the info you control net cisco (``tip control''). card2/port2 give you the info you
need for the cisco-style card/port name (e.g., 3/39). need for the cisco-style card/port name (e.g., 3/39).
[Note:
There are also a couple of other easier ways to do this:
Rob has created a command called if2port:
108 paper:~> if2port
Usage: /usr/testbed/sbin/if2port <node | node:if | node if>
109 paper:~> if2port tbpc06
+--------+-----+--------+-----+-----+
|node_id1|card1|node_id2|card2|port2|
+--------+-----+--------+-----+-----+
|tbpc06 | 0|cisco | 3| 42|
|tbpc06 | 1|cisco | 3| 44|
|tbpc06 | 2|cisco | 3| 46|
|tbpc06 | 3|cisco | 3| 48|
|tbpc06 | 4|cisco2 | 3| 11|
+--------+-----+--------+-----+-----+
5 rows processed
Another useful way is with 'snmpit -l -debug'. This will give all the
tbpcXX:Y <==> ciscoport translations for any port currently in use,
as well as listing the VLANs currently set up:
111 paper:~> snmpit -l -debug
DEBUG MODE ON: Set to level 1
Command line was: snmpit -l -debug
Use of uninitialized value at /usr/testbed/bin/snmpit line 1281.
READING TRANSLATIONS
Opening SNMP session to 155.101.128.175...Succeeded
Getting VLAN info...
Got default vtpVlanName 1.1 (1) default
Got tact-reserve2-l0-0 vtpVlanName 1.2 (2) tact-reserve2-l0-0
Got brandeis-BuddyCache-l0-0 vtpVlanName 1.3 (3) brandeis-BuddyCache-l0-0
Got tact-reserve2-l0-1 vtpVlanName 1.4 (4) tact-reserve2-l0-1
...
Got 3 vlanPortVlan 6.34 3 ('6.34' == tbpc23:0)
Got 19 vlanPortVlan 6.41 19 ('6.41' == tbpc21:0)
Got 19 vlanPortVlan 6.42 19 ('6.42' == tbpc24:0)
Got 19 vlanPortVlan 7.25 19 ('7.25' == tbpc25:0)
Got 19 vlanPortVlan 7.34 19 ('7.34' == tbpc29:0)
Got 3 vlanPortVlan 7.41 3 ('7.41' == tbpc27:0)
Got 19 vlanPortVlan 7.42 19 ('7.42' == tbpc30:0)
Got 19 vlanPortVlan 8.33 19 ('8.33' == tbpc32:0)
Got 5 vlanPortVlan 8.42 5 ('8.42' == tbpc36:0)
Got 8 vlanPortVlan 9.33 8 ('9.33' == tbpc38:0)
ID Name Members of VLAN
--------------------------------------------------
1 default
2 tact-reserve2-l0-0 tbpc04:0 tbpc10:0
3 brandeis-BuddyCache-l0-0 tbpc20:0 tbpc22:1 tbpc23:0 tbpc27:0
4 tact-reserve2-l0-1 tbpc04:1 tbpc13:0
5 agile-test001-l0 tbpc36:0
6 janos-moab-l0 tbpc02:0 tbpc03:1
7 janos-moab-l1 tbpc01:0 tbpc03:0
8 agile-afreenet-l0 tbpc06:0 tbpc38:0
12 magi-test1-l0 tbpc07:0 tbpc11:0
18 _mylan tbpc15:0 tbpc16:0 tbpc18:0 tbpc19:0
19 __mylan tbpc21:0 tbpc24:0 tbpc25:0 tbpc29:0 tbpc30:0 tbpc32:0
The interesting translations are just above the vlan table, in the
far right hand columns. For example, the last line before the table
indicates that in vlan 8 is port 9.33, which belongs to tbpc38:0.
]
Armed with this info, tip to the correct cisco, login and enable. Armed with this info, tip to the correct cisco, login and enable.
Then you can do: Then you can do:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment