+7 (916) 741 5495
support@netams.com

                         english   

 

SNMP


NeTAMS 3.4.0 (build 3018) SNMP . :
  • , SNMP- MIB-II (, MIB).
  • UNIX, :
    • NeTAMS
    • net-snmp 5
    • Perl- net-snmp
    • Perl- Net::Telnet
  • addon/snmp2netams.pl
  • data-source ... type raw





addon/snmp2netams.pl SNMP-, community. 64- , :
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifName = 
	= 1.3.6.1.2.1.31.1.1.1.1
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets = 
	= 1.3.6.1.2.1.31.1.1.1.6
ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets = 
	= 1.3.6.1.2.1.31.1.1.1.10
, rawdata data-source. , :
rawdata unit name catalyst1-fa0/1 policy ip 
	in 1234567 out 7654321 incremental
.
Net::Telnet netams, rawdata. incremental netams (show lift full name catalyst1-fa0/1) SNMP- .


  1. addon/snmp2netams.pl :

    @devices=("catalyst");
    (hostname) , .

    $community="public";
    .

    $netams_host="localhost";
    $netams_port=20001;
    $netams_login="admin";
    $netams_password="aaa";
    NeTAMS.

    $policy_name="ip";
    , .

  2. NeTAMS :
    service data-source 2
    type raw
    
  3. SNMP- , SNMP. , 192.168.0.1 snmp2netams.pl NeTAMS. Cisco Catalyst :
    access-list 1 permit 192.168.0.1
    snmp-server community public RO 1
    snmp-server ifindex persist
    
  4. ( 5...15) cron.

  5. data-source...raw :
    debug ds_raw
    
    :
    |ds_raw: unit catalyst-fa0/01(004FE6) policy ip(023CAA) 
    	in=1234567, out 7654321, 
    	time=1147365439, type=2, ds=data-source:3
    
    data-source...raw .


SNMP Cisco Catalyst . SNMP Cisco .

SNMP 2 OSI. , IP , Ethernet-. IP Ethernet , . IP- SNMP- 30%.

[an error occurred while processing this directive]