[Netpass-users] RE: Cisco.pm errors?
Brought to you by:
jeffmurphy
|
From: Harding, T. <td...@sa...> - 2005-08-02 22:04:44
|
When I access the netpass server via a browser on the server itself I get
the login screen. I seem to be able to log in fine.
However, when I access the netpass server via a remote browser I get the
following error message:
error: Can't locate object method "log" via package "SNMP::Device::Cisco"
at /opt/netpass/lib/SNMP/Device.pm line 73.
context: ...
69:
70: if($self->plugin) {
71: $class = $self->plugin;
72: bless $self, ref($class) || $class;
73: $self->log("SNMP::Device has changed to a " . ref($self) . "
object...");
74: }
75:
76: # call optional init function in the plugin
77: $self->init();
...
code stack: /opt/netpass/lib/SNMP/Device.pm:73
/opt/netpass/lib/NetPass.pm:534
/opt/netpass/lib/NetPass.pm:613
/opt/netpass/lib/NetPass.pm:503
/opt/netpass/lib/NetPass.pm:904
/opt/netpass/www/components/Client/Validate:30
/opt/netpass/www/htdocs/index.mhtml:28
/opt/netpass/www/htdocs/autohandler:33
Any ideas? Misconfigured switch? misconfigured server? Can anyone
help me figure out where I screwed up this time? :-(
Thanks,
Troy
> -----Original Message-----
> From: Harding, Troy
> Sent: Friday, July 29, 2005 5:27 PM
> To: 'net...@li...'
> Subject: Cisco.pm errors?
>
> I'm back at it with NetPass. I'm setting up a test environment using a
> single Cisco 2950 switch and a single netpass server. I think I'm making
> some progress, but have some questions.
>
> When accessing the netpass server via a browser on a remote machine I got
> the following error:
> error: no DB object specified at
> /opt/netpass/lib/SNMP/Device/Cisco.pm line 282
>
> line 282 read:
> my $cfg = new NetPass::Config('/opt/netpass/etc/netpass.conf');
> I changed it to:
> my $cfg = new NetPass::Config(-db=>NetPass::DB);
>
> Does that sound right?
>
> After doing this I get another error. I'm not sure if I this is related
> to the change or if there are other issues. Here's the error from the
> client's browser:
>
> Can't locate object method "log" via package "SNMP::Device::Cisco" at
> /opt/netpass/lib/SNMP/Device.pm line 73.
> I'll attach the full error report.
> By the way, is there something I need to do with Cisco.pm or the
> configuration file to make it work with the 2950 model?
>
> Thanks,
> Troy
>
> << File: error2.htm >>
|