Advertisement

08.29.2006 at 10:37AM PDT, ID: 21971344
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Cisco backup script using Cisco::CopyConfig

Tags: cisco, backup, perl, script, config
Well here is my code....

use Cisco::CopyConfig;
$config     = Cisco::CopyConfig->new(Host => 'switchhostname', Comm => 'snmpRWstring');
print $config->error();
$config->copy('xxx.xxx.xxx.xxx', 'test');
print $config->error();

I edited out the hostname, snmp string, and ip address of tftp server.  When I run this I get the error:

Can't call method "set_request" on an undefined value at C:/Perl/site/lib/Cisco/CopyConfig.pm line 156.

Line 150 - 160 of CopyConfig.pm are:

150 my($self)      = shift;
151  my(@oids)      = @_;                              ## - OIDs to use
152  my($snmp)      = $self->{'snmp'};                  ## - Net::SNMP subclass
153  my($answer)      = '';                              ## - SNMP answer
154  my($status)      = 0;                              ## - SNMP xfer status
155
156  $snmp->set_request(@oids);                        ## - Start xfer
157  if ($snmp->error()) {
158    $self->{'err'} = $snmp->error();
159    return 0;
160  }

My guess is that the @OIDS variable is not being set but I am not sure what to set it too nor why it is just not working on its own...The code seems simple enough I think the problem might be with the module itself...but not sure how to troubleshoot that.  Hope someone has some experience with the Cisco::CopyConfig module..

Dis
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: dis1931
Solution Provided By: mjcoyne
Participating Experts: 2
Solution Grade: A
Views: 98
Translate:
Loading Advertisement...
08.30.2006 at 01:37PM PDT, ID: 17423902

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.30.2006 at 01:51PM PDT, ID: 17424000

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.30.2006 at 06:50PM PDT, ID: 17425636

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.07.2006 at 07:27PM PDT, ID: 17476531

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.07.2006 at 07:30PM PDT, ID: 17476554

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.07.2006 at 08:56PM PDT, ID: 17476900

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
09.26.2006 at 04:24PM PDT, ID: 17606405

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29