At 06:34 PM 2/28/02, ashish wrote:
>well, that's not my problem.

It's not ours either. ;-)

But here's some more free advice. Check out SNMP MIB II. The sysServices 
object under the System group tells you the services the device offers:

Here's what RFC 1213 says about the sysServices object:

The value is a sum.  This sum initially takes the
                       value zero, Then, for each layer, L, in the range
                       1 through 7, that this node performs transactions
                       for, 2 raised to (L - 1) is added to the sum.  For
                       example, a node which performs primarily routing
                       functions would have a value of 4 (2^(3-1)).  In
                       contrast, a node which is a host offering
                       application services would have a value of 72
                       (2^(4-1) + 2^(7-1)).  Note that in the context of
                       the Internet suite of protocols, values should be
                       calculated accordingly:

                            layer  functionality
                                1  physical (e.g., repeaters)
                                2  datalink/subnetwork (e.g., bridges)
                                3  internet (e.g., IP gateways)
                                4  end-to-end  (e.g., IP hosts)
                                7  applications (e.g., mail relays)

Priscilla

>I have to find a general way to find whether a remote IP box is a router or
>a switch.
>That IP box can be of any vendor.
>and that remote box can be located across multiple networks.
>
>----- Original Message -----
>From: Larry Letterman
>To:
>Sent: Thursday, February 28, 2002 3:07 PM
>Subject: RE: detect routers and switches [7:36873]
>
>
> > if its cisco gear, do a show cdp neighbor detail and it should show you
> > whats on the other end...
> >
> >
> > Larry Letterman
> > Cisco Systems
> > [EMAIL PROTECTED]
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> > ashish
> > Sent: Thursday, February 28, 2002 2:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: detect routers and switches [7:36873]
> >
> >
> > Hi,
> > this question is bit vauge.But thought you guys will surely be able to
>help
> > me
> > out :-)
> >
> > is there any way to tell programmatically , whether a remote box is a
>router
> > or a switch.
> >
> > Thanks,
> > Ashish
________________________

Priscilla Oppenheimer
http://www.priscilla.com




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=36900&t=36873
--------------------------------------------------
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

Reply via email to