From: John K. <kok...@ge...> - 2003-11-17 15:45:15
|
All I have looked into this problem with the cat 1900's and it appears that they are not defined as an object class that includes vlan... I can manually read the cat 1900's with bridge mib the mac addresses tables... I thinking it is adding an object class definition in Info.pm but I am not sure... Thanks Again John Kokidko 202 687 1043 kok...@ge... SNMP::Info::AUTOLOAD(v_name) Attribute not found in this device class. at /usr/local/netdisco/netdisco line 1251 Saw : 278 forwarding table entries. Took 12 seconds. # For certain Cisco switches you have to connect to each 1249 # VLAN and get the forwarding table out of it. 1250 # Notably the Catalyst 5k, 6k, and 3500 series 1251 my $v_name = $device->v_name() || {}; 1252 my $ver = $device->snmp_ver(); 1253 my $comm = $device->snmp_comm(); 1254 my $obj = $device->class(); 1255 1256 # For each VLAN, connect and then macsuck 1257 foreach my $vid (sort { my $aa=$a; my $bb=$b; $aa=~ s/^\d+\.//;$bb=~ s/^\d+\.//; 1258 # Sort by VLAN id 1259 $aa <=> $bb 1260 } 1261 keys %$v_name) 1262 { 1263 1264 my $vlan_name = $v_name->{$vid} || '(Unnamed)'; 1265 # VLAN id comes as 1.142 instead of 142 1266 my $vlan = $vid; 1267 $vlan =~ s/^\d+\.//; net...@li... wrote: >Send netdisco-users mailing list submissions to > net...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/netdisco-users >or, via email, send a message with subject or body 'help' to > net...@li... > >You can reach the person managing the list at > net...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of netdisco-users digest..." > > > >------------------------------------------------------------------------ > >Today's Topics: > > 1. Re: Cat 2900's works fine Cat 3500 problem with Port # (Dana Watanabe) > 2. Web Front End Problems (Catterton, Wayne S) > 3. Cat 1900 not working correctly when trunked (John Kokidko) > 4. Re: Cat 2900's works fine Cat 3500 problem with Port # (=?ISO-8859-1?Q?D=E1na_Watanabe?=) > > > > ------------------------------------------------------------------------ > > Subject: > Re: [Netdisco] Cat 2900's works fine Cat 3500 problem with Port # > From: > Dana Watanabe <dwa...@uc...> > Date: > Wed, 12 Nov 2003 05:31:19 -0800 (PST) > To: > John Kokidko <kok...@ge...> > > >What version of SNMP::Info and Netdisco are you using? > >On Mon, 10 Nov 2003, John Kokidko wrote: > > > >>All >> >>My install is working fine...I can look up a user and find them easily >>and see what port they are assigned to with Cisco Cat2900's >> >>I can find user who are attached to 3500's but Netdisco will not Display >>what port they are assigned to on the switch. >> >>Any Help would be Greatly Appreciated... >> >>Thanks John Kokidko >> >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by: ApacheCon 2003, >>16-19 November in Las Vegas. Learn firsthand the latest >>developments in Apache, PHP, Perl, XML, Java, MySQL, >>WebDAV, and more! http://www.apachecon.com/ >>_______________________________________________ >>Netdisco mailing list >>net...@li... >>https://lists.sourceforge.net/lists/listinfo/netdisco-users >> >> >> > > > > > > ------------------------------------------------------------------------ > > Subject: > [Netdisco] Web Front End Problems > From: > "Catterton, Wayne S" <wsc...@xo...> > Date: > Wed, 12 Nov 2003 15:49:58 -0500 > To: > <net...@li...> > > > Hi, > > > > I've Installed Netdisco on a Redhat 9 machine, I've done all the steps > listed in the Install, and I believe the backend is working ok, > however the web frontend is ugly, I can see the perl code listed on > it, which leads me to believe that something may not be right with > mod_perl, but I've double-checked and everything looks ok there. I'm > wondering if maybe there is a configuration issue somewhere. Anyways > listed below is a cut & paste of what the web front end looks like: > > > > Any help would be most appreciated > > > > Thanks, > > > > > Enter Login Information > > % if ($err) { > > <%$err%>%} > > User Name > > Password > > > Note > > * Sessions Last for <%$session_time%>minutes. > * Administrator: If you are having login problems (Appears to > accept password but still sends you back to the login page) see > the comments in netdisco_apache.conf. > > <%args> $user => undef $cmd => undef $pw => undef $done => undef <%init> my $err = ''; my $secure = &is_secure; my $session_time = > $netdisco::CONFIG{websession} || 60; # Force us to login via HTTPS if > configured if (!$secure){ my $page = $r->uri; my $args = $r->args; my $url = url_secure($page); > HTML::Mason::Escapes::url_escape(\$args) if $args; $url .= "?$args" if > ($args); $m->redirect($url); } if ($cmd eq 'login'){ $user = lc($user); my $db_user > = sql_hash('users',['*'],{'username' => $user}); unless (defined $db_user->{username}){ $err .= "User Not Found. > \n"; } my $md5_pw = Digest::MD5::md5_hex($pw); unless ($err or $md5_pw > eq $db_user->{password}){ $err .= "Bad Login. > \n"; } if ($err) { $m->session->{_logged_in} = 0; delete $m->session->{user}; delete $m->session->{user_port_ctl}; delete $m->session->{user_admin}; delete $m->session->{start}; } else { $m->session->{_logged_in} = 1; $m->session->{user} = $db_user->{username}; $m->session->{user_port_ctl} = $db_user->{port_control}; $m->session->{user_admin} = $db_user->{admin}; $m->session->{start} = time; $r->connection->user($db_user->{username}); # Update record insert_or_update('users',{'username' => $m->session->{user}}, {'last_on' => scalar(localtime)} ); # Redirect if (defined $done and length($done)) > { $m->redirect("$done"); } else { $m->redirect('.'); } } } <%method title> - Login \ %# $Id: login.html,v 1.8 2003/05/30 16:27:04 maxbaker Exp $ > %# vim:syntax=mason > > > > > > Wayne Catterton CCNA > > Network Engineer > > XO Communications > > Portland, OR > > Office: 503-972-6542 Pager: 877-676-8864 > > > |