system¶
Module for system identifying information.
This module provides access to important identifying information of the system, similar to what is available from the ‘show version’ and ‘show hostname’ CLI commands.
-
namespace
eos
-
class
system_handler
: public eos::base_handler<system_mgr, system_handler>¶ - #include <system.h>
Handler class for changes in system identifying information.
Public Functions
-
explicit
system_handler
(system_mgr*)¶
-
inline system_mgr *
get_system_mgr
() const¶ Returns the associated system_mgr.
-
virtual void
on_fqdn
(std::string const&)¶ Handler called when the fully qualified domain name changes.
-
virtual void
on_system_info_initialized
()¶ Handler called once the system identifying information is set.
The on_system_info_initialized() method will be called when the serial_number and model_name have been discovered and are accessible via the system_mgr class.
-
explicit
-
class
system_mgr
: public eos::base_mgr<system_handler>¶ - #include <system.h>
A manager for identifying information of the system.
Create one of these via eos::get_system_mgr() prior to starting the agent main loop. When your eos::agent_handler::on_initialized virtual function is called, the manager is valid for use.
Public Functions
-
virtual
~system_mgr
()¶
-
virtual eos::eth_addr_t
system_mac
() const = 0¶ Returns the system MAC address.
Protected Functions
-
system_mgr
()¶
Private Members
-
system_mgr
Friends
- friend class system_handler
-
virtual
-
class