Re: [nsp] OID of sub-interface/Vlan?

From: Alex Rubenstein (alex@nac.net)
Date: Sun Jan 06 2002 - 14:00:27 EST


Oh. I thought you meant a regular router:

core1.nyc#sho vlans

Virtual LAN ID: 3 (Inter Switch Link Encapsulation)

   vLAN Trunk Interface: GigabitEthernet0/0/0.3

   Protocols Configured: Address: Received: Transmitted:
           IP 198.32.160.20 1206675301 448468

...

As for 12.2, you are in luck.

interfaces.ifTable.ifEntry.ifIndex.40 = 40
interfaces.ifTable.ifEntry.ifDescr.40 = FastEthernet0/0.633
interfaces.ifTable.ifEntry.ifType.40 = propVirtual(53)
interfaces.ifTable.ifEntry.ifMtu.40 = 1500
interfaces.ifTable.ifEntry.ifSpeed.40 = Gauge: 100000000
interfaces.ifTable.ifEntry.ifPhysAddress.40 = 0:2:7e:80:bc:0
interfaces.ifTable.ifEntry.ifAdminStatus.40 = up(1)
interfaces.ifTable.ifEntry.ifOperStatus.40 = up(1)
interfaces.ifTable.ifEntry.ifLastChange.40 = Timeticks: (0) 0:00:00.00
interfaces.ifTable.ifEntry.ifInOctets.40 = 764300297
interfaces.ifTable.ifEntry.ifInUcastPkts.40 = 0
interfaces.ifTable.ifEntry.ifInDiscards.40 = 0
interfaces.ifTable.ifEntry.ifInErrors.40 = 0
interfaces.ifTable.ifEntry.ifInUnknownProtos.40 = 0
interfaces.ifTable.ifEntry.ifOutOctets.40 = 689045445

Because you seem like an interesting and nice guy, I have put a read-only
community on a router (cust3.oct.nac.net) that has 12.2.6 on it. SNMP
away. The community for you to use is beefcake.

interfaces.ifTable.ifEntry.ifDescr.39 = FastEthernet0/0.15
interfaces.ifTable.ifEntry.ifDescr.40 = FastEthernet0/0.633
interfaces.ifTable.ifEntry.ifDescr.41 = FastEthernet0/0.641

are the interfaces that should interest you. We use ISL. this is a 7206.

On Sun, 6 Jan 2002, Gert Doering wrote:

> Hi,
>
> On Sun, Jan 06, 2002 at 12:14:37PM -0500, Alex Rubenstein wrote:
> > I don't know the OIDs offhand, but you can view the equiv of a show vlan
> > via SNMP.
>
> Hmmm, I admit that I have no idea what a "show vlan" does. On all my
> machines, with subinterfaces or on Cat 5 RSMs that have a lot of
> "interface vlan ..." interfaces, show vlan just shows:
>
> Cisco-M-XI>sh vlan
>
> No Virtual LANs configured.
>
> but:
>
> Cisco-M-XI>sh ip int brief
> Interface IP-Address OK? Method Status
> Protocol
> Vlan0 127.0.0.10 YES manual up up
> Vlan1 195.30.0.116 YES NVRAM up up
> Vlan2 195.30.1.118 YES NVRAM up up
> Vlan3 10.17.254.254 YES NVRAM up up
>
> This is on a RSM, which has proper "show interface" statistics - only the
> ISL/802.1q subinterfaces on other platforms didn't have that, until recently.
> I have been told that 12.2T *does* have subinterface counters, which would
> be a Great Thing. I can't verify it right now, though.
>
> gert
> --
> USENET is *not* the non-clickable part of WWW!
> //www.muc.de/~gert/
> Gert Doering - Munich, Germany gert@greenie.muc.de
> fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de
>

-- Alex Rubenstein, AR97, K2AHR, alex@nac.net, latency, Al Reuben --
-- Net Access Corporation, 800-NET-ME-36, http://www.nac.net --



This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:13:28 EDT