compass-core/compass/hdsdiscovery
Xicheng Chang 3d4e5d0af6 Changed ansible directory structure
Moved roles to the parent directory
so that different adapters don't have
to have duplicated roles in their
respective paths.

patch2: fix some code to follow new pep8 standards.
Change-Id: I748c1730be8045c1cb83f91eaa9f0f551cd20a6f
2015-05-22 17:06:47 -07:00
..
vendors Changed ansible directory structure 2015-05-22 17:06:47 -07:00
__init__.py add code to match new pep8 style checking and fix bugs. 2014-03-11 01:26:42 +00:00
base.py Changed ansible directory structure 2015-05-22 17:06:47 -07:00
error.py add code to match new pep8 style checking and fix bugs. 2014-03-11 01:26:42 +00:00
hdmanager.py Changed ansible directory structure 2015-05-22 17:06:47 -07:00
README Migrate repo of 'compass' to repo of 'compass-core', leave 'compass' to host project homepage 2014-01-08 19:18:04 -08:00
utils.py Changed ansible directory structure 2015-05-22 17:06:47 -07:00

Install & Config Prerequisite Packages:

1. Net-Snmp:
   a. #apt-get install -y snmpd snmp libsnmp-python
   b. #apt-get install -y snmp-mibs-downloader
      For Centos:
      # yum install net-snmp net-snmp-utils

   c. create vendor's mibs directory(for example):
      - #mkdir -p /root/.snmp/mibs/huawei
      - #vim /etc/snmp/snmp.conf (if not exists, create snmp.conf file)
           * add vendor;s mibs directory:
             mibdirs +/root/.snmp/mibs/huawei
           * comment the line:
             #mibs:
   d. copy vendor's mibs to that directory
   e. #vim /etc/default/snmpd 
        * modify the directive from
          TRAPDRUN=no --> TRAPDRUN=yes
      For Centos:
      # vim /etc/sysconfig/snmpd
        * modify into or add the directive
          TRAPDRUN=yes     

   f. #vim /etc/snmp/snmpd.conf 
        * add the following line, where $ip is the ip address of manager machine: 
          com2sec mynetwork $ip/24 public
   g. #service snmpd restart

   Note: net-snmp-config is used to see default configuration

2. paramiko: 
   #apt-get install python-paramiko