5 Replies Latest reply: Dec 11, 2017 6:44 AM by Dustin Burke (Riverbed TAC - Senior EE) RSS

CMC Bulk Reconnect? Is there a way to do this.

I have over 60 Riverbeds and sometimes if I will get a bunch of them going to a Disconnect state due to a WAN event.  If I manually open them in CMC and reconnect they come back. However we recently had an issue at the server side and all 60 went into Disconnect state.  Needless to say it gets really boring clicking on them one at a time to reconnect.  Is there a better way to do this in bulk? To have the CMC just try to reconnect to them all?

 

Thank you

Tim Cahoon

Federal-Mogul Corporation

  • Re: CMC Bulk Reconnect? Is there a way to do this.
    djewhurst

    There is no bulk reconnect command.  Not a pretty solution but you could just reboot the CMC and it will reconnect to all hosts when it comes back up.

  • Re: CMC Bulk Reconnect? Is there a way to do this.

    Easy/short answer:

    well, there's kind of a way, actually.  there is a CLI command called "cmc reconnect appliance <serial # here>"

     

    # cmc reconnect appliance ?

    <serial number> 

     

    Longer more technical way of executing this:

    So if you create a list of your serial numbers with shell scripting, excel, or just brute effort, you can then just drop in a massive list of "cmc reconnect" commands.  Like so:

     

    copy and paste all of the cmc appliance steelhead configuration from CMC into a text file, named example in this case:

    cmc appliance steelhead "ABCDEFG" address  comment "example only this isnt a real serial" parent "branches" username "admin" password7 "blah"

    cmc appliance steelhead "HIJKLMNO" address  comment "example only this isnt a real serial" parent "branches" username "admin" password7 "blah"

     

    then from the command line, do this

    cat example | awk -F \" '{print $2}'

    ABCDEFG

    HIJKLMNO

     

    then you have a succinct list of your serial #'s.  you can use excel or a for loop to fill in the requisite command.

    for i in $(cat example | awk -F \" '{print $2}'); do

    > echo "cmc reconnect appliance $i"

    > done

    cmc reconnect appliance ABCDEFG

    cmc reconnect appliance HIJKLMNO

  • Re: CMC Bulk Reconnect? Is there a way to do this.
    Kevin Benjamin

    Another option is to use a spreadsheet like below:

    1) Get a list of all the (Steelhead) serial numbers managed by the CMC.

    a) From the CMC CLI run the commands:

    (config) # sh cmc appliance steelhead ?

    (config) # sh cmc appliance steelhead-ex ?

     

    2) In a spreadsheet, copy these serial numbers to the second column.

     

    3) In the first column of the spreadsheet, copy the command "cmc reconnect appliance" for each serial number line.

    You will now have all the CMC reconnect commands you need.

     

    4) Copy and paste the lines directly at the (config)# prompt of the CMC.

     

    5) In the CMC (Info level) logs, you will see output like below for each Steelhead:

    CMC cli[25449]: [cli.INFO]: user admin: Executing command: cmc reconnect appliance ABCDEFG123456

    CMC cli[25449]: [cli.INFO]: user admin: Command cmc reconnect appliance ABCDEFG123456 authorized

    CMC rbmd[3853]: [rbmd.NOTICE]: Stopping connection to appliance ABCDEFG123456.

    CMC rbmd[3853]: [rbmd.NOTICE]: Appliance ABCDEFG123456 disconnected.

    CMC mgmtd[3421]: [mgmtd.INFO]: Managed SteelheadEx appliance has changed connection status SteelheadEx appliance: ABCDEFG123456 (EX1260 / 10.3.1.7) has changed connection status from: Connected to: Disconnected: reconnect requested Please see Central Management Console for more details.

    CMC rbmd[3853]: [rbmd.NOTICE]: Connecting to appliance ABCDEFG123456.

    CMC rbmd[3853]: [rbmd.INFO]: appliance ABCDEFG123456 connected

    CMC mgmtd[3421]: [mgmtd.INFO]: Managed SteelheadEx appliance has changed connection status SteelheadEx appliance: ABCDEFG123456 (EX1260 / 10.3.1.2) has changed connection status from: Disconnected: reconnect requested to: Connected Please see Central Management Console for more details.

  • Re: CMC Bulk Reconnect? Is there a way to do this.
    Dustin Burke (Riverbed TAC - Senior EE)

    Please issue the command below:

     

    Steelhead (config) # cmc reconnect appliance all

     

    Sorry for the 4 year late response. Better late than never