First up, I've read through the documentation, but apologies if I ask any questions that are explained already.
There are a few options I'd like to look at customising, so I wan't to ask what is / isn't possible with BGINFO4X.
Firstly, are we able to output the following:
Boot time / Uptime
Total Disk space (in addition to the existing free space)
Are we able to output generic text - e.g. if we want to add text notes for a particular server, such as it's role / purpose which we would edit manually on a server by server basis?
Formatting
Can we implement carriage returns / line breaks between outputs - e.g. IP address, MAC address, Free Disk etc. so each value is displayed on a new line?
The reason I ask is that I've found some servers with multiple NIC's can generate a wall of text with MAC addresses etc. all on the same line, which forces the formatting to move the text across the screen - as a result, I've had to disable the MAC output of BGINFO4X despite it being useful info to have.
Finally, thanks for providing an open sourced replacement for BGINFO - especially as a multi platform solution, it's much appreciated.
Regards
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you look the file CUSTOM/CLIENT/WINDOWS/OUT.CONF you will find some predefined functions. Commented functions start with #, Uncomment it to use them.
For example,
#Uptime: X net statistics server | sed -n '4p' | cut -d ' ' -f 3-
But in fact the uptime/boottime depends of the windows version, check the correct way to get it on google.
Total Disk (MB): X wmic logicaldisk get Caption,Size | grep -i -v "caption" | grep -v "^$" | awk '{print $1 " " ($2 / (1024 * 1024))}' | tr '\n' ' '
Respect your question about formatting: yes. Each line in OUT.CONF is a new line. Review the IP line, MAC line ...
Thanks for your comments.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2013-09-06
Thanks very much for the info, I can't believe I missed out the uptime function (my bad!)
In regards to the formatting question, I may not have worded myself clearly - I'm looking to separate each returned value for IP address / MAC address etc, so not all displayed on a single line, e.g.
192.168.1.1
192.168.1.2
192.168.1.3
as opposed to 192.168.1.1 192.168.1.2 192.168.1.3
Is this possible?
Thanks again for the (very quick) reply!
Kind regards
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you are playing with the options, try the new feature "reload configuration" from the bginfo4x-menu. It will reload bginfo immediately rereading the configuration files.
Find it the last 3.0.8. release.
Regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2013-10-17
Hello again,
Thanks, the formatting has worked well & the reload configuration option is rather useful, saves me having to have the timer at a short interval for testing.
One final question (I promise!)
If I just want to add some plain custom text to the output, e.g. notes for a particular server, such as it's role / purpose which we would edit manually on a server by server basis, how could I achieve this?
Thanks again for all the help & assistance
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
First up, I've read through the documentation, but apologies if I ask any questions that are explained already.
There are a few options I'd like to look at customising, so I wan't to ask what is / isn't possible with BGINFO4X.
Firstly, are we able to output the following:
Boot time / Uptime
Total Disk space (in addition to the existing free space)
Are we able to output generic text - e.g. if we want to add text notes for a particular server, such as it's role / purpose which we would edit manually on a server by server basis?
Formatting
Can we implement carriage returns / line breaks between outputs - e.g. IP address, MAC address, Free Disk etc. so each value is displayed on a new line?
The reason I ask is that I've found some servers with multiple NIC's can generate a wall of text with MAC addresses etc. all on the same line, which forces the formatting to move the text across the screen - as a result, I've had to disable the MAC output of BGINFO4X despite it being useful info to have.
Finally, thanks for providing an open sourced replacement for BGINFO - especially as a multi platform solution, it's much appreciated.
Regards
Tony
Hello,
If you look the file CUSTOM/CLIENT/WINDOWS/OUT.CONF you will find some predefined functions. Commented functions start with #, Uncomment it to use them.
For example,
#Uptime: X net statistics server | sed -n '4p' | cut -d ' ' -f 3-
But in fact the uptime/boottime depends of the windows version, check the correct way to get it on google.
There is also an external tool that can be integrated easily with bginfo4x: http://support.microsoft.com/kb/232243
Free disk / Total disk is also predefined but commented:
Free Disk (MB): X wmic logicaldisk get Caption,FreeSpace | grep -i -v "caption" | grep -v "^$" | awk '{print $1 " " ($2 / (1024 * 1024))}' | tr '\n' ' '
Total Disk (MB): X wmic logicaldisk get Caption,Size | grep -i -v "caption" | grep -v "^$" | awk '{print $1 " " ($2 / (1024 * 1024))}' | tr '\n' ' '
Respect your question about formatting: yes. Each line in OUT.CONF is a new line. Review the IP line, MAC line ...
Thanks for your comments.
Thanks very much for the info, I can't believe I missed out the uptime function (my bad!)
In regards to the formatting question, I may not have worded myself clearly - I'm looking to separate each returned value for IP address / MAC address etc, so not all displayed on a single line, e.g.
192.168.1.1
192.168.1.2
192.168.1.3
as opposed to 192.168.1.1 192.168.1.2 192.168.1.3
Is this possible?
Thanks again for the (very quick) reply!
Kind regards
Tony
Hello,
This is very easy. Remove the last part of the function IP -> "| tr '\n' ' '" as:
IP Address: X ipconfig -all | grep -i "ip" | grep -E -o "[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}"
It will do wat you want. The same for any function -> MAC, ...
Regards.
Hello,
If you are playing with the options, try the new feature "reload configuration" from the bginfo4x-menu. It will reload bginfo immediately rereading the configuration files.
Find it the last 3.0.8. release.
Regards.
Hello again,
Thanks, the formatting has worked well & the reload configuration option is rather useful, saves me having to have the timer at a short interval for testing.
One final question (I promise!)
If I just want to add some plain custom text to the output, e.g. notes for a particular server, such as it's role / purpose which we would edit manually on a server by server basis, how could I achieve this?
Thanks again for all the help & assistance
Tony
Hello,
Edit your OUT.CONF and add a line like:
My role: X echo "my role is ...."
But it is better to find for the appropiate role function with powershell for example and use the function everywhere.
My role: X powershell "myrole.ps" ...
You can ask all what you want. This is a forum.
Regards.