Junos OS

 View Only
last person joined: 5 days ago 

Ask questions and share experiences about Junos OS.
Expand all | Collapse all

Juniper EX4200 remove vc and revert to default

  • 1.  Juniper EX4200 remove vc and revert to default

    Posted 07-27-2022 09:45
    Hello all,

    First time poster, long time reader.

    I got a bunch of Juniper EX4200 that I'd like to repurpose. I am by no means any expert in these switches, I usually work with Cisco and HP.

    These switches are part of a big virtual chassis, and I haven't been able to find any solution on how to make them not be part of this virtual chassis. All of them seem to call for some master switch before performing anything, and of course I don't know anything about the switches, but none of them seem to be a master.

    I press space when the switch is booting, and using boot -s and type recovery. Normal startup won't let me log in because it keeps calling for the master.
    Then I have run:
    load factory-default
    delete system commit factory-settings
    set root-authentication plain-text-password
    juniper1 as password
    Then commit (it won't commit without a password)

    rebooting has no effect here. I get the same problems when trying to login.

    When i boot up with boot -s and recovery the switch tells me this:
    warning: This chassis is operating in a non-master role as part of a virtual-chassis (VC) system.
    warning: Use of interactive commands should be limited to debugging and VC Port operations.
    warning: Full CLI access is provided by the Virtual Chassis Master (VC-M) chassis.
    warning: The VC-M can be identified through the show virtual-chassis status command executed at this console.
    warning: Please logout and log into the VC-M to use CLI.​

    Of course I don't know the master, nor the passwords.

    I tried with this:
    root# run request virtual-chassis vc-port set interface vcp-0 disable

    But output is:
    error: the chassis-manager subsystem is not running

    So the big question here is, what is the magical command that will revert this chassis into a stand-alone chassis?



    ------------------------------
    Jesper Lammert
    ------------------------------


  • 2.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-27-2022 09:56
    Try 'request system zeroize'.  if that doesn't work you can try doing a format install.

    See post number 7 on this thread:
    EX4200 USB software upgrade | Switching (juniper.net)

    ------------------------------
    PAUL PETERSON
    ------------------------------



  • 3.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-27-2022 10:48
    Hello,

    Thank you very much for your reply. The command request system zeroize did nothing also, the switch keeps booting in this vc mode.
    I have of course kept reading the internet for this issue, and it seems like there are some problems when reverting back into stand-alone mode. I've found people who had success by deleting the /config/vchassis files and folder, however when I do that and reboot, the files just come back and the switch is still in vc mode.
    Using delete virtual-chassis also gives me no results. Each time I boot the switch I can write show virtual-chassis and it tells me the switch is in vc mode.

    Your suggestion to format install is what I came to find as well while searching. It seems like this is the absolute last possible thing to do, and as far as I can read it does a full deletion of the partition and create a new and format it like a brand new drive, and then installs a fresh JUNOS.

    I did find the link you provided also, but I also fell over the official procedure for this, which seems to be extremely easy:
    https://supportportal.juniper.net/s/article/EX-Performing-and-resolving-any-common-issues-during-Format-Install-on-legacy-EX-platforms?language=en_US

    While writing this reply the switch just finished doing install with --format on, and the output of show virtual-chassis is here:
    root> show virtual-chassis

    Virtual Chassis ID: a7ee.e9dc.9446
    Virtual Chassis Mode: Enabled
    Mstr Mixed Route Neighbor List
    Member ID Status Serial No Model prio Role Mode Mode ID Interface
    0 (FPC 0) Prsnt BM0212511494 ex4200-24t 128 Master* N VC

    Member ID for next new member: 1 (FPC 1)

    It still says virtual chassis mode is enabled?

    The error I have is:
    root> show chassis alarms
    1 alarms currently active
    Alarm time Class Description
    2020-10-21 16:28:40 UTC Major Management Ethernet Link Down

    Which is perfectly fine, I am only running console with no other connections.

    Did I succeed? This virtual chassis enabled this is throwing me off, could be a standard thing?

    ------------------------------
    Jesper Lammert
    ------------------------------



  • 4.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-27-2022 10:08
    Hi,

    As i remember u have two ways. First delete vc file in some folder (i'm not remember the path of folder) and second reformat using USB.


    Thanks


  • 5.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-27-2022 10:48
    Hello.

    I just did a detailed reply to Paul about this, but my posts needs moderation first before being seen online.

    As written in the response to Paul the install with --format option has finished, but booting up the switch and using show virtual-chassis it shows as enabled.

    Also, I just started the switch into recovery, where I get this little information:

    Starting CLI ...
    warning: This chassis is operating in a non-master role as part of a virtual-chassis (VC) system.
    warning: Use of interactive commands should be limited to debugging and VC Port operations.
    warning: Full CLI access is provided by the Virtual Chassis Master (VC-M) chassis.
    warning: The VC-M can be identified through the show virtual-chassis status command executed at this console.
    warning: Please logout and log into the VC-M to use CLI.
    {linecard:0}

    So... A full reformat and reinstall of the OS didn't do the trick.
    What kind of witchcraft is this?

    ------------------------------
    Jesper Lammert
    ------------------------------



  • 6.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-27-2022 11:45
    Hi,

    Please look this url. https://networkdirection.net/articles/routingandswitching/juniper-routers-and-switches/convert-virtual-chassis-to-stand-alone/


    Thanks


  • 7.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-27-2022 12:29
    Jespert,

    Virtual chassis is part of the default factory configuration.  You can just ignore it and it is there if you need it.  Totally fine on a standalone switch.  To get rid of your error, add this to the config:

    "set chassis alarm management-ethernet link-down ignore"

    Paul

    ------------------------------
    PAUL PETERSON
    ------------------------------



  • 8.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 02:46
    Thank you for both your replies.

    I already have a tab open with the link provided, and before I did the format I tried this which didn't work.

    The switch is still contacting master even after the format. I am not sure but maybe my image is a vc image? I downloaded what seemed to be the newest file, with file name: jinstall-ex-4200-15.1R7-S8.1-domestic-signed.tgz
    Perhaps I should try an older one?

    Paul, if it is part of the default configuration, how do I get it into full stand-alone mode? My logic says there should be some kind of "toggle" for this.
    Perhaps it is just the default, should be after a full format afterall.

    But I can't use the switch in this state, I need it in stand-alone mode.

    Thank you both for your time on this, I really appreciate it!

    ------------------------------
    Jesper Lammert
    ------------------------------



  • 9.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 02:52
    Hi,

    EX4200 dont have dedicated image for VC. Do u really have follow url that i shared? It have second step?


    Thanls


  • 10.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 03:02
    That is weird then.

    I found this site before posting here and followed both suggestions here. Deleting the vchassis folder just makes it come back after a reboot.

    I also ran the first command:
    root# delete virtual-chassis
    warning: statement not found

    {master:0}[edit]

    Not sure what statement not found really means, but the command isn't working. I am in configure.

    I've tried deleting the vchassis again, and after a reboot the folder and files are there again.

    It defies my logic too, and all documentation on the internet says it should work, and people report back having done this with success, sadly just not for me.

    ------------------------------
    Jesper Lammert
    ------------------------------



  • 11.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 08:20
    Jesper,
    Maybe you could try removing the VC ports?

    "show virtual-chassis vc-ports"
    "request system virtual-chassis vc-port delete pic-slot <> port <>"

    Beyond that, I am at a loss. I run EX series switches in standalone mode in a lot of places and have never run into this issue.

    Paul

    ------------------------------
    PAUL PETERSON
    ------------------------------



  • 12.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 09:20
    Thank you for your reply Paul,

    Whenever I want to delete the vc ports I get an error:

    root> show virtual-chassis vc-port
    fpc0:
    --------------------------------------------------------------------------
    Interface   Type              Trunk  Status       Speed        Neighbor
    or                             ID                 (mbps)       ID  Interface
    PIC / Port
    vcp-0       Dedicated           2    Down         32000
    vcp-1       Dedicated           1    Down         32000
    
    {master:0}​
    root> request system virtual-chassis
                         ^
    syntax error, expecting <command>.
    
    {master:0}
    root> request system ?
    Possible completions:
      certificate          Manage X509 certificates
      commit               Perform commit related operations
      configuration        Request operation on system configuration
      download             Manage downloads
      firmware             Upgrade or downgrade firmware
      halt                 Halt the system
      license              Manage feature licenses
      logout               Forcibly end user's CLI login session
      power-off            Power off the software on RE
      process              Request operation on system process
      reboot               Reboot the system
      scripts              Manage scripts (commit, op, event)
      services             Request service applications information
      snapshot             Archive data and executable areas
      software             Perform system software extension or upgrade
      storage              Request operation on system storage
      zeroize              Erase all data, including configuration and log files
    {master:0}
    root> request system
    

    As far as I can see the command does not exist for me.

    What confuses me is that the switch won't say it's running in stand-alone mode, but as you have been writing too it is the default behavior to run vc with it being it's own master, so I would conclude that the switch is just running it's default.

    I'd like to see that stand-alone mode active, but if the switch works as it should I can't really complain further, so I want to try and proceed with the requested setup I have, and hope it will run as requested.

    Sincerely thank you!



    ------------------------------
    Jesper Lammert
    ------------------------------



  • 13.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 10:29
    Jesper,

    May mistake. The command should be:

    request virtual-chassis vc-port delete ...

    Paul

    ------------------------------
    PAUL PETERSON
    ------------------------------



  • 14.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 03:07
    Hi,

    start shell user root
    cd /config/vchassis
    rm vc*
    exit



  • 15.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 03:22
    root> start shell user root
    root@:RE:0% cd /config/vchassis
    root@:RE:0% rm vc*
    root@:RE:0% exit
    exit
    
    {master:0}​


    After reboot:

    Thu Oct 22 09:30:57 UTC 2020
    
    Amnesiac (ttyu0)
    
    login: root
    
    --- JUNOS 15.1R7-S8.1 built 2020-10-21 15:41:47 UTC
    root@:RE:0% cli
    {master:0}
    root> show virtual-chassis
    
    Virtual Chassis ID: f432.c20f.79e6
    Virtual Chassis Mode: Enabled
                                                    Mstr           Mixed Route Neighbor List
    Member ID  Status   Serial No    Model          prio  Role      Mode  Mode ID  Interface
    0 (FPC 0)  Prsnt    BM0212511494 ex4200-24t     128   Master*      N  VC
    
    Member ID for next new member: 1 (FPC 1)
    
    {master:0}
    ​
    root> file list /config/
    
    /config/:
    .snap/
    db /
    juniper.conf.1.gz
    juniper.conf.2.gz
    juniper.conf.3.gz
    juniper.conf.gz
    juniper.conf.md5*
    usage.db
    vchassis/
    
    {master:0}
    
    root> file list /config/vchassis/
    
    /config/vchassis/:
    vc.db
    vc.param
    vc.tlv.db
    vc.tlv.db.0
    
    {master:0}
    

    All I did here was use the shell to delete exactly how you wrote, then did request system reboot, and typed yes, and then the files are back, and switch is still in vc mode.

    Soon my head will run out of hair from scratching it :(



    ------------------------------
    Jesper Lammert
    ------------------------------



  • 16.  RE: Juniper EX4200 remove vc and revert to default

     
    Posted 07-28-2022 04:11
    kronicklez's instructions are correct. Your output is the default output for a single standalone switch. Even if you do not configure it for virtual chassis operation it will show as a single VC member running as master.


  • 17.  RE: Juniper EX4200 remove vc and revert to default

    Posted 07-28-2022 04:56
    I think this is the answer I was looking for. I've just seen people posting show virtual-chassis outputs saying the switch is in stand-alone mode, so that is what I was going for.

    If that's the default behavior I'd say my problems are resolved.

    Thank you to you people who tried to help, it is much appreciated!

    ------------------------------
    Jesper Lammert
    ------------------------------