Overview Of Methods To Get OIDInfo
search cancel

Overview Of Methods To Get OIDInfo

book

Article ID: 390654

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Overview of how to get OIDInfo via CLI, or via the GUI, in Smarts

 

Environment

Smarts 10.1.X

Resolution

To run the Smarts IP OIDInfo tool via CLI, do the following:

  • Open the oidInfo.conf configuration file found in: 
<BASEDIR>/IP/smarts/conf/oidinfo/
  • for editing using sm_edit like below: 
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 following directory:  
<BASEDIR>/IP/smarts/local/conf/oidinfo/
  • Then 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.

 

To do so from the Smarts UI:

  • From the Domain Manager Administration Console click on OIDInfo like below:

  • This will bring up this table:

  • Then save the table to a file like below:

  • Command template:
    ./sm_adapter -s IPDomain  -Doid=".SYSOId" utils/ic-oid-info.asl 
    
  • Example of the above command:
    example: ./sm_adapter -s INCHARGE-AM-PM  -Doid=".1.3.6.1.4.1.9.1.3148" utils/ic-oid-info.asl |tee > .1.3.6.1.4.1.9.1.3148.out