Community discussions

MikroTik App
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Topic Author
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

How do you see active PPP users using SNMP

Tue Mar 07, 2006 1:19 am

I would like some tips on how to see a list of active users using SNMP and a Linux PC. Can anyone help me? What command do I use and what is the MIB I should examine using this command?
 
meister
newbie
Posts: 48
Joined: Wed Jul 07, 2004 12:28 pm
Location: Canada

Sun Mar 12, 2006 2:41 am

You could get a list of the oid's from
/interface print oid
The problem you will have is getting the oids since they change dynamically.
 
User avatar
eugenevdm
Member Candidate
Member Candidate
Topic Author
Posts: 208
Joined: Tue Jun 01, 2004 12:23 pm
Location: Stellenbosch, South Africa
Contact:

Sun Mar 12, 2006 11:07 am

The book mentions:

CISCO-AAA-SESSION-MIB

Note that this MIB is supported only when ppp package is installed. It reports both ppp and hotspot active users

enterprises.cisco.ciscoMgmt.ciscoAAASessionMIB.casnMIBObjects.casnActive.casnActiveTableEntries
enterprises.cisco.ciscoMgmt.ciscoAAASessionMIB.casnMIBObjects.casnActive.casnActiveTable.casnActiveEntry.casnSessionId
enterprises.cisco.ciscoMgmt.ciscoAAASessionMIB.casnMIBObjects.casnActive.casnActiveTable.casnActiveEntry.casnUserId
enterprises.cisco.ciscoMgmt.ciscoAAASessionMIB.casnMIBObjects.casnActive.casnActiveTable.casnActiveEntry.casnIpAddr

But I cannot get it working in Linux. Does someone has a simple way of checking this using Linux? Using 'snmpwalk' maybe?
 
fivenetwork
newbie
Posts: 45
Joined: Thu Jul 08, 2004 4:39 am

Mon Mar 13, 2006 2:16 pm

I too wanted to do this.

I am stuck at the following step.

Using Getif and the second last option MBrowser I obtained this entry
' enterprises.9.9.150.1.1.1.0 ' and on selecting this entry (amongst the many such obtained) i got this OID as the associated one
.1.3.6.1.4.1.9.9.150.1.1.1.0

I added this entry using the "Add to Graph" button on this page. Now on the last option Graph page, i am getting a graph listing the number of users connected in 5 sec intervals.

Now if someone can convert this info into some more meaningful graph and also with a history........