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

tacpp::Device_data Class Reference

objects for network devices More...

#include <CoreDevice.h>

List of all members.

Public Member Functions

 Device_data (const ipaddr)
 Device_data ()
 ~Device_data ()
DeviceUser_data gets (const int)
bool add (DeviceUser_data *)
void usr_expire ()
bool usr_del (const string)
void usr_del ()
bool usr_activate (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)
int size ()
int getDelay ()
void setDelay (const int)
void setDescr (const string)
string getDescr ()
void setCommunity (const string)
string getCommunity ()
ipaddr getHostaddr ()
bool compareHostaddr (const ipaddr)
void setHostaddr (const ipaddr)
void setModule (const string)
string getModule ()
void setCounter (const bool)
bool getCounter ()
void setShutdown (const bool)
bool getShutdown ()
string getTacKey ()
void setTacKey (const string)
string getLoginstring ()
void setLoginstring (const string)
string getPwdstring ()
void setPwdstring (const string)
bool getDefAuthor ()
void setDefAuthor (const bool)
bool getSnmppolling ()
void setSnmppolling (const bool)
bool getIcmppolling ()
void setIcmppolling (const bool)
bool getStatus ()
void setStatus (const bool)
int getRest ()
void setRest (const int)
string load ()
string buildcfstr ()

Public Attributes

bool(* getnas )(SnmpDevice *, SnmpD *(*)(char *, char *, char *), char *)
bool(* dropnas )(SnmpDevice *, char *, SnmpD *(*)(char *, char *, char *), bool(*)(char *, char *, char *, char *, char), char *)


Detailed Description

objects for network devices

Version:
1
Author:
rv


Constructor & Destructor Documentation

Device_data::Device_data (  const  ipaddr  ) 
 

set data for device

Device_data::Device_data (   ) 
 

set data by default

Device_data::~Device_data (   ) 
 

destructor


Member Function Documentation

bool Device_data::add (  DeviceUser_data *   ) 
 

add entry

string Device_data::buildcfstr (   ) 
 

returns configuration strings for this device

bool Device_data::compareHostaddr (  const  ipaddr  ) 
 

compare this ip addr with given

Returns:
true if equal

string Device_data::getCommunity (   ) 
 

get network device community

bool Device_data::getCounter (   ) 
 

get store per-interface snmp traffic counters or not

bool Device_data::getDefAuthor (   ) 
 

enable/disable default authorization (config)

int Device_data::getDelay (   ) 
 

get polling delay value

string Device_data::getDescr (   ) 
 

get device description

ipaddr Device_data::getHostaddr (   ) 
 

get device name/address

bool Device_data::getIcmppolling (   ) 
 

permit/deny icmp polling (config)

string Device_data::getLoginstring (   ) 
 

login request string (config)

string Device_data::getModule (   ) 
 

get device module name

string Device_data::getPwdstring (   ) 
 

password request string (config)

int Device_data::getRest (   ) 
 

polling delay wait in seconds (internal)

DeviceUser_data Device_data::gets (  const  int  ) 
 

det DeviceUser_data

bool Device_data::getSnmppolling (   ) 
 

permit/deny snmp polling (config)

bool Device_data::getStatus (   ) 
 

device status from polling - on/off (internal)

string Device_data::getTacKey (   ) 
 

tacacs+ key (config)

string Device_data::load (   ) 
 

load module

int Device_data::numsess (  const  string  ) 
 

numsess on our device

void Device_data::setCommunity (  const  string  ) 
 

set network device community

void Device_data::setCounter (  const  bool  ) 
 

set store per-interface snmp traffic counters or not

void Device_data::setDefAuthor (  const  bool  ) 
 

set default author value

void Device_data::setDelay (  const  int  ) 
 

set polling delay value

void Device_data::setDescr (  const  string  ) 
 

set device description

void Device_data::setHostaddr (  const  ipaddr  ) 
 

set device name/address

void Device_data::setIcmppolling (  const  bool  ) 
 

set icmp polling

void Device_data::setModule (  const  string  ) 
 

set device module name

void Device_data::setPwdstring (  const  string  ) 
 

store pwd str

void Device_data::setRest (  const  int  ) 
 

set

void Device_data::setShutdown (  const  bool  ) 
 

set device as active or close it (config)

void Device_data::setSnmppolling (  const  bool  ) 
 

set snmp polling

void Device_data::setStatus (  const  bool  ) 
 

set dev stat

void Device_data::setTacKey (  const  string  ) 
 

set tacacs+ key

int Device_data::size (   ) 
 

cusr_ size

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

activate user or delete if something mismatch

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

add user

void Device_data::usr_del (   ) 
 

delete all users from device

bool Device_data::usr_del (  const  string  ) 
 

delete user from port

void Device_data::usr_expire (   ) 
 

delete expired entryes

void Device_data::usr_periodic (  const  time_t  ) 
 

periodic checking


Member Data Documentation

bool(* tacpp::Device_data::dropnas)(SnmpDevice*,char*, SnmpD*(*)(char*,char*,char*), bool(*)(char*,char*,char*,char*,char),char*)
 

dynamically loaded function - drop user from device port

bool(* tacpp::Device_data::getnas)(SnmpDevice*,SnmpD*(*)(char*,char*,char*),char*)
 

dynamically loaded function - process snmp information for device


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