Cisco Cisco NAC Appliance 4.1.0
16-12
Cisco NAC Appliance - Clean Access Manager Installation and Administration Guide
OL-12214-01
Chapter 16 Configuring High Availability (HA)
Useful CLI Commands for HA
How to Verify Primary/Secondary Configuration Status on the HA CAM
The following example shows how to use the CLI to determine the HA mode (Primary/Secondary) for
which each CAM was initially configured in the HA pair.
which each CAM was initially configured in the HA pair.
1.
Find the name of the CAMs (nodes) with
/etc/ha.d/ha.cf
.
2.
Then check status on each CAM, for example:
[root@cam1 ~]# /perfigo/control/bin/check-ha cam1
active
[root@cam1 ~]# /perfigo/control/bin/check-ha cam2
active
3.
Go to
/perfigo/control/tomcat
and perform
ls –la
:
–
If
webapps
is pointing to
normal-webapps
, it is the primary CAM
–
If
webapps
is pointing to
admin-webapps
, it is the secondary CAM
For example, this CAM is the primary CAM:
[root@cam1 tomcat]# cd /perfigo/control/tomcat
[root@cam1 tomcat]# ls -la
total 216
drwxr-xr-x 12 root root 4096 Sep 14 23:28 .
drwxr-xr-x 8 root root 4096 Aug 28 22:12 ..
drwxr-xr-x 4 root root 4096 Aug 28 22:12 admin-webapps
<output cut…..>
drwxr-xr-x 2 root root 4096 Aug 28 22:12 temp
lrwxrwxrwx 1 root root 38 Sep 14 23:28 webapps ->
/perfigo/control/tomcat/normal-webapps
drwxr-xr-x 3 root root 4096 Aug 28 15:15 work
This CAM is the secondary CAM:
[root@cam2 tomcat]# ls -la
total 216
drwxr-xr-x 12 root root 4096 Sep 14 23:33 .
drwxr-xr-x 8 root root 4096 Sep 15 2006 ..
drwxr-xr-x 4 root root 4096 Sep 15 2006 admin-webapps
<output cut …>
drwxr-xr-x 2 root root 4096 Sep 15 2006 temp
lrwxrwxrwx 1 root root 37 Sep 14 23:33 webapps ->
/perfigo/control/tomcat/admin-webapps
drwxr-xr-x 3 root root 4096 Sep 14 23:25 work