Get OIDInfo via CLI
search cancel

Get OIDInfo via CLI

book

Article ID: 327632

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

How to get OIDInfo via CLI in Smarts?

Environment

SMARTS - v10.1.x

Resolution

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

  1. Open the oidInfo.conf configuration file found in <BASEDIR>/IP/smarts/conf/oidinfo/ for editing using sm_edit:

    sm_edit ../conf/oidinfo/oidInfo.conf

     
  2. 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              *


     
  3. Save and close the oidInfo.conf configuration file.  This will save the file in the <BASEDIR>/IP/smarts/local/conf/oidinfo/ directory.
  4. 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


     
  5. 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.