snmpget

Good morning All,
I'm just wondering if I can get help with writing a simple script that check for Community names and make a comparison to the new community name given.
Thanks
T