Main Page | Class Hierarchy | Class List | File List | Class Members

tacpp::CoreDevice Class Reference

network devices manager More...

#include <CoreDevice.h>

Inheritance diagram for tacpp::CoreDevice:

tacpp::Core_data List of all members.

Public Member Functions

 CoreDevice (const string, const string)
 ~CoreDevice ()
Device_data * get (const ipaddr)
void add (const ipaddr)
void del (const ipaddr)
void usr_expire ()
bool usr_del (const ipaddr, const string)
void usr_del (const ipaddr)
bool usr_activate (const ipaddr, const string, const string, const string, const ipaddr)
bool usr_add (const ipaddr, const string, const string, const string, const ipaddr, const db_user)
void usr_periodic (const time_t)
int numsess (const string)
void startPeriodic ()
void modifyCommunity (const ipaddr, const string)
void modifyCounter (const ipaddr, const bool)
void modifyDelay (ipaddr, int)
void modifyDescr (ipaddr, const string)
void modifyModule (ipaddr, const string)
void modifyKey (ipaddr, const string)
void modifyLogin (ipaddr, const string)
void modifyPwd (ipaddr, const string)
void modifyDef (ipaddr, bool)
void modifyShut (ipaddr, bool)
void modifySnmp (ipaddr, bool)
void modifyIcmp (ipaddr, bool)
Device_data * get (int)
ipaddr getip (int)
DeviceUser_data getuser (int)
DeviceUser_data getuser (ipaddr, int)
string load (const ipaddr)
string getmodulename (const ipaddr)
string applycf (char *const *mask, const string cmdname, const list< string >paramList, Command *cmd=NULL) throw (CmdErr)
string buildcfstr (int)
int size ()
void setDeviceStatus (ipaddr, bool)
bool get_device_status (ipaddr)
string getCommunity (ipaddr)
void setRunPeriodic (bool)
bool getRunPeriodic ()

Detailed Description

network devices manager

Author:
rv
See also:
Core_data Device_data
Version:
1


Constructor & Destructor Documentation

CoreDevice::CoreDevice (  const  string,
const  string
) 
 

init

CoreDevice::~CoreDevice (   ) 
 

free


Member Function Documentation

void CoreDevice::add (  const  ipaddr  ) 
 

add device

string CoreDevice::applycf (  char *const *  mask,
const string  cmdname,
const list< string >  paramList,
Command *  cmd = NULL
)  throw (CmdErr) [virtual]
 

apply config

Implements tacpp::Core_data.

string CoreDevice::buildcfstr (  int   )  [virtual]
 

build config for one object by number

Implements tacpp::Core_data.

void CoreDevice::del (  const  ipaddr  ) 
 

delete device

Device_data * CoreDevice::get (  int   ) 
 

for snmp polling, get object by number

Device_data * CoreDevice::get (  const  ipaddr  ) 
 

get object by ipaddr with locking

bool CoreDevice::get_device_status (  ipaddr   ) 
 

get device status

string CoreDevice::getCommunity (  ipaddr   ) 
 

snmp community

ipaddr CoreDevice::getip (  int   ) 
 

get device ip by number

string CoreDevice::getmodulename (  const  ipaddr  ) 
 

returns snmp module name by device ip

DeviceUser_data CoreDevice::getuser (  ipaddr  ,
int 
) 
 

get user by device ip and number

DeviceUser_data CoreDevice::getuser (  int   ) 
 

get user by number

string CoreDevice::load (  const  ipaddr  ) 
 

load/reload module

void CoreDevice::modifyCommunity (  const  ipaddr,
const  string
) 
 

set community

void CoreDevice::modifyCounter (  const  ipaddr,
const  bool
) 
 

set/unset interface traffic counter

void CoreDevice::modifyDef (  ipaddr  ,
bool 
) 
 

set/modify default authorization

void CoreDevice::modifyDelay (  ipaddr  ,
int 
) 
 

set/modify device polling delay

void CoreDevice::modifyDescr (  ipaddr  ,
const  string
) 
 

set/modify device description

void CoreDevice::modifyIcmp (  ipaddr  ,
bool 
) 
 

enable/disable icmp polling

void CoreDevice::modifyKey (  ipaddr  ,
const  string
) 
 

set/modify tacacs+ key

void CoreDevice::modifyLogin (  ipaddr  ,
const  string
) 
 

set/modify login request string

void CoreDevice::modifyModule (  ipaddr  ,
const  string
) 
 

set/modify device snmp module

void CoreDevice::modifyPwd (  ipaddr  ,
const  string
) 
 

set/modify pwd request string

void CoreDevice::modifyShut (  ipaddr  ,
bool 
) 
 

set/modify device shutdown or no

void CoreDevice::modifySnmp (  ipaddr  ,
bool 
) 
 

enable/disable snmp polling

int CoreDevice::numsess (  const  string  ) 
 

number of user sessions

void CoreDevice::setDeviceStatus (  ipaddr  ,
bool 
) 
 

set device status

int CoreDevice::size (   ) 
 

returns number of device objects

void CoreDevice::startPeriodic (   ) 
 

run periodic polling thread

bool CoreDevice::usr_activate (  const  ipaddr,
const  string,
const  string,
const  string,
const  ipaddr
) 
 

activate user on device

bool CoreDevice::usr_add (  const  ipaddr,
const  string,
const  string,
const  string,
const  ipaddr,
const  db_user
) 
 

add user with data

Returns:
true if user added

void CoreDevice::usr_del (  const  ipaddr  ) 
 

delete all users from device

bool CoreDevice::usr_del (  const  ipaddr,
const  string
) 
 

delete user from list by nas and port

Returns:
if user was deleted

void CoreDevice::usr_expire (   ) 
 

expire and delete expired users

void CoreDevice::usr_periodic (  const  time_t  ) 
 

periodic user checking


The documentation for this class was generated from the following files:
Generated on Thu Jul 21 23:09:47 2005 for tacppd.kdevelop by doxygen 1.3.5