cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
231
Views
0
Helpful
1
Replies

idsvers command failing on 4230

csimpson
Level 1
Level 1

Has anyone had this problem? When I issue the command:

"/usr/nr/bin/idsvers" it returns the following:

Application Versions for <sensor name>.<org name>

The Version of the Sensor is: 3.1(2)S23

/usr/nr/bin/idsvers[147]: nrVersion: not found

I have just re-imaged this sensor, but this error has always occurred, regardless of what version the sensor is running.

1 Reply 1

marcabal
Cisco Employee
Cisco Employee

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.