maping a network with perl

maping a network with perl

am 19.05.2010 19:19:02 von packet

How can we map a network in perl?

i was just thinking how we can do that.Sorry new to perl.



--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: maping a network with perl

am 19.05.2010 20:27:34 von Brian

On May 19, 2010, at 1:19 PM, packet wrote:

> How can we map a network in perl?
>
> i was just thinking how we can do that.Sorry new to perl.
>

Only way I know how to do it is with the use of Net::SNMP and Net::Ping. Use Net::SNMP to get a list of adjacent networks from routers, and use net::Ping to ping sweep those networks looking for new nodes. Basically repeat that process until the network is mapped.

That's a very very simplified explanation. There are entire books written on SNMP and you have to be pretty familiar with that service to know how to get the info you need.

If you have any specific questions about anything i've said, i'm happy to explain further.

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

RE: maping a network with perl

am 19.05.2010 21:05:33 von Bob McConnell

From: Brian

> On May 19, 2010, at 1:19 PM, packet wrote:
>=20
>> How can we map a network in perl?
>>=20
>> i was just thinking how we can do that.Sorry new to perl.
>>=20
>=20
> Only way I know how to do it is with the use of Net::SNMP and
> Net::Ping. Use Net::SNMP to get a list of adjacent networks
> from routers, and use net::Ping to ping sweep those networks
> looking for new nodes. Basically repeat that process until the
> network is mapped.
>=20
> That's a very very simplified explanation. There are entire
> books written on SNMP and you have to be pretty familiar with
> that service to know how to get the info you need.

I would start by playing with nmap and think about using Perl to reduce
the results
to a usable format.

Bob McConnell

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: maping a network with perl

am 20.05.2010 02:59:36 von Steve Bertrand

On 2010.05.19 15:05, Bob McConnell wrote:
> From: Brian
>
>> On May 19, 2010, at 1:19 PM, packet wrote:
>>
>>> How can we map a network in perl?
>>>
>>> i was just thinking how we can do that.Sorry new to perl.

>> Only way I know how to do it is with the use of Net::SNMP and
>> Net::Ping. Use Net::SNMP to get a list of adjacent networks
>> from routers, and use net::Ping to ping sweep those networks
>> looking for new nodes. Basically repeat that process until the
>> network is mapped.

> I would start by playing with nmap and think about using Perl to reduce
> the results
> to a usable format.

....amen.

Beyond that, why not use what already exists? What type/size/structure
of network do you have?

I guess the more important question, is who's network do you want to
map? If you are just learning, I'd recommend doing so in a very confined
space...

If you are serious network person, there are a lot of good scripts
written in Perl for Cacti that you can examine and use as potential
roadmaps:

http://www.cacti.net/additional_scripts.php

Steve

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: maping a network with perl

am 20.05.2010 03:07:27 von Steve Bertrand

On 2010.05.19 20:59, Steve Bertrand wrote:
> On 2010.05.19 15:05, Bob McConnell wrote:
>> From: Brian
>>
>>> On May 19, 2010, at 1:19 PM, packet wrote:
>>>
>>>> How can we map a network in perl?
>>>>
>>>> i was just thinking how we can do that.Sorry new to perl.
>
>>> Only way I know how to do it is with the use of Net::SNMP and
>>> Net::Ping. Use Net::SNMP to get a list of adjacent networks
>>> from routers, and use net::Ping to ping sweep those networks
>>> looking for new nodes. Basically repeat that process until the
>>> network is mapped.
>
>> I would start by playing with nmap and think about using Perl to reduce
>> the results
>> to a usable format.
>
> ...amen.
>
> Beyond that, why not use what already exists? What type/size/structure
> of network do you have?
>
> I guess the more important question, is who's network do you want to
> map? If you are just learning, I'd recommend doing so in a very confined
> space...
>
> If you are serious network person, there are a lot of good scripts
> written in Perl for Cacti that you can examine and use as potential
> roadmaps:

s/good//

> http://www.cacti.net/additional_scripts.php

Also (forgive wrap):

http://www.google.ca/#hl=en&source=hp&q=network+mapping+perl &aq=f&aqi=&aql=&oq=&gs_rfai=&fp=f38a17d08d866c0

Steve

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: maping a network with perl

am 20.05.2010 05:00:29 von packet

Brian wrote:
> On May 19, 2010, at 1:19 PM, packet wrote:
>
>
>> How can we map a network in perl?
>>
>> i was just thinking how we can do that.Sorry new to perl.
>>
>>
>
> Only way I know how to do it is with the use of Net::SNMP and Net::Ping. Use Net::SNMP to get a list of adjacent networks from routers, and use net::Ping to ping sweep those networks looking for new nodes. Basically repeat that process until the network is mapped.
>
> That's a very very simplified explanation. There are entire books written on SNMP and you have to be pretty familiar with that service to know how to get the info you need.
>
> If you have any specific questions about anything i've said, i'm happy to explain further.
>
>
Well what are good book on Net::SNMP?


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/