"When i execute the snmp walk command alongwith the required parameters"
Presumably you mean the snmpwalk command from the net-snmp package. If so, it means your problem is nothing at all to do with snmp_exporter, but it does show you have a general problem with SNMP that you'll need to debug.
It could be a whole range of issues, the most common being:
* problems with the query itself: see "man snmpcmd" for the options
* you're sending a query with the wrong SNMP version (v1 or v2c)
* you're using the wrong snmpv3 security level (authPriv | authNoPriv | noAuthNoPriv)
* you're using the wrong snmpv3 credentials (username, authentication key or encryption key)
* you're using the wrong snmpv3 key types (MD5/SHA for authentication, DES/AES for encryption)
* you're using raw hex keys instead of passphrases, or vice versa
* snmp agent has some ACL that blocks requests from your IP
* intervening firewall rules blocking snmp traffic from your IP
* snmp agent not running
It's not possible to give any more specific advice unless you show your actual snmpwalk command line, and your firewall's SNMPv3 configuration. And do remember, this is not anything to do with Prometheus or snmp_exporter, it's a problem between you and your firewall.
You might find some clues from here (the examples use authNoPriv as the security level):
Incidentally, there is a new
release of snmp_exporter due shortly (0.23.0) which changes the configuration to separate MIBs from authentication credentials, which is a huge improvement. I'm using 0.23.0-rc0 now, and I'd recommend you start with this. But you must first get queries working with snmpwalk, before you can progress to configuring and testing snmp_exporter.