On 5/23/07, <b class="gmail_sendername">Anurag Bist</b> <<a href="mailto:anuragsb@hotmail.com">anuragsb@hotmail.com</a>> wrote:<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<br>
1. I would like the cfg file, which is generated through the cfgmaker utility to give information on switch ports. Like it should tell whether a port on a particular switch is Gig1/1, Fa2/3 or Fa5/4 etc.</div></blockquote>
<div><br>I'm going to make an assumption that you're running a Cisco Catalyst switch with somewhat current IOS. If that's the case try passing "--ifdesc=catname" at the cfgmaker command line. There is *alot* of other good stuff at
<a href="http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html">http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html</a> <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
2. I would like to have the feature that enables me to move my cursor over the traffic graph and shows a vertical bar that tells you how much data traveled through a device at a particular time.</div></blockquote><div><br>
The graph is nothing more than a PNG or GIF image file. If you would like that functionality you'll need to look at something else to do that than MRTG out of the box. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
3. I downloaded a perl script called 'Cammer.pl' that scans the ports of switch or a router and gives you the information about the port mac address and the machine which is connected to that particular port. I tried running it, but I am always landing up with this error:
<br>
<br>
$> perl cammer.pl <snmp_community>@<a href="http://router.id" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">router.id</a> <br>
<br>
Can't locate SNMP_Session.pm in @INC (@INC contains: //../lib/mrtg2 / /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at
cammer.pl line 44.<br>BEGIN failed--compilation aborted at cammer.pl line 44<br>
<br>
$> locate SNMP_Session.pm<br>
<br>
/usr/bin/SNMP_Session.pm<br>/usr/lib/mrtg2/SNMP_Session.pm<br>/usr/local/src/mrtg/lib/mrtg2/SNMP_Session.pm<br>/usr/local/mrtg-2/lib/mrtg2/SNMP_Session.pm<br>
<br>
How can I overcome this problem?</div></blockquote><div><br>SNMP::Session isn't in perl's path. You can either update the script to include the full path or reinstall SNMP::Session.<br></div><br>Paul<br></div>