According to the manual, the target switch has to be a member of the stack. I had a quick look in the manual, and page 9-46/47 goes into snmp management of stack members via the stack commander. The exact syntax is:
snmpget community@sw1
Have you tried this? If it still fails, describing step by step what you do to make it fail will help.
Goodluck