It sounds like your environment is not setup properly.
You must only run the command user "netrangr" and not as user "root".
To become user "netrangr" either:
1) login on the console directly as netrangr
2) telnet in directly as netrangr
3) ssh in directly as netrangr
4) login as root and the "su - netrangr"
NOTE: If using the su command you MUST use the "-" as part of the command.
Not using the "-" results in netrangr having root's environment and not the proper netrangr environment. This results in failures of any of the ids commands. The "-" tells the system to use netrangr's environment when switching to netrangr (it source's netrangr's .profile).
Another way to tell if the environment is right is to just execute "idsvers" without putting in the full path or changing directories to /usr/nr/bin. The "idsvers" should automatically be in netrangr's path if the environment is correct.