Hi,
"when i am scanning the network by giving command "sudo ocsinventory-agent --debug" it is not scanning snmp devices." => First is snmp really configured ? I don't think so. Please post ocsinventory agent content log file.
Second, with or wihtout snmp ocs inventory agent can scan all networks.
Regards
Frank