📄 if_mib.h
字号:
class ifTestStatus: public MibLeaf {public: ifTestStatus(const Oidx&); virtual ~ifTestStatus(); virtual MibEntryPtr clone(); virtual void get_request(Request*, int); virtual long get_state(); virtual void set_state(long); virtual int set(const Vbx&); virtual int prepare_set_request(Request*, int&); virtual boolean value_ok(const Vbx&);//--AgentGen BEGIN=ifTestStatus//--AgentGen END};/** * ifTestType * * "A control variable used to start and stop operator- * initiated interface tests. Most OBJECT IDENTIFIER values * assigned to tests are defined elsewhere, in association with * specific types of interface. However, this document assigns * a value for a full-duplex loopback test, and defines the * special meanings of the subject identifier: * noTest OBJECT IDENTIFIER ::= { 0 0 } * When the value noTest is written to this object, no action * is taken unless a test is in progress, in which case the * test is aborted. Writing any other value to this object is * only valid when no test is currently in progress, in which * case the indicated test is initiated. * When read, this object always returns the most recent value * that ifTestType was set to. If it has not been set since * the last initialization of the network management subsystem * on the agent, a value of noTest is returned." */class ifTestType: public MibLeaf {public: ifTestType(const Oidx&); virtual ~ifTestType(); virtual MibEntryPtr clone(); virtual void get_request(Request*, int); virtual int set(const Vbx&); virtual int prepare_set_request(Request*, int&); virtual boolean value_ok(const Vbx&);//--AgentGen BEGIN=ifTestType//--AgentGen END};/** * ifTestOwner * * "The entity which currently has the 'ownership' required to * invoke a test on this interface." */class ifTestOwner: public MibLeaf {public: ifTestOwner(const Oidx&); virtual ~ifTestOwner(); virtual MibEntryPtr clone(); virtual void get_request(Request*, int); virtual int set(const Vbx&); virtual int prepare_set_request(Request*, int&); virtual boolean value_ok(const Vbx&);//--AgentGen BEGIN=ifTestOwner//--AgentGen END};/** * ifRcvAddressStatus * * "This object is used to create and delete rows in the * ifRcvAddressTable." */class ifRcvAddressStatus: public snmpRowStatus {public: ifRcvAddressStatus(const Oidx&); virtual ~ifRcvAddressStatus(); virtual MibEntryPtr clone(); virtual long get_state(); virtual void set_state(long); virtual int set(const Vbx&); virtual int prepare_set_request(Request*, int&);//--AgentGen BEGIN=ifRcvAddressStatus//--AgentGen END};/** * ifRcvAddressType * * "This object has the value nonVolatile(3) for those entries * in the table which are valid and will not be deleted by the * next restart of the managed system. Entries having the * value volatile(2) are valid and exist, but have not been * saved, so that will not exist after the next restart of the * managed system. Entries having the value other(1) are valid * and exist but are not classified as to whether they will * continue to exist after the next restart." */class ifRcvAddressType: public MibLeaf {public: ifRcvAddressType(const Oidx&); virtual ~ifRcvAddressType(); virtual MibEntryPtr clone(); virtual void get_request(Request*, int); virtual long get_state(); virtual void set_state(long); virtual int set(const Vbx&); virtual int prepare_set_request(Request*, int&); virtual boolean value_ok(const Vbx&);//--AgentGen BEGIN=ifRcvAddressType//--AgentGen END};/** * ifTableLastChange * * "The value of sysUpTime at the time of the last creation or * deletion of an entry in the ifTable. If the number of * entries has been unchanged since the last re-initialization * of the local network management subsystem, then this object * contains a zero value." */class ifTableLastChange: public MibLeaf {public: ifTableLastChange(); virtual ~ifTableLastChange(); static ifTableLastChange* instance; virtual void get_request(Request*, int);//--AgentGen BEGIN=ifTableLastChange//--AgentGen END};/** * ifStackLastChange * * "The value of sysUpTime at the time of the last change of * the (whole) interface stack. A change of the interface * stack is defined to be any creation, deletion, or change in * value of any instance of ifStackStatus. If the interface * stack has been unchanged since the last re-initialization of * the local network management subsystem, then this object * contains a zero value." */class ifStackLastChange: public MibLeaf {public: ifStackLastChange(); virtual ~ifStackLastChange(); static ifStackLastChange* instance; virtual void get_request(Request*, int);//--AgentGen BEGIN=ifStackLastChange//--AgentGen END};/** * linkDown * * "A linkDown trap signifies that the SNMP entity, acting in * an agent role, has detected that the ifOperStatus object for * one of its communication links is about to enter the down * state from some other state (but not from the notPresent * state). This other state is indicated by the included value * of ifOperStatus." */class linkDown {public: linkDown(SubAgentXMib*); virtual ~linkDown(); virtual void generate(Vbx*, int, const OctetStr&);protected: SubAgentXMib* my_mib;//--AgentGen BEGIN=linkDown SubAgentXMib* backReference;//--AgentGen END};/** * linkUp * * "A linkUp trap signifies that the SNMP entity, acting in an * agent role, has detected that the ifOperStatus object for * one of its communication links left the down state and * transitioned into some other state (but not into the * notPresent state). This other state is indicated by the * included value of ifOperStatus." */class linkUp {public: linkUp(SubAgentXMib*); virtual ~linkUp(); virtual void generate(Vbx*, int, const OctetStr&);protected: SubAgentXMib* my_mib;//--AgentGen BEGIN=linkUp SubAgentXMib* backReference;//--AgentGen END};/** * ifEntry * * "An entry containing management information applicable to a * particular interface." */class ifEntry: public AgentXSharedTable {public: ifEntry(const OctetStr&, SubAgentXMib*); virtual ~ifEntry(); static ifEntry* instance; virtual void update(Request*); virtual MibTableRow* init_row(const Oidx&, Vbx*); //--AgentGen BEGIN=ifEntry#ifdef linux virtual void index_allocated(const Oidx&, int, int); virtual void do_update(); protected: int if_type_from_name(const char*name); int if_speed_from_type(int); void init_if_speeds(); time_t lastUpdated; static int if_speeds[ MAX_IF_TYPES ]; List<MibTableRow> newRows;#endif//--AgentGen END};/** * ifXEntry * * "An entry containing additional management information * applicable to a particular interface." */class ifXEntry: public AgentXSharedTable {public: ifXEntry(const OctetStr&, SubAgentXMib*); virtual ~ifXEntry(); static ifXEntry* instance; virtual void update(Request*);//--AgentGen BEGIN=ifXEntry//--AgentGen END};/** * ifStackEntry * * "Information on a particular relationship between two sub- * layers, specifying that one sub-layer runs on 'top' of the * other sub-layer. Each sub-layer corresponds to a conceptual * row in the ifTable." */class ifStackEntry: public AgentXSharedTable {public: ifStackEntry(const OctetStr&, SubAgentXMib*); virtual ~ifStackEntry(); static ifStackEntry* instance; virtual void update(Request*);//--AgentGen BEGIN=ifStackEntry//--AgentGen END};/** * ifTestEntry * * "An entry containing objects for invoking tests on an * interface." */class ifTestEntry: public AgentXSharedTable {public: ifTestEntry(const OctetStr&, SubAgentXMib*); virtual ~ifTestEntry(); static ifTestEntry* instance; virtual void update(Request*);//--AgentGen BEGIN=ifTestEntry//--AgentGen END};/** * ifRcvAddressEntry * * "A list of objects identifying an address for which the * system will accept packets/frames on the particular * interface identified by the index value ifIndex." */class ifRcvAddressEntry: public AgentXSharedTable {public: ifRcvAddressEntry(const OctetStr&, SubAgentXMib*); virtual ~ifRcvAddressEntry(); static ifRcvAddressEntry* instance; virtual void update(Request*);//--AgentGen BEGIN=ifRcvAddressEntry//--AgentGen END};class if_mib: public MibGroup{ public: if_mib(const OctetStr&, SubAgentXMib*); virtual ~if_mib() { }//--AgentGen BEGIN=if_mib//--AgentGen END};//--AgentGen BEGIN=_END#ifdef AGENTPP_NAMESPACE}#endif//--AgentGen END/** * if_mib.h generated by AgentGen 1.5.2 for AGENT++v3.4 * Wed Feb 28 01:09:22 GMT+01:00 2001. */#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -