diff --git a/pandora_agents/unix/FreeBSD/pandora_agent.conf b/pandora_agents/unix/FreeBSD/pandora_agent.conf index 8aa68016ba..d2648ae96f 100644 --- a/pandora_agents/unix/FreeBSD/pandora_agent.conf +++ b/pandora_agents/unix/FreeBSD/pandora_agent.conf @@ -24,6 +24,10 @@ debug 0 # By default, agent takes machine name #agent_name adama +# To define agent name by specific command, define 'agent_name_cmd'. +# (In the following example, agent name is 'hostname_IP') +#agent_name_cmd /bin/echo -n `hostname` ; /bin/echo -n "_" ; /bin/echo `/sbin/ifconfig bce0 | /usr/bin/grep 'inet' | /usr/bin/awk '{print $2;}' | cut -d: -f2` + #Parent agent_name #parent_agent_name parent_name diff --git a/pandora_agents/unix/Linux/pandora_agent.conf b/pandora_agents/unix/Linux/pandora_agent.conf index 9367c79a6d..026de751e4 100644 --- a/pandora_agents/unix/Linux/pandora_agent.conf +++ b/pandora_agents/unix/Linux/pandora_agent.conf @@ -37,6 +37,10 @@ udp_server_auth_address 0.0.0.0 # By default, agent takes machine name #agent_name adama +# To define agent name by specific command, define 'agent_name_cmd'. +# (In the following example, agent name is 'hostname_IP') +#agent_name_cmd /bin/echo -n `hostname`; /bin/echo -n "_"; /bin/echo `/sbin/ifconfig eth0 | /bin/grep 'inet addr' | /bin/awk '{print $2;}' | /bin/cut -d: -f2` + #Parent agent_name #parent_agent_name caprica