SRX junos step di test switchover chassis cluster

 

 

Pre-Check :

 

sbaraglia@SRX1500>  show chassis cluster status

 

Cluster ID: 1


Node Priority Status      Preempt  Manual Monitor-failures

 

Redundancy group: 0 , Failover count: 1
node0 200 primary         no   no   None
node1 100 secondary    no   no   None

 

Redundancy group: 1 , Failover count: 1
node0 200 primary        no  no   None
node1 100 secondary   no  no   None
{primary:node0}

 

Per la configurazione del cluster SRX1500 vedi: https://www.massimilianosbaraglia.it/application/clustering/firewall/cluster-srx1500-juniper


Test di Failover Cluster SRX redundant group 0 node 1

 

sbaraglia@SRX1500> request chassis failover redundancy-group 0 node 1

node1:
--------------------------------------------------------------------------
Initiated manual failover for redundancy group 0
{primary:node0}

sbaraglia@SRX1500E-0>

Message from syslogd@SRX1500E-0 at Jun 16 14:32:24 ...

SRX1500 SRX1500 CMLC: Going disconnected; Routing engine chassis socket closed abruptly
{secondary-hold:node0}

 

# verifica:
sbaraglia@SRX1500>; show chassis cluster status

Cluster ID: 1
Node Priority Status   Preempt  Manual  Monitor-failures
Redundancy group: 0 , Failover count: 2
node0 200 secondary-hold  no  yes  None
node1 255 primary               no yes None
Redundancy group: 1 , Failover count: 1
node0 200 primary              no no None
node1 100 secondary         no no None
{secondary-hold:node0}

 

After 5 minuts:


sbaraglia@SRX1500E-0>; show chassis cluster status

Cluster ID: 1
Node Priority Status   Preempt   Manual   Monitor-failures
Redundancy group: 0 , Failover count: 2
node0 200 secondary    no yes  None
node1 255 primary        no  yes None
Redundancy group: 1 , Failover count: 1
node0 200 primary        no no None
node1 100 secondary    no no None
{secondary:node0}


# Test di Failover Cluster SRX redundant group 1 node 1

 

sbaraglia@SRX1500>; request chassis cluster failover redundancy-group 1 node 1

node1:
--------------------------------------------------------------------------
Initiated manual failover for redundancy group 1
{secondary:node0}

# verifica:
sbaraglia@SRX1500>; show chassis cluster status

Cluster ID: 1
Node Priority Status   Preempt   Manual   Monitor-failures
Redundancy group: 0 , Failover count: 2
node0 200 secondary   no yes None
node1 255 primary       no yes None
Redundancy group: 1 , Failover count: 2
node0 200 secondary   no yes None
node1 255 primary        no yes None
{secondary:node0}


# prova ritorno alla situazione originaria ma senza il reset command:


sbaraglia@SRX1500>; request chassis cluster failover redundancy-group 0 node 0

node0:
--------------------------------------------------------------------------
Redundancy-group 0 is in manual failover mode already.
Please reset it before requesting a failover.

# dare il reset command:

sbaraglia@SRX1500>; request chassis cluster failover reset redundancy-group 0

 

node0:
--------------------------------------------------------------------------
No reset required for redundancy group 0.


node1:
--------------------------------------------------------------------------
Successfully reset manual failover for redundancy group 0
{secondary:node0}

# verifica:
sbaraglia@SRX1500>; show chassis cluster status

Cluster ID: 1
Node Priority Status   Preempt   Manual   Monitor-failures
Redundancy group: 0 , Failover count: 2
node0 200 secondary   no no None
node1 100 primary       no no None
Redundancy group: 1 , Failover count: 2
node0 200 secondary    no yes None
node1 255 primary        no yes None
{secondary:node0}


sbaraglia@SRX1500>; request chassis cluster failover reset redundancy-group 1

node0:
--------------------------------------------------------------------------
No reset required for redundancy group 1.
node1:
--------------------------------------------------------------------------
Successfully reset manual failover for redundancy group 1


# verifica
sbaraglia@SRX1500E>; show chassis cluster status

Cluster ID: 1
Node Priority Status Preempt Manual Monitor-failures
Redundancy group: 0 , Failover count: 2
node0 200 secondary    no no None
node1 100 primary         no no None
Redundancy group: 1 , Failover count: 2
node0 200 secondary no no None
node1 100 primary no no None
{secondary:node0}


# a questo punto è possibile riportare la situazione originale dell’inizio:


sbaraglia@SRX1500>; request chassis cluster failover redundancy-group 0 node 0


node0:
--------------------------------------------------------------------------
Initiated manual failover for redundancy group 0
{secondary:node0}


sbaraglia@SRX1500>;


Message from syslogd@SRX1500 at Jun 16 14:45:53 ...

SRX1500 SBAR-SRX1500 CMLC: Going disconnected; Routing engine chassis socket closed abruptly

# verifica:
sbaraglia@SRX1500>; show chassis cluster status

Cluster ID: 1
Node Priority Status Preempt Manual Monitor-failures
Redundancy group: 0 , Failover count: 3
node0 255 primary               no yes None
node1 100 secondary-hold  no yes None
Redundancy group: 1 , Failover count: 2
node0 200 secondary       no no None
node1 100 primary             no no None
{primary:node0}


sbaraglia@SRX1500E-0>; request chassis cluster failover redundancy-group 1 node 0


node0:
--------------------------------------------------------------------------
Initiated manual failover for redundancy group 1
{primary:node0}

# verifica:
sbaraglia@SRX1500>; show chassis cluster status

Cluster ID: 1
Node Priority Status Preempt Manual Monitor-failures
Redundancy group: 0 , Failover count: 3
node0 255 primary       no yes None
node1 100 secondary  no yes None
Redundancy group: 1 , Failover count: 3
node0 255 primary        no yes None
node1 100 secondary    no yes None
{primary:node0}


# per riportare I valori di priority settati in modo originario:
sbaraglia@SRX1500E-0>; request chassis cluster failover reset redundancy-group 0

node0:
--------------------------------------------------------------------------
Successfully reset manual failover for redundancy group 0

node1:
--------------------------------------------------------------------------
No reset required for redundancy group 0.
{primary:node0}

sbaraglia@SRX1500>; request chassis cluster failover reset redundancy-group 1

node0:
--------------------------------------------------------------------------
Successfully reset manual failover for redundancy group 1
node1:
--------------------------------------------------------------------------
No reset required for redundancy group 1.
{primary:node0}


# verifica:
sbaraglia@SRX1500E-0>; show chassis cluster status

Cluster ID: 1
Node Priority Status   Preempt   Manual   Monitor-failures
Redundancy group: 0 , Failover count: 3
node0 200 primary       no no None
node1 100 secondary  no no None
Redundancy group: 1 , Failover count: 3
node0 200 primary       no no None
node1 100 secondary  no no None
{primary:node0}