compass-core/compass/hdsdiscovery
grace.yu 12772e95cb Update API, polling_switch and db model
Support filter ports in machines query API
Update polling_switch and db model
Add one more state for switch in model

Change-Id: I0c581ebbfb3c83a84e8af25a02fce2f1c76aff11
2014-01-24 17:47:39 -08:00
..
vendors Update hdsdiscovery and API 2014-01-23 18:11:56 -08:00
__init__.py Migrate repo of 'compass' to repo of 'compass-core', leave 'compass' to host project homepage 2014-01-08 19:18:04 -08:00
base.py Update hdsdiscovery and API 2014-01-23 18:11:56 -08:00
error.py Update hdsdiscovery and API 2014-01-23 18:11:56 -08:00
hdmanager.py Update API, polling_switch and db model 2014-01-24 17:47:39 -08: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 Update hdsdiscovery and API 2014-01-23 18:11:56 -08: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