Gloucestershire moved into a promising position against Australia A on day two of the three-day tour match at Bristol.