"copy running-config startup-config" simultaneously

Discussion in 'Cisco' started by vstots@gmail.com, Mar 8, 2005.

  1. Guest

    Hei all.

    I'm trying to write a script that would change Cisco user passwords.
    After issuing the "username $user_name password $new_password" command,
    I'm copying the running-config over the startup-config, so the change
    would be written to the nvram.

    The problem is, that this script might be executed a number of times
    simultaneously, for different users.

    Should this be a problem?
    What might the consequences of executing "copy running-config
    startup-config" a number of times simultaneously be?

    Any help or directions on where to look would be greatly appreciated.

    Thanks.
     
    , Mar 8, 2005
    #1
    1. Advertising

  2. Guest

    Hei you..
    Try AAA
    http://www.cisco.com/en/US/products...figuration_guide_chapter09186a00800ca7a7.html

    wrote:
    > Hei all.
    >
    > I'm trying to write a script that would change Cisco user passwords.
    > After issuing the "username $user_name password $new_password"

    command,
    > I'm copying the running-config over the startup-config, so the change
    > would be written to the nvram.
    >
    > The problem is, that this script might be executed a number of times
    > simultaneously, for different users.
    >
    > Should this be a problem?
    > What might the consequences of executing "copy running-config
    > startup-config" a number of times simultaneously be?
    >
    > Any help or directions on where to look would be greatly appreciated.
    >
    > Thanks.
     
    , Mar 8, 2005
    #2
    1. Advertising

  3. John Smith Guest

    i've recently written a perl script to do the same thing - well it does a
    'write mem' anyway... one problem i ran into during testing was while i
    was in a router waiting for the script to execute, i kept doing a 'show
    startup' to check the last time it was written to nvram. well, since i
    was accessing it at the same time as the script was (at least at one
    point), nvram became corrupt and could no longer save the config to
    memory. I was getting a specific error each time after that when i issued
    a 'show start' or 'wr mem' but i forget what it said exactly - something
    like "out of memory in nvram" or something along those lines.
    in short, my advice to you, is to test your script on a non-production
    router. it is a documented problem when multiple 'users' are trying to
    access nvram.

    good luck. if you could, will you post back here if you
    experience the same problem.

    On Tue, 08 Mar 2005 06:00:51 -0800, vstots wrote:

    > Hei all.
    >
    > I'm trying to write a script that would change Cisco user passwords.
    > After issuing the "username $user_name password $new_password" command,
    > I'm copying the running-config over the startup-config, so the change
    > would be written to the nvram.
    >
    > The problem is, that this script might be executed a number of times
    > simultaneously, for different users.
    >
    > Should this be a problem?
    > What might the consequences of executing "copy running-config
    > startup-config" a number of times simultaneously be?
    >
    > Any help or directions on where to look would be greatly appreciated.
    >
    > Thanks.
     
    John Smith, Mar 8, 2005
    #3
  4. Guest

    Hi.
    Thank you both for the replies.

    I actually think I already have encountered the same problem.
    I couldn't pin-point the exact cause, but I guessed it had something to
    do with multiple-concurrent access to nvram.
    After a couple of script executions, the router would not boot anymore,
    and display an error message about not being to able to load boot image
    into memory, instead.

    By the way, when you say "it is a documented problem when multiple
    'users' are trying to
    access nvram." - where did you find it documented? I couldn't find it
    anywhere.

    Thanks.
     
    , Mar 9, 2005
    #4
  5. Hansang Bae Guest

    wrote:

    > Hei all.
    >
    > I'm trying to write a script that would change Cisco user passwords.
    > After issuing the "username $user_name password $new_password"
    > command, I'm copying the running-config over the startup-config, so
    > the change would be written to the nvram.
    >
    > The problem is, that this script might be executed a number of times
    > simultaneously, for different users.
    >
    > Should this be a problem?
    > What might the consequences of executing "copy running-config
    > startup-config" a number of times simultaneously be?
    >
    > Any help or directions on where to look would be greatly appreciated.



    You'd get an error message saying that NVRAM is busy.

    --

    hsb


    "Somehow I imagined this experience would be more rewarding" Calvin
    **************************ROT13 MY ADDRESS*************************
    Due to the volume of email that I receive, I may not not be able to
    reply to emails sent to my account. Please post a followup instead.
    ********************************************************************
     
    Hansang Bae, Mar 10, 2005
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric
    Replies:
    7
    Views:
    2,020
    Eric Yun
    Aug 23, 2004
  2. wayne
    Replies:
    0
    Views:
    464
    wayne
    Apr 27, 2005
  3. Boba Fett

    Obtaining MCSE and MCDBA Simultaneously

    Boba Fett, Oct 17, 2003, in forum: Microsoft Certification
    Replies:
    6
    Views:
    556
    Steve
    Oct 28, 2003
  4. Michael
    Replies:
    0
    Views:
    466
    Michael
    Aug 12, 2004
  5. Merv
    Replies:
    1
    Views:
    1,787
Loading...

Share This Page