Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

cpview Management HA

How does cpview gets the information if a Management is configured as HA or not?

mgmt-ha.png

 

Greedings.

0 Kudos
5 Replies
Highlighted
Sapphire

By running

# cpprod_util FwIsHAManagement

😎

Highlighted

When I try this command on my non-HA Management it also returns 1 instead 0.

 

0 Kudos
Highlighted
Sapphire

Yes, true:

[Expert@SMS:0]# cpprod_util FwIsHAManagement

1 

[Expert@SMS:0]# cpprod_util FwIsHighAvail 

0 

[Expert@SMS:0]# cpprod_util FwIsFullHA   

0 

[Expert@SMS:0]# cpprod_util FwIsFirewallMgmt

1 

[Expert@SMS:0]# cpprod_util FwIsPrimary     

1 

[Expert@SMS:0]# cpprod_util FwIsActiveManagement

1 

---

The best command for this is (sk148112):

cpstat mg

In order to check if the local machine is the primary or the secondary management server run:

 

grep Primary $CPDIR//registry/HKLM_registry.data

 

:Primary ("[4]1") means this is the primary

 

:Primary ("[4]0") means this is the secondary

 

0 Kudos
Highlighted

If i'm not wrong there is no option to install a Management-Server as standalone. It's basically always a primary.
For multiple smartcenters you would determine the role of the smartcenter with cpprod_util <FwIsActiveManagement|FwIsPrimary>  if i'm not mistaken.

0 Kudos
Highlighted
Sapphire

Correct:

Primary Server vs. Secondary Server 

The sequence in which you install management servers defines them as Primary or Secondary. The first management server installed becomes the Primary active server. When you install more Security Management Servers, you define them as Secondary. Secondary servers are Standby servers by default. 

In the SmartConsole connected to the Primary server, create a network object to show the Secondary Security Management Server. After you publish, synchronize starts between the primary and secondary servers. 

0 Kudos