How do I run the Smarts IP 9.2 OIDINFO tool?
To run the Smarts IP 9.2 OIDINFO tool, do the following:
- Open the oidInfo.conf configuration file found in <BASEDIR>/IP/smarts/conf/oidinfo/ for editing using sm_edit:
sm_edit ../conf/oidinfo/oidInfo.conf
- Add the class and the name of the device along with the information to display (Discovery or Monitoring) as in the following:
Switch ab1def-ghij.jklmno.com Monitoring *
Switch abc.def.com Discovery *
Router ghijklmno.pqr.stu.com Discovery *
Switch host-x.x.x.x Discovery *
- Save and close the oidInfo.conf configuration file. This will save the file in the <BASEDIR>/IP/smarts/local/conf/oidinfo/ directory.
- Execute the sm_oidInfo.pl Perl script using sm_perl from <BASEDIR>/IP/smarts/bin as follows:
sm_perl sm_oidInfo.pl -s <domain name>
The script will generate output similar to the following, concluding with an *.txt output file:
-----------------------------------------------------------------
Details Entered:-
Current Installation : /data/redhat5/IP/IP92/IP/smarts
Broker : x.x.x.x:1217
Server Name : NAME-IP-92
Gather the OIDs and descriptions
-----------------------------------------------------------------
Read input device file succesfully
Connected to: NAME-IP-92
Will gather info for <Switch><host-x.x.x.x><Discovery><*>
We will now gather OID data for
<Switch><host-x.x.x.x><Discovery><*>
Completed gathering OID data
We have completed collecting all OID data.
Please find the info in the following file(s)
:>/data/redhat5/IP/IP92/IP/smarts/local/logs/oidInfoLogs/Switch_host-x.x.x.x.txt
- Navigate to the Switch_host-x.x.x.x.txt output file above and you will see the OID that is used to poll in Smarts.