Switch to the afx user and verify that the AFX commands now work. Here is a sample session using the afx status command. Note that in this example the afx user is oracle.

$ afx statusAFX Server Status:Setting MULE_HOME to /home/oracle/AFX/esb...INFO: Using default configuration(you can configure options in one of these file: /etc/default/activemq /home/oracle/.activemqrc)