Heat the oil in a soup pot over medium-low heat. Add the onions and garlic and cook over low heat until the vegetables are tender, about 10 minutes.
Drain the beans and add them, the ham bone or ham hock, and the 6 quarts of water to the pot. Stir in the 2 tablespoons of cumin, the oregano, bay leaves, salt, pepper, cayenne, and 2 tablespoons of the parsley. B