Switching

 View Only
last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Shutdown EX9204

     
    Posted 03-13-2018 14:38

    Does anyone know the correct syntax to shut down an EX9204 running JUNOS 17? Documented commands do not work:

     

    request system power-off: doesn't exist  (are you ^#%&* kidding me?)

    request system halt: doesn't exist

    request system reboot power-off fpc: reboots the system

     

    That I have to ask this on the forum is either embarassing for me or for Juniper, I'm not sure which.

     

    --Paul

     



  • 2.  RE: Shutdown EX9204

     
    Posted 03-13-2018 19:09

     

    Maybe that "request" commands is blocked for your user access?

    Are you logged in as root user?I checked in JUNOS 17.4 and works fine.

     

     


    root@jtac-ex9204-re0> show version                                                                                                                               
    Hostname: jtac-ex9204-r2002-re0                                                                                                                                        
    Model: ex9204                                                                                                                                                          
    Junos: 17.4R1.16                                                                                                                                                       
    JUNOS OS Kernel 64-bit  [20171206.f4cad52_builder_stable_11]                                                                                                           
    JUNOS OS libs [20171206.f4cad52_builder_stable_11]                                                                                                                     
    JUNOS OS runtime [20171206.f4cad52_builder_stable_11]                                                                                                                  
    JUNOS OS time zone information [20171206.f4cad52_builder_stable_11]                                                                                                    
    JUNOS OS libs compat32 [20171206.f4cad52_builder_stable_11]                                                                                                            
    JUNOS OS 32-bit compatibility [20171206.f4cad52_builder_stable_11]                                                                                                     
    JUNOS py extensions [20171219.172921_builder_junos_174_r1]                                                                                                             
    JUNOS py base [20171219.172921_builder_junos_174_r1]                                                                                                                   
    JUNOS OS crypto [20171206.f4cad52_builder_stable_11]                                                                                                                   
    JUNOS network stack and utilities [20171219.172921_builder_junos_174_r1]                                                                                               
    JUNOS libs [20171219.172921_builder_junos_174_r1]                                                                                                                      
    JUNOS libs compat32 [20171219.172921_builder_junos_174_r1]                                                                                                             
    JUNOS runtime [20171219.172921_builder_junos_174_r1]                                                                                                                   

    root@jtac-ex9204-re0> request system power-off both-routing-engines                                                                                              
    warning: Other routing-engine not present                                                                                                                              
    Power Off the system ? [yes,no] (no) yes                                                                                                                               
                                                                                                                                                                           
    Stopping cron.
    Waiting for PIDS: 20995.
    .
    Mar 14 07:36:19 jlaunchd: broker-re (PID 21249) terminate signal 15 sent
    Mar 14 07:36:19 jlaunchd: rpcbind-service (PID 21342) terminate signal 15 sent
    Mar 14 07:36:19 jlaunchd: overlay-ping-traceroute (PID 21646) terminate signal 15 sent
    Mar 14 07:36:23 jlaunchd: iccp-service (PID 21635) exited with status=0 Normal Exit
    Waiting (max 60 seconds) for system process `vnlru' to stop... done
    Waiting (max 60 seconds) for system process `bufdaemon' to stop... done
    Waiting (max 60 seconds) for system process `syncer' to stop...
    Syncing disks, vnodes remaining... 0 0 0 0 0 done
    All buffers synced.
    Uptime: 18d9h51m34s
    Khelp module "jsocket" can't unload until its refcount drops from 12 to 0.
    acpi0: Powering system off

     

          
                                                                                                                                                                                     



  • 3.  RE: Shutdown EX9204

     
    Posted 03-13-2018 19:58
    Thanks, that could be it — I’ll check tomorrow and report back.


  • 4.  RE: Shutdown EX9204

     
    Posted 03-14-2018 10:31

    On 17.1 this does not appear to be an available option even as root.

     

    {master}
    root@ex9204-core2-re0> request system ?
    Possible completions:
      certificate          Manage X509 certificates
      commit               Perform commit related operations
      configuration        Request operation on system configuration
      decrypt              Decrypt a $8$ or $9$-encrypted password
      license              Manage feature licenses
      logout               Forcibly end user's CLI login session
      personality-file     Execute commands related to personality of a device
      process              Request operation on system process
      reboot               Reboot the system
      recover              Recover a specified volume
      scripts              Manage scripts (commit, op, event)
      snapshot             Create a normal Junos or a recovery snapshot
      software             Perform system software extension or upgrade
      storage              Request operation on system storage
      yang                 Perform YANG schema operations
      zeroize              Erase all data, including configuration and log files
    {master}
    
    root@ex9204-core2-re0> show version 
    Hostname: ex9204-core2-re0
    Model: ex9204
    Junos: 17.1R2.7
    JUNOS OS Kernel 64-bit  [20170607.351421_builder_stable_10]
    JUNOS OS libs [20170607.351421_builder_stable_10]
    JUNOS OS runtime [20170607.351421_builder_stable_10]
    JUNOS OS time zone information [20170607.351421_builder_stable_10]
    JUNOS network stack and utilities [20170617.054345_builder_junos_171_r2]
    JUNOS modules [20170617.054345_builder_junos_171_r2]
    JUNOS mx modules [20170617.054345_builder_junos_171_r2]
    JUNOS libs [20170617.054345_builder_junos_171_r2]
    JUNOS OS libs compat32 [20170607.351421_builder_stable_10]
    JUNOS OS 32-bit compatibility [20170607.351421_builder_stable_10]
    JUNOS libs compat32 [20170617.054345_builder_junos_171_r2]
    JUNOS runtime [20170617.054345_builder_junos_171_r2]
    Junos vmguest package [20170617.054345_builder_junos_171_r2]
    JUNOS py extensions [20170617.054345_builder_junos_171_r2]
    JUNOS py base [20170617.054345_builder_junos_171_r2]
    JUNOS OS vmguest [20170607.351421_builder_stable_10]
    JUNOS OS crypto [20170607.351421_builder_stable_10]
    JUNOS Web Management Platform Package [20170617.054345_builder_junos_171_r2]
    JUNOS mx libs compat32 [20170617.054345_builder_junos_171_r2]
    JUNOS mx runtime [20170617.054345_builder_junos_171_r2]
    JUNOS common platform support [20170617.054345_builder_junos_171_r2]
    JUNOS mx libs [20170617.054345_builder_junos_171_r2]
    JUNOS mtx Data Plane Crypto Support [20170617.054345_builder_junos_171_r2]
    JUNOS daemons [20170617.054345_builder_junos_171_r2]
    JUNOS mx daemons [20170617.054345_builder_junos_171_r2]
    JUNOS Voice Services Container package [20170617.054345_builder_junos_171_r2]
    JUNOS Services TLB Service PIC package [20170617.054345_builder_junos_171_r2]
    JUNOS Services SSL [20170617.054345_builder_junos_171_r2]
    JUNOS Services Stateful Firewall [20170617.054345_builder_junos_171_r2]
    JUNOS Services RPM [20170617.054345_builder_junos_171_r2]
    JUNOS Services PTSP Container package [20170617.054345_builder_junos_171_r2]
    JUNOS Services PCEF package [20170617.054345_builder_junos_171_r2]
    JUNOS Services NAT [20170617.054345_builder_junos_171_r2]
    JUNOS Services Mobile Subscriber Service Container package [20170617.054345_builder_junos_171_r2]
    JUNOS Services MobileNext Software package [20170617.054345_builder_junos_171_r2]
    JUNOS Services Logging Report Framework package [20170617.054345_builder_junos_171_r2]
    JUNOS Services LL-PDF Container package [20170617.054345_builder_junos_171_r2]
    JUNOS Services Jflow Container package [20170617.054345_builder_junos_171_r2]
    JUNOS Services Deep Packet Inspection package [20170617.054345_builder_junos_171_r2]
    JUNOS Services IPSec [20170617.054345_builder_junos_171_r2]
    JUNOS Services IDS [20170617.054345_builder_junos_171_r2]
    JUNOS IDP Services [20170617.054345_builder_junos_171_r2]
    JUNOS Services HTTP Content Management package [20170617.054345_builder_junos_171_r2]
    JUNOS Services Crypto [20170617.054345_builder_junos_171_r2]
    JUNOS Services Captive Portal and Content Delivery Container package [20170617.054345_builder_junos_171_r2]
    JUNOS Services COS [20170617.054345_builder_junos_171_r2]
    JUNOS Border Gateway Function package [20170617.054345_builder_junos_171_r2]
    JUNOS AppId Services [20170617.054345_builder_junos_171_r2]
    JUNOS Services Application Level Gateways [20170617.054345_builder_junos_171_r2]
    JUNOS Services AACL Container package [20170617.054345_builder_junos_171_r2]
    JUNOS SDN Software Suite [20170617.054345_builder_junos_171_r2]
    JUNOS Extension Toolkit [20170617.054345_builder_junos_171_r2]
    JUNOS jplatform ex92xx [20170617.054345_builder_junos_171_r2]
    JUNOS Packet Forwarding Engine Support (wrlinux) [20170617.054345_builder_junos_171_r2]
    JUNOS Packet Forwarding Engine Support (MX/EX92XX Common) [20170617.054345_builder_junos_171_r2]
    JUNOS Packet Forwarding Engine Support (M/T Common) [20170617.054345_builder_junos_171_r2]
    JUNOS Packet Forwarding Engine Support (MX Common) [20170617.054345_builder_junos_171_r2]
    JUNOS jfirmware [20170617.054345_builder_junos_171_r2]
    JUNOS Online Documentation [20170617.054345_builder_junos_171_r2]
    JUNOS jail runtime [20170607.351421_builder_stable_10]
    


  • 5.  RE: Shutdown EX9204

     
    Posted 03-14-2018 12:51

    I previous was on JunOS 17.4R1 & now I tested on ex9204 running junos 17.1R2.7 same as yours & get option of power-off/halt.  Could you get "show chassis hardware" & "show configuration system" from your box?

     

     

     

    labroot@EX9200-SW1> request system ?
    Mar 14 19:42:09
    Possible completions:
    certificate Manage X509 certificates
    commit Perform commit related operations
    configuration Request operation on system configuration
    decrypt Decrypt a $8$ or $9$-encrypted password
    halt Halt the system
    license Manage feature licenses
    logout Forcibly end user's CLI login session
    personality-file Execute commands related to personality of a device
    power-off Power off the software on RE
    power-on Power on the system
    process Request operation on system process
    reboot Reboot the system
    recover Recover a specified volume
    scripts Manage scripts (commit, op, event)
    snapshot Create a normal Junos or a recovery snapshot
    software Perform system software extension or upgrade
    storage Request operation on system storage
    yang Perform YANG schema operations
    zeroize Erase all data, including configuration and log files

     

     

    labroot@EX9200-SW1> show version
    Mar 14 19:43:32
    Hostname: EX9200-SW1
    Model: ex9204
    Junos: 17.1R2.7
    JUNOS OS Kernel 64-bit [20170607.351421_builder_stable_10]
    JUNOS OS libs [20170607.351421_builder_stable_10]
    JUNOS OS runtime [20170607.351421_builder_stable_10]
    JUNOS OS time zone information [20170607.351421_builder_stable_10]
    JUNOS OS libs compat32 [20170607.351421_builder_stable_10]
    JUNOS OS 32-bit compatibility [20170607.351421_builder_stable_10]
    JUNOS py extensions [20170617.054345_builder_junos_171_r2]
    JUNOS py base [20170617.054345_builder_junos_171_r2]
    JUNOS OS crypto [20170607.351421_builder_stable_10]
    JUNOS network stack and utilities [20170617.054345_builder_junos_171_r2]
    JUNOS modules [20170617.054345_builder_junos_171_r2]
    JUNOS mx modules [20170617.054345_builder_junos_171_r2]
    JUNOS libs [20170617.054345_builder_junos_171_r2]
    JUNOS libs compat32 [20170617.054345_builder_junos_171_r2]



  • 6.  RE: Shutdown EX9204

     
    Posted 03-14-2018 13:50

    Thanks Karand--

     

    Here is some quickly-sanitized output.

     

    root@ex9204-core1-re0> show chassis hardware 
    Hardware inventory:
    Item             Version  Part number  Serial number     Description
    Chassis                                xxxxxxxxxxxx      EX9204
    Midplane         REV 06   750-062849   xxxxxxxx          EX9204-BP3
    FPM Board        REV 02   760-064012   xxxxxxxx          Front Panel Display
    PEM 0            Rev 01   740-063046   xxxxxxxxxxx       PS 1.4-2.52kW; 90-264V AC in
    PEM 3            Rev 01   740-063046   xxxxxxxxxxx       PS 1.4-2.52kW; 90-264V AC in
    Routing Engine 0 REV 07   750-063458   xxxxxxxx          RE-S-EX9200-2X00x6
    CB 0             REV 09   750-062852   xxxxxxxx          EX9200-SF2
    FPC 2            REV 13   750-064569   xxxxxxxx          EX9200 32x10G SFP
      CPU            REV 03   711-062860   xxxxxxxx          HMPC PMB 2G 
      PIC 0                   BUILTIN      BUILTIN           8X10GE SFPP
        Xcvr 0       REV 01   740-021308   xxxxxxxxx         SFP+-10G-SR
        Xcvr 1       REV 01   740-021308   xxxxxxxxxxx       SFP+-10G-SR
        Xcvr 2       REV 01   740-021308   xxxxxxxxxxx       SFP+-10G-SR
        Xcvr 3       REV 01   740-021308   xxxxxxxxxxx       SFP+-10G-SR
        Xcvr 4       REV 01   740-021308   xxxxxxxxx         SFP+-10G-SR
        Xcvr 5       REV 01   740-021308   xxxxxxx           SFP+-10G-SR
        Xcvr 6       REV 01   740-021308   xxxxxxx           SFP+-10G-SR
        Xcvr 7       REV 01   740-021308   xxxxxxxxx         SFP+-10G-SR
      PIC 1                   BUILTIN      BUILTIN           8X10GE SFPP
        Xcvr 0       REV 01   740-021308   xxxxxxx           SFP+-10G-SR
        Xcvr 6       REV 01   740-021308   xxxxxxxxx         SFP+-10G-SR
        Xcvr 7       REV 01   740-021308   xxxxxxxxxxx       SFP+-10G-SR
      PIC 2                   BUILTIN      BUILTIN           8X10GE SFPP
      PIC 3                   BUILTIN      BUILTIN           8X10GE SFPP
        Xcvr 6       REV 01   740-021309   xxxxxxxxxx        SFP+-10G-LR
        Xcvr 7       REV 01   740-021308   xxxxxxxxx         SFP+-10G-SR
    Fan Tray 0       REV 02   711-059360   xxxxxxxx          Enhanced Fan Tray
    root@ex9204-core1-re0> show configuration groups    
    re0 {
        system {
            host-name ex9204-core1-re0;
            radius-server {
                1.1.1.12 source-address 1.1.1.8;
                1.1.1.22 source-address 1.1.1.8;
            }
            syslog {
                source-address 1.1.1.8;
            }
        }
        interfaces {
            fxp0 {
                unit 0 {
                    family inet {
                        address 1.1.1.8/26;
                        address 1.1.1.6/26 {
                            master-only;
                        }
                    }
                }
            }
        }
        snmp {
            trap-options {
                source-address 1.1.1.8;
            }
        }
    }
    re1 {
        system {
            host-name ex9204-core1-re1;
            radius-server {
                1.1.1.12 source-address 1.1.1.10;
                1.1.1.22 source-address 1.1.1.10;
            }
            syslog {
                source-address 1.1.1.10;
            }
        }
        interfaces {
            fxp0 {
                unit 0 {
                    family inet {
                        address 1.1.1.10/26;
                        address 1.1.1.6/26 {
                            master-only;
                        }
                    }
                }
            }
        }
        snmp {
            trap-options {
                source-address 1.1.1.10;
            }
        }
    }
    
    root@ex9204-core1-re0> show configuration system    
    domain-name xxxxx.com;
    domain-search xxxxx.com;
    time-zone PST8PDT;
    authentication-order [ radius password ];
    ports {
        console log-out-on-disconnect;
    }
    root-authentication {
        encrypted-password "xxxxx"; ## SECRET-DATA
    }
    name-server {
        1.1.1.210;
        1.1.1.100;
    }
    radius-server {
        1.1.1.12 secret "xxxxx"; ## SECRET-DATA
        1.1.1.22 secret "xxxxx"; ## SECRET-DATA
    }
    scripts {
        op {
            file iv-link.slax;
        }
    }
    login {                                 
        class xxxxx1 {
            login-alarms;
            login-tip;
        }
        class xxxxx2 {
            idle-timeout 15;
            login-alarms;
            login-tip;
            permissions [ clear network reset trace view ];
        }
        class xxxxx3 {
            idle-timeout 15;
            permissions [ view view-configuration ];
        }
        class xxxxx4 {
            idle-timeout 15;
            login-alarms;
            login-tip;
            permissions all;
        }
        user xxxxx5 {
            uid 2000;
            class xxxxx5;         
        }
        user xxxxx6 {
            uid 2006;
            class xxxxx6;
        }
        user xxxxx7 {
            uid 2001;
            class xxxxx7;
        }
        user xxxxx8 {
            uid 2002;
            class xxxxx8;
            authentication {
                encrypted-password "xxxxx"; ## SECRET-DATA
            }
        }
    }
    services {
        ssh {
            max-sessions-per-connection 32;
            connection-limit 10;
            rate-limit 5;                   
        }
        netconf {
            ssh;
        }
    }
    syslog {
        archive size 100k files 3;
        user * {
            any emergency;
        }
        host 1.1.1.98 {
            any any;
            port 4044;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
        file default-log-messages {
            any info;                       
            match "(requested 'commit' operation)|(copying configuration to juniper.save)|(commit complete)|ifAdminStatus|(FRU power)|(FRU removal)|(FRU insertion)|(link UP)|transitioned|Transferred|transfer-file|(license add)|(license delete)|(package -X update)|(package -X delete)|(FRU Online)|(FRU Offline)|(plugged in)|(unplugged)|CFMD_CCM_DEFECT| LFMD_3AH | RPD_MPLS_PATH_BFD|(Master Unchanged, Members Changed)|(Master Changed, Members Changed)|(Master Detected, Members Changed)|(vc add)|(vc delete)|(Master detected)|(Master changed)|(Backup detected)|(Backup changed)|(interface vcp-)|BR_INFRA_DEVICE";
            structured-data;
        }
    }
    commit synchronize;
    ntp {
        boot-server 1.1.1.210;
        server 1.1.1.210;
        server 1.1.1.100;
    }


  • 7.  RE: Shutdown EX9204
    Best Answer

     
    Posted 03-14-2018 19:22

     

    Thanks for the sharing the requested output. the reason you dont get those command is due to Next-Gen Routing-Engine (RE-S-EX9200-2X00x6), thus, you will Not see request system power off/on or halt.

     

    They are replaced with "request vmhost" commands. 

    Use this command "request vmhost power-off".

     

     

     

     

     

     



  • 8.  RE: Shutdown EX9204

     
    Posted 03-14-2018 20:46

    Thanks Karand, indeed that is it.

     

    test@ex9204-core2-re0> request vmhost ?            
    Possible completions:
      cleanup              RE vmhost cleanup /var/tmp, /var/crash and /var/log
      file-copy            Copy file from vmhost to vjunos
      halt                 Halt the software on RE
      hard-disk-test       Run smartd self tests on hard disks
      power-off            Power off the software on RE
      power-on             Power on the system
      reboot               Reboot RE vmhost
      snapshot             Create a vmhost recovery snapshot
      software             Perform vmhost software extension or upgrade
      zeroize              Erase all data, including configuration and log files