PP-489: Daemons should log hostname and interface information
Interface: As an admin, I would like to have the daemons log hostname an interface info each time the log file gets opened.
Visibility: Public
Change Control: Stable
Details: Daemons log hostname and interface information whenever a new log file is opened, on HUP, etc.
So that user can know easily and for sure which host produced a log file he is looking at.
Both PBS_LEAF_NAME and PBS_MOM_NODE_NAME are logged along with hostname.
All the possible names that the host could be known as based on the visible interfaces will be listed.
These will get displayed in the line after pbs_build.
Sample Log:
11/11/2016 17:56:31;0002;pbs_mom;Svr;Log;Log opened
11/11/2016 17:56:31;0002;pbs_mom;Svr;pbs_mom;pbs_version=14.1.0
11/11/2016 17:56:31;0002;pbs_mom;Svr;pbs_mom;pbs_build=mach=N/A:security=N/A:configure_args=N/A
11/11/2016 17:56:31;0002;pbs_mom;Svr;pbs_mom;hostname=vbox,pbs_leaf_name=N/A,pbs_mom_node_name=N/A
11/11/2016 17:56:31;0002;pbs_mom;Svr;pbs_mom;ipv4 interface lo: localhost localhost.localdomain localhost4 localhost4.localdomain4
11/11/2016 17:56:31;0002;pbs_mom;Svr;pbs_mom;ipv4 interface eno15654763: vbox
11/11/2016 17:56:31;0002;pbs_mom;Svr;pbs_mom;ipv4 interface enp0s8: otherinterface.xyz.pbspro.com otherinterface
11/11/2016 17:56:31;0002;pbs_mom;Svr;pbs_mom;ipv6 interface lo: localhost localhost.localdomain localhost6 localhost6.localdomain6
11/11/2016 17:56:31;0100;pbs_mom;Svr;parse_config;file config
.................................................................................................................
.................................................................................................................
.................................................................................................................