User Tools

Site Tools

Translations of this page:

Sidebar

Table of contents

Contacts

  • contact@accel-ppp.org
  • accel-ppp-users@lists.sourceforge.net
snmp

SNMP is implemented using net-snmp libraries. By default accel-ppp starts in subagent mode, so make sure that net-snmp configured with subagent control turned on (read net-snmp's README.agentx for more details). Also you can start accel-ppp as master agent using following configuration:

[snmp]
master=1

Usage: Place accel-ppp-source/accel-pppd/extra/net-snmp/ACCEL-PPP-MIB.txt to your mibs directory (for example $HOME/.snmp/mibs). Also you can find used numerical oids in this file.

1. Request statistics:

snmpwalk -m +ACCEL-PPP-MIB -v 2c -c local 127.0.0.1 ACCEL-PPP-MIB::accelPPPStat

2. Request sessions:

snmptable -m +ACCEL-PPP-MIB -v 2c -c local 127.0.0.1 ACCEL-PPP-MIB::sessionsTable

3. Terminate session by session identifier (Acct-Session-ID):

snmpset -m +ACCEL-PPP-MIB -v 2c -c local 127.0.0.1 ACCEL-PPP-MIB::termBySID.0 = 0000000000000001

4. Terminate session by interface name:

snmpset -m +ACCEL-PPP-MIB -v 2c -c local 127.0.0.1 ACCEL-PPP-MIB::termByIfName.0 = ppp2

5. Terminate session by IP address (Framed-IP-Address):

snmpset -m +ACCEL-PPP-MIB -v 2c -c local 127.0.0.1 ACCEL-PPP-MIB::termByIP.0 = 192.168.10.10

6. Terminate session by username:

snmpset -m +ACCEL-PPP-MIB -v 2c -c local 127.0.0.1 ACCEL-PPP-MIB::termByUsername.0 = user1

7. Execute cli command:

snmpset -m +ACCEL-PPP-MIB -v 2c -c local 127.0.0.1 ACCEL-PPP-MIB::cli.0 = "shaper change all 1024 temp"
snmp.txt · Last modified: 2014/10/12 16:46 by dmitry