Strange behaviour of the filesystem on FreeBSD-5.5
Hello. -- I have a trouble with /var filesystem on FreeBSD 5.5-RELEASE-p20 (upgraded from 5.2 to 5.3, and then to 5.5 some days ago): 'df -h' shows: Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1d248M138M 90M61%/var 'du -s /var' shows: 28M/var I'm sure, that there can not be 62Mb of technical info on such small partition. So, probably there is a bug in soft-updates, or some another thing, that i can't understand. Free space on /var reduces with time, and after three days there are no free inodes. But after i reboot my machine (and background fsck makes it's job), things are good again, du and df are in agreement about sizes of filesystems. Also i tried to verify, that there are no files, which are deleted, but still occupy place in filesystem (i.e., when some process still use it's filehandle). The output of 'lsof +D /var' shows *only* existent files on /var filesystem. Can anybody, please, give me some advice about how to fix this VERY annoying problem, since this FreeBSD box is our enterprise's router, and i sometimes must go to office and reboot it even on holidays. Maybe, reinstalling everything from scratch would be the simplest thing to do, but i still hope, that somebody can tell me how to fix everything 'in place'. -- Ilya. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: removing a php5-pcre extension
Zbigniew Szalbot writes: Am I safe just deleting it? Or do I have to rebuild all the above listed ports? Leaving it as is is probably not a good idea... Presumably, if you delete it, the listed packages will stop working. One more thought - I commented out the pcre extension in the ini file and restarted apache after which everything seems to be working fine. So I wonder if I am safe to delete it or if not, then how would you advise me to proceed to keep the system clean. Many thanks! As I understand it: a) the port works by installing a library b) dependant ports search for the library, not the port c) if the (exact same) library (as determined by version number) is installed by some other port, the change should be transparent and the dependant ports should and not try to (re)build anything. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: removing a php5-pcre extension
Hello, One more thought - I commented out the pcre extension in the ini file and restarted apache after which everything seems to be working fine. So I wonder if I am safe to delete it or if not, then how would you advise me to proceed to keep the system clean. Many thanks! As I understand it: a) the port works by installing a library b) dependant ports search for the library, not the port c) if the (exact same) library (as determined by version number) is installed by some other port, the change should be transparent and the dependant ports should and not try to (re)build anything. Thank you Robert! It does help a lot. Time to do some cleaning then. :) -- Zbigniew Szalbot www.faitrade.net.pl www.slowo.pl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
7.1 - with x.org 7.4?
Hi, Does anybody out there know if FreeBSD 7.1 will come out with X.org 7.4 (or still 7.3)? Thanks much in advance for any clue, -ewald ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
UPS Gembird 1200VA
hi, i have received an Gembird UPS 1200 VA for one of the servers and i am trying to get it work. The main problem is that the cd came with a compiled aplication for linux and with linux_base-fc8 installed it does not detect it. the apcupsd does not recognize it either. is there a way to make this work under FreeBSD? #usbdevs -d addr 1: UHCI root hub, VIA uhub0 addr 2: UPS USB MON V1.4, ? ugen0 #uname -a FreeBSD bkvideo 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #1: Tue Dec 9 11:23:41 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/BKVIDEO i386 Thank you, -- Octavian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 7.1 - with x.org 7.4?
On Tue, Dec 09, 2008 at 02:17:27PM +0100, Ewald Jenisch wrote: Hi, Does anybody out there know if FreeBSD 7.1 will come out with X.org 7.4 (or still 7.3)? Thanks much in advance for any clue, -ewald X.org 7.4 has not been imported into the ports system yet, and this far into the release process it is too late to update such an important port - too much risk of something going wrong. The X.org port(s) will probably be updated to 7.4 not too long after FreeBSD 7.1 has been released and the dust has settled. -- Insert your favourite quote here. Erik Trulsson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UPS Gembird 1200VA
Octavian Ionescu wrote: hi, i have received an Gembird UPS 1200 VA for one of the servers and i am trying to get it work. The main problem is that the cd came with a compiled aplication for linux and with linux_base-fc8 installed it does not detect it. the apcupsd does not recognize it either. is there a way to make this work under FreeBSD? #usbdevs -d addr 1: UHCI root hub, VIA uhub0 addr 2: UPS USB MON V1.4, ? ugen0 #uname -a FreeBSD bkvideo 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #1: Tue Dec 9 11:23:41 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/BKVIDEO i386 Thank you, I am not familiar with this model, but you could try sysutils/nut. It supports a large number os UPSes. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Intel Pentium Dual Core E5200 and Enhanced Speedstep
On Tue, 9 Dec 2008, Gabriel Lavoie wrote: 2008/12/9 Ian Smith [EMAIL PROTECTED] On Mon, 8 Dec 2008 13:37:09 -0500 Gabriel Lavoie [EMAIL PROTECTED] wrote: [ skipping lots until you've seen how powerd goes on it .. and please drop gmail's HTML attachments on messages to the FreeBSD lists] [EMAIL PROTECTED] ~]$ uname -a FreeBSD headless.mutehq.net 7.0-RELEASE-p6 FreeBSD 7.0-RELEASE-p6 #0: Mon Nov 24 10:59:10 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC amd64 Ok. If updated est code isn't in 7.0p6 you maybe could apply a patch if you won't be upgrading to 7.1, assuming I'm right about recent new code. This looks ungood. You maybe should quote the earlier dmesgs re ACPI too. This sounds like an issue to take to the [EMAIL PROTECTED] list. Hum, about ACPI, if I remember well, there is a BIOS option to enable/disable ACPI 2 tables. I will take a look at that. There may be some BIOS stuff about SpeedStep options too. Basically you should expect FreeBSD to ignore BIOS settings, except how they influence the ACPI implementation, but some BIOSes can contain surprises. Either way, EST isn't functioning, or you'd have a larger range of freqs available than these eight, and milliWatt figures instead of those -1. There's no sign of 2.66GHz either, if that's expected? 2.66 GHz isn't expected, the CPU is an Intel Pentium Dual Core E5200 @ 2.5 GHz. It's one of the newest 45nm CPUs that were released in August 2008. The motherboard is an ASUS P5KPL-CM and the BIOS is updated to the latest version. Cool. I vaguely recall seeing recent est patches for some newer cpus, but not having one myself, I didn't pay much attention. Check the last few months of the freebsd-acpi archives for suitable looking subjects. [..] I found this problem with my machine after I looked at an article telling that the new 45nm Intel CPUs were idling at around 3-4W when Speedstep is decreasing their frequency. And I guess it means that I suspect 3-4W, even per core, would be at a much lower freq than 1GHz, probably nearer the minimum of ~125MHz. I've been running my server at 1.25 GHz all the time since I installed it, which would explain why some compiling jobs were slow! Sure. Why it starts at 50% I don't know, unless something thinks there is a temperature problem? Anyway, you need powerd, and you likely need to check the acpi@ list about getting your EST working .. you may even need a BIOS upgrade or hacking on your ACPI ASL, but hopefully not .. And post them more details; at least the full /var/run/dmesg.boot and the results of 'sysctl hw.acpi dev.cpu' .. saving rounds of questions. About the 50%, if I check the CPU frequency in the BIOS, it is always at 50%, probably because there is not much possible CPU load in configuring it. No, if it were based on load while looking at the BIOS it'd show you the lowest speed for sure. This sounds like a selection more than a report? My Core 2 Duo desktop computer has a similar behaviour if I check the frequency when idle, either under Windows, Linux or in the BIOS. The max CPU frequency is 2.66 GHz and it always idles at 2 GHz. 2GHz is hardly idling .. maybe there's a BIOS option affecting that too, but it should only affect the starting freq, which powerd should ignore. Under powerd it should drop right back at idle. In fact there've been problems with some machines dropping back to 125, 100, even 75MHz under no or very light load, such that interactive responsiveness is shot and some processes needing fast interrupt response (bursts of wifi traffic, for one) have had issues, prompting some recent new work on algorithms for powerd on SMP systems. See cpufreq(4) about all this, and especially you might want to set debug.cpufreq.lowest to some sensible minimum freq, say 3-500MHz? The acpi@ list is really a better place for this; not too many of the heavy hitters there seem to have much spare time to read questions@ and where I'm mostly just an interested bystander, trying to learn :) cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Messenger servers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Dec 8, 2008 at 8:04 AM, Michal Hanula wrote: On Sat, Nov 08, 2008 at 12:37:58PM +1000, Da Rock wrote: I haven't checked the list for around a week- I'm still catching up! :) I'm trying to sort out a messenger server for work purposes, and although I've found a few I'm hoping some input from sysadmins who have deployed these might help our decision. I've found Gale, Jabberd2, OpenFire, and SJECS (Sun Java Communication Suite). Our requirements are for collaboration (multiple users simultaneous chatting together- with audio/video if possible), realtime audio/video (with a preference for audio; ergo video can go to the dogs to maintain audio quality, although a means to adjust this- on the fly if possible- would be useful), and chat. Tall order, eh? Ease of admin would be good, but my main concern is stability and reliability (I'll make up a software solution to administrate if needs be). Take a look at mingle (MUC + jingle) --- this should not depend on the xmpp server you use. As for that, I recommend ejabberd 2 (not yet in ports). I would recommend ejabberd, and I didn't even know there was a 2 version out. We used ejabberd successfully in the past. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEUEARECAAYFAkk+cXsACgkQ3tarMS/wOCz1mwCY3RMammpzlb3zo8PNBdFCd/fB 5QCgiM23ZfaBHVx73j93flb+fOyvAw4= =uHC1 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[FreeBSD 6.2] _IOWR macro
Hi All, I am using the _IOWR macro in a piece of code. Although my structure gets copied to the kernel ok (the states etc are preserved), if I write back to that structure, the changes are not seen in user space. Is there a known bug with this macro for 6.2 and is it fixed in a later release? Best Regards, Brendan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: removing a php5-pcre extension
Zbigniew Szalbot wrote: Hello, Now that pcre is included in the base installation, how do I remove it? $ pkg_delete -nv php5-pcre-5.2.6_2 pkg_delete: package 'php5-pcre-5.2.6_2' is required by these other packages and may not be deinstalled: pear-1.7.2 pear-Auth-1.6.1 pear-Auth_SASL-1.0.2 pear-DB-1.7.13,1 pear-Log-1.10.1 pear-Mail_Mime-1.5.2,1 pear-Mail_mimeDecode-1.5.0 pear-Net_SMTP-1.3.0 pear-Net_Socket-1.0.8 pear-Pager-2.4.6 pecl-filter-0.11.0 php5-extensions-1.2 phpMyAdmin-3.1.0 smarty-2.6.19 pkg_delete: 1 package deletion(s) failed Am I safe just deleting it? Or do I have to rebuild all the above listed ports? Leaving it as is is probably not a good idea... Presumably, if you delete it, the listed packages will stop working. signature.asc Description: OpenPGP digital signature
Re: Unable to load dynamic library '/usr/local/lib/php/20060613/gd.so
On Tue, Dec 9, 2008 at 2:58 AM, Zbigniew Szalbot [EMAIL PROTECTED] wrote: Hi, I have upgraded php to 5.2.8 because of security notices and then got this problem. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/gd.so' - /usr/local/lib/php/20060613/gd.so: Undefined symbol gdImageCreateFromXpm in Unknown on line 0 It comes from one of the php scripts run by cron. I googled and found out Roberto's advice what to do (in short reinstall php5-gd): http://lists.freebsd.org/pipermail/freebsd-questions/2007-May/149974.html It seems to have solved this issue. I am mentioning it in case someone runs across the same problem. Have a nice day! -- I've run across this problem several times while upgrading PHP. You just gotta reinstall the various PHP extensions until it fixes the problem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: removing a php5-pcre extension
Hello, On Tue, Dec 9, 2008 at 11:45, Ivan Voras [EMAIL PROTECTED] wrote: Zbigniew Szalbot wrote: Hello, Now that pcre is included in the base installation, how do I remove it? $ pkg_delete -nv php5-pcre-5.2.6_2 pkg_delete: package 'php5-pcre-5.2.6_2' is required by these other packages and may not be deinstalled: pear-1.7.2 pear-Auth-1.6.1 pear-Auth_SASL-1.0.2 pear-DB-1.7.13,1 pear-Log-1.10.1 pear-Mail_Mime-1.5.2,1 pear-Mail_mimeDecode-1.5.0 pear-Net_SMTP-1.3.0 pear-Net_Socket-1.0.8 pear-Pager-2.4.6 pecl-filter-0.11.0 php5-extensions-1.2 phpMyAdmin-3.1.0 smarty-2.6.19 pkg_delete: 1 package deletion(s) failed Am I safe just deleting it? Or do I have to rebuild all the above listed ports? Leaving it as is is probably not a good idea... Presumably, if you delete it, the listed packages will stop working. One more thought - I commented out the pcre extension in the ini file and restarted apache after which everything seems to be working fine. So I wonder if I am safe to delete it or if not, then how would you advise me to proceed to keep the system clean. Many thanks! -- Zbigniew Szalbot www.faitrade.net.pl www.slowo.pl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: removing a php5-pcre extension
On Tuesday 09 December 2008, Zbigniew Szalbot wrote: Hello, Now that pcre is included in the base installation, how do I remove it? $ pkg_delete -nv php5-pcre-5.2.6_2 pkg_delete: package 'php5-pcre-5.2.6_2' is required by these other packages and may not be deinstalled: pear-1.7.2 pear-Auth-1.6.1 pear-Auth_SASL-1.0.2 pear-DB-1.7.13,1 pear-Log-1.10.1 pear-Mail_Mime-1.5.2,1 pear-Mail_mimeDecode-1.5.0 pear-Net_SMTP-1.3.0 pear-Net_Socket-1.0.8 pear-Pager-2.4.6 pecl-filter-0.11.0 php5-extensions-1.2 phpMyAdmin-3.1.0 smarty-2.6.19 pkg_delete: 1 package deletion(s) failed Am I safe just deleting it? Or do I have to rebuild all the above listed ports? Leaving it as is is probably not a good idea... /usr/ports/UPDATING seems to imply you should be OK to force delete it - 20081207: AFFECTS: users of lang/php5 AUTHOR: [EMAIL PROTECTED] As of php 5.2.7, pcre extension is distributed with the core php5 package, and not as a standalone module anymore. Follow these steps to update your installation: Portupgrade users: pkg_delete -f php5-pcre-5.2.6 pkgdb -F portupgrade as usual -- Mike Clarke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
removing a php5-pcre extension
Hello, Now that pcre is included in the base installation, how do I remove it? $ pkg_delete -nv php5-pcre-5.2.6_2 pkg_delete: package 'php5-pcre-5.2.6_2' is required by these other packages and may not be deinstalled: pear-1.7.2 pear-Auth-1.6.1 pear-Auth_SASL-1.0.2 pear-DB-1.7.13,1 pear-Log-1.10.1 pear-Mail_Mime-1.5.2,1 pear-Mail_mimeDecode-1.5.0 pear-Net_SMTP-1.3.0 pear-Net_Socket-1.0.8 pear-Pager-2.4.6 pecl-filter-0.11.0 php5-extensions-1.2 phpMyAdmin-3.1.0 smarty-2.6.19 pkg_delete: 1 package deletion(s) failed Am I safe just deleting it? Or do I have to rebuild all the above listed ports? Leaving it as is is probably not a good idea... Thanks a lot for your input. If possible, I'd like to keep my system clean without unnecessary ports. -- Zbigniew Szalbot www.faitrade.net.pl www.slowo.pl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: removing a php5-pcre extension
Hello, BTW, wait till php-5.2.8 to do this. I read somewhere that 5.2.7 has security issues, but maybe you know better than I do. Thanks but I know about it. That's why I used ports which have 5.2.8. :) -- Zbigniew Szalbot www.faitrade.net.pl www.slowo.pl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: install freebsd from inside another operating system
Jan Henrik Sylvester wrote: Robin wrote: I'm just wondering if it is possible to install FreeBSD from inside a bootstrap operating system such as a knoppix or ubuntu preinstall? http://www.daemonology.net/blog/2008-01-29-depenguinator-2.0.html Cheers, Jan Henrik well I tried pretty hard with the depenguinator, but it doesn't work for me. I have an 8.10 ubuntu system with swap on sda5. I had to fix a buglet related to ARG_MAX being missing while compiling glob.c, but otherwise the build seemed to work. Have done all the suggested fixes ie making the partition bootable, changing the type to freebsd, but at boot time I get 12 : Invalid device requested.. I suspect there's some residual problem related to not having exactly the same setup as the author's. One thing I noticed is that the bootsector is not built with knowledge of the target partition, but I don't know exactly how I could fix that, but presumably it's supposed to boot as freebsd. I see it sets partition to 4, 5 sectors size. -- Robin Becker ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Intel Pentium Dual Core E5200 and Enhanced Speedstep
2008/12/9 Ian Smith [EMAIL PROTECTED] [ skipping lots until you've seen how powerd goes on it .. and please drop gmail's HTML attachments on messages to the FreeBSD lists] I found the option to disable HTML in the reply. Is it better now? I enabled powerd and it seems to work for now. Ok. If updated est code isn't in 7.0p6 you maybe could apply a patch if you won't be upgrading to 7.1, assuming I'm right about recent new code. I do plan to upgrade to 7.1 when it's out as it will probably include the driver for my onboard network adapter. There may be some BIOS stuff about SpeedStep options too. Basically you should expect FreeBSD to ignore BIOS settings, except how they influence the ACPI implementation, but some BIOSes can contain surprises. Yes, there are options about SpeedStep. I suspect 3-4W, even per core, would be at a much lower freq than 1GHz, probably nearer the minimum of ~125MHz. The 5W consumption isn't even at the lowest speed. The 45nm CPUs are supposed to have an excellent power efficiency. Under Windows/Linux, Enhanced Intel SpeedStep Technology (EIST) doesn't step down the frequency at the lowest value possible. On my C2D (65nm), like I said, it drops to 2 GHz from 2.66. It seems the idle power consumption of those C2D is around 15W. With EIST on the 45nm Intel CPUs, the idle power usage has been tested to be under 4W with a quad-core unit, and this is not at the lowest possible frequency. The 1.25 GHz frequency I see in the BIOS is probably related to the frequency step down EIST automatically does as with my C2D, the BIOS always shows 2 GHz but under Windows/Linux, when the CPU is working, the frequency comes back to 2.66 GHz. I guess that the FreeBSD est driver needs to work with my processor to enable this behaviour. See this: http://www.intel.com/cd/channel/reseller/asmo-na/eng/203838.htm http://www.tomshardware.com/reviews/intel-penryn-4ghz-air-cooling,1712-13.html No, if it were based on load while looking at the BIOS it'd show you the lowest speed for sure. This sounds like a selection more than a report? No, it's a report. 2GHz is hardly idling .. maybe there's a BIOS option affecting that too, but it should only affect the starting freq, which powerd should ignore. The 2 GHz is the stop down EIST does when the CPU is idling. I was surprised to see this when I got my C2D last January. I was wondering why the CPU was at 2 GHz when it was supposed to be running at 2.66 GHz. Under powerd it should drop right back at idle. In fact there've been problems with some machines dropping back to 125, 100, even 75MHz under no or very light load, such that interactive responsiveness is shot and some processes needing fast interrupt response (bursts of wifi traffic, for one) have had issues, prompting some recent new work on algorithms for powerd on SMP systems. I noticed that after I enabled powerd. At 313 MHz with my system the responsiveness took a hit. I enabled powerd with those parameters and it seems to step up the frequency quickly enough. Responsiveness doesn't seems to be a problem with a polling time of 100ms. powerd_flags=-i 90 -r 90 -p 100 See cpufreq(4) about all this, and especially you might want to set debug.cpufreq.lowest to some sensible minimum freq, say 3-500MHz? The acpi@ list is really a better place for this; not too many of the heavy hitters there seem to have much spare time to read questions@ and where I'm mostly just an interested bystander, trying to learn :) I'll ask there if there are still problems after I check my BIOS settings tonight. cheers, Ian Gabriel -- Gabriel Lavoie [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
add/change/delete dhcpd.conf entries
In a DHCP server managing fixed IP addresses, one needs to make changes often: new people need their Mac address given a IP addres, people leaving need to be deleted, people changing an old for a new computer need a Mac address change for the same IP, etc... All this information is recorded in the /usr/local/etc/dhcpd.conf file. I know, there is the omapi command shell (/usr/local/bin/omshell) but as far as I can see, you can only use it interactively. Or am I wrong? I would love to have a simple command line tool that allows you to make changes to your dhcpd.conf file without needing to use an editor or omapi. e.g. for a new entry, something like: # dhcpdmgr -A 175.134.34.128 -c John.Adams PC -i 00:34:1A:23:4A:0F 175.134.34 which would add IP 175.134.34.128 in subnet 175.134.3 for mac address 00:34:1A:23:4A:0F with a comment John.Adams PC and with other options for delete (-D), make changes to comment, IP or Mac, etc... Does anyone have such a command line tool? With that command line tool one can easily make a wrapper script, presenting you with a menu of frequent operations, and with extensive checking of your input data. I use such a wrapper script, making use of Solaris pntadm (DHCP network table management utility) command line tool. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: add/change/delete dhcpd.conf entries
On Tue, Dec 9, 2008 at 8:19 PM, Pieter Donche [EMAIL PROTECTED]wrote: In a DHCP server managing fixed IP addresses, one needs to make changes often: new people need their Mac address given a IP addres, people leaving need to be deleted, people changing an old for a new computer need a Mac address change for the same IP, etc... All this information is recorded in the /usr/local/etc/dhcpd.conf file. I know, there is the omapi command shell (/usr/local/bin/omshell) but as far as I can see, you can only use it interactively. Or am I wrong? I would love to have a simple command line tool that allows you to make changes to your dhcpd.conf file without needing to use an editor or omapi. e.g. for a new entry, something like: # dhcpdmgr -A 175.134.34.128 -c John.Adams PC -i 00:34:1A:23:4A:0F 175.134.34 which would add IP 175.134.34.128 in subnet 175.134.3 for mac address 00:34:1A:23:4A:0F with a comment John.Adams PC and with other options for delete (-D), make changes to comment, IP or Mac, etc... Does anyone have such a command line tool? Webmin will easily allow you to do that! Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Okay guys. This is Kenya. You pay taxes because you feel philanthropic, unlike our MPs! -- Kenneth Marende, Speaker, 10th Parilament. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PHP 5 not updating
I have ran portsnap fetch and portsnap update when I run portupgrade -rR php5 I receive this error: locutus# portupgrade -rR php5 [Gathering depends for lang/php5 done] [Gathering depends for databases/php5-pdo .. done] [Gathering depends for lang/php5-extensions /usr/local/lib/ruby/1.8/set.rb:257:in `merge': value must be enumerable (ArgumentError) from /usr/local/sbin/portupgrade:874:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:189:in `each' from /usr/local/lib/ruby/1.8/set.rb:189:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:189:in `each' from /usr/local/sbin/portupgrade:873:in `get_all_depends' from /usr/local/sbin/portupgrade:874:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:189:in `each' from /usr/local/lib/ruby/1.8/set.rb:189:in `each_key' ... 16 levels... from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2208 I have rerun portsnap fetch and portsnap update and still get same results Any idea what is causing this and how to fix it? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD update warns about 7.0 end of life
When running freebsd-update on FreeBSD 7.0, I noticed this message: WARNING: FreeBSD 7.0-RELEASE is approaching its End-of-Life date. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD update warns about 7.0 end of life
Joe S writes: When running freebsd-update on FreeBSD 7.0, I noticed this message: WARNING: FreeBSD 7.0-RELEASE is approaching its End-of-Life date. Key concept: RELEASE. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
wireless scan: 'ifconfig iface scan' hangs often
I use wireless with this device: ath0: Atheros 5212 mem 0xcffe-0xcffe irq 16 at device 5.0 on pci0 and very often (most of the times) 'ifconfig ath0 scan' hangs. First time I do scan it usually succeeds but the second and subsequent runs of this command hang in 50+% of cases. It hangs equally when I am trying to run this command when network is associated and running and down. Is this a bug in driver or what the problem might be? Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wireless scan: 'ifconfig iface scan' hangs often
Em Ter, 2008-12-09 às 12:31 -0800, Yuri escreveu: I use wireless with this device: ath0: Atheros 5212 mem 0xcffe-0xcffe irq 16 at device 5.0 on pci0 and very often (most of the times) 'ifconfig ath0 scan' hangs. First time I do scan it usually succeeds but the second and subsequent runs of this command hang in 50+% of cases. It hangs equally when I am trying to run this command when network is associated and running and down. Is this a bug in driver or what the problem might be? Yuri Hello Yuri try using ifconfig ath0 list scan it will list the contents of the cache in the sip and never hangs ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wireless scan: 'ifconfig iface scan' hangs often
Sérgio de Almeida Lenzi wrote: try using ifconfig ath0 list scan it will list the contents of the cache in the sip and never hangs Sérgio, This works but what if I need to update cache? Cache update hangs. Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wireless scan: 'ifconfig iface scan' hangs often
As long as I understand, the chip updates the cache by its self.. so there is no need to deal with the worry about the chip... see options bgscan of ifconfig Hope this will help ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
bashrc configuration question: syntax error: unexpected end of file
Hi there, I am unable to figure out why I am getting the following error: -bash: /Users/user/.bashrc: line 10: syntax error: unexpected end of file localhost:~ user$ Here are the relevant hask configuration files -- localhost:~ user$ cat .bash_profile if [ -f ~/.bashrc ]; then source ~/.bashrc fi localhost:~ user$ cat .bashrc #nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi localhost:~ user$ --- snip --- Cheers, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bashrc configuration question: syntax error: unexpected end of file
On Tue, 09 Dec 2008 13:28:11 -0800, Noah [EMAIL PROTECTED] wrote: Hi there, I am unable to figure out why I am getting the following error: -bash: /Users/user/.bashrc: line 10: syntax error: unexpected end of file localhost:~ user$ The only thing that comes into my mind is this line from your .bash_profile: source ~/.bashrc I'm not sure, but according to the builtin manpage, sh does not understand source, so maybe bash doesn't, too? For file inclusion, . is the correct form as it occurs in your .bashrc file. By the way, it would be good if you would include line numbers, using cat -n filename. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bashrc configuration question: syntax error: unexpected end of file
On Tue, 09 Dec 2008 13:28:11 -0800 Noah [EMAIL PROTECTED] wrote: Hi there, I am unable to figure out why I am getting the following error: -bash: /Users/user/.bashrc: line 10: syntax error: unexpected end of file localhost:~ user$ Here are the relevant hask configuration files -- localhost:~ user$ cat .bash_profile if [ -f ~/.bashrc ]; then source ~/.bashrc fi localhost:~ user$ cat .bashrc #nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi localhost:~ user$ --- snip --- I once had a similar problem; however the line number given had nothing to do with where the actual error was. In my case, I had a duplicate ';' I believe located in the file. You will probably have to go through the file line by line to locate the problem. Perhaps commenting out sections and seeing if the problem continues might help. -- Jerry [EMAIL PROTECTED] It destroys one's nerves to be amiable every day to the same human being. -- Benjamin Disraeli signature.asc Description: PGP signature
Re: bashrc configuration question: syntax error: unexpected end of file
Noah wrote: I am unable to figure out why I am getting the following error: -bash: /Users/user/.bashrc: line 10: syntax error: unexpected end of file [...] localhost:~ user$ cat .bashrc #nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } The } is a statement, and must be preceded with a newline or a ;. Try: nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}'); } or nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } Everything that follows right now is part of the definition of nc_fix(). When you get to the end of the file, it says Hey! I'm still defining a function! -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley pgp8Ud6NqCehN.pgp Description: PGP signature
Re: bashrc configuration question: syntax error: unexpected end of file
Hi there, Christopher Cowart wrote: A couple more things I noticed after looking more closely at your actual command: Christopher Cowart wrote: nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') ^ this is equivalent to: $(ps auxwww | awk '/[nN]cproxyd/ {print $2}') } You might also want to check out pkill(1): $ sudo pkill -9 '[nN]cproxyd' And as an alias: $ alias nc_fix=sudo pkill -9 '[nN]cproxyd' okay cool, arent there two ways to get nc_fix defined in the .bashrc option 1: like as a function: nc_fix() { sudo kill -9 $(ps auxwww | awk '/[nN]cproxyd/ {print $2}') } option 2: as an alias: alias nc_fix=sudo pkill -9 '[nN]cproxyd' right, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bashrc configuration question: syntax error: unexpected end of file
Hi, Christopher Cowart wrote: Noah wrote: I am unable to figure out why I am getting the following error: -bash: /Users/user/.bashrc: line 10: syntax error: unexpected end of file [...] localhost:~ user$ cat .bashrc #nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } The } is a statement, and must be preceded with a newline or a ;. Try: nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}'); } or nc_fix() { sudo kill -9 $(ps auxwww | grep [nN]cproxyd | awk '{print $2}') } Everything that follows right now is part of the definition of nc_fix(). When you get to the end of the file, it says Hey! I'm still defining a function! Christopher - you are the winner. Please pick up your consolation prize at the door :) Cheers, noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
/var/yp/securenets and ipv6?
Hello all... I searched for this everywhere and I guess it's a question that's never been asked. What's the syntax under FreeBSD for ipv6 addresses in securenets? Please reply off-list. -Dan Mahoney -- Dan Mahoney Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: QEMU: increase image size with FreeBSD partitions ...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On Tuesday, December 09, 2008 10:15:45 +0100 Ivan Voras [EMAIL PROTECTED] wrote: Marc G. Fournier wrote: I have FreeBSD 7 running in a QEMU VM ... works like a charm, but I'm wondering if there is some way of *increasing* the size of the image beyond what I configured it for? I'm only finding stuff pertaining to NTFS/FAT32, but nothing about Unix in general, or FreeBSD specifically ... Is there any way of doing this, or do I have to build a new, larger img, and copy the data from diskA - diskB, and reboot on diskB? Doable, but time consuming ... I don't think there's anything automatic but you can grow the virtual disk, then modify the last partition size by hand, then use growfs. 'k, that is what I figured, but how do I grow the virtual disk? I've checked the qemu-img man page, and there doesn't appear to be a method of doing this ... - -- Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org) Email . [EMAIL PROTECTED] MSN . [EMAIL PROTECTED] Yahoo . yscrappy Skype: hub.orgICQ . 7615664 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkk/KvoACgkQ4QvfyHIvDvOEfQCghv9LtctUGSuagAlFbcEoNrWu udMAnixLBpCcfwOTUVkhjep/2dQSzNaD =YjqB -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portaudit -solved
Thank you Sahil Tandon I have solved the problem. My ISP uses proxy for http (I think) as I have closed off port 80 and opened port 8080, and that has got me to the web with no problem. I have also been able to use ports installation with my ipf firewall setup, so I could not understand why portaudit command failed. I have now opened up port 80 and get the thing working. Your message got me thinking in this direction as you confiremed that the file is from http://www.FreeBSD.org/ports. Once again thanks and apologies for the late reply. On Mon, 8 Dec 2008, Sahil Tandon wrote: Richard KHOO Guan Chen wrote: I have recently installed 6.4 release and tried to do a portausidt -F. No go reply was that auditfile.tbz unavailable. By default, portaudit fetches the database from www.FreeBSD.org/ports. What is the output of the following commands on your machine? % wget http://www.FreeBSD.org/ports/auditfile.tbz % fetch -1amp http://www.FreeBSD.org/ports/auditfile.tbz Have you created or modified /usr/local/etc/portaudit.conf? -- Sahil Tandon [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Locked myself out.. AGAIN!!
On Mon, 08 Dec 2008 08:30:54 -0500 michael [EMAIL PROTECTED] wrote: does remote machine have ipmi? indeed..or iLO or serial console... you'd be surprised the number of dedicated servers on offer that don't have any out of band access available... i guess it's the option everyone wants once we've been burnt ;) B _ {Beto|Norberto|Numard} Meijome My wish is that your day will be a good one. If not... May the fleas of one thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch. I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
USB Keyboard is not working with a custom kernel
Hello list, I've custom-built a kernel for a FreeBSD 7.0-STABLE amd64 system. The kernel file (/sys/amd64/conf/KERNEL) is shown below: *** START OF FILE ** machine amd64 cpu HAMMER ident KERNEL maxusers1024 # Mandatory options options SCHED_ULE # SMP options SMP # CPU frequency control device cpufreq # Memory (Adjusted for 4GB RAM for AMD64) options MAXDSIZ=(1536UL*1024*1024)# 1.5GB for data options MAXSSIZ=(256UL*1024*1024) # 256MB for stack options DFLDSIZ=(1536UL*1024*1024)# Set default data size to 1.5GB # Configuration options KSE options PREEMPTION options PANIC_REBOOT_WAIT_TIME=30 options COMPAT_43 options SYSVSHM options SYSVSEM options SYSVMSG options _KPOSIX_PRIORITY_SCHEDULING options ADAPTIVE_GIANT # Screen, Keyboard Mouse options MAXCONS=4 # File System options FFS options CD9660 options PROCFS options PSEUDOFS options SOFTUPDATES options UFS_DIRHASH options UFS_GJOURNAL # Filesystems, Samba/CIFS shares options NETSMB # SMB/CIFS requester options LIBMCHAIN # mbuf management library options LIBICONV options SMBFS options NFSSERVER options NFSCLIENT options NFSLOCKD # Networking options INET options ACCEPT_FILTER_DATA # All devices (Network, SCSI, Disks, Interface, ...) device miibus device bge device sio device fdc device ata device atadisk device atapicd device atapifd device loop device ether device isa device eisa device pci device agp device random device scbus device da device cd device ciss # Screen, Keyboard Mouse device atkbdc device atkbd device psm device vga device sc device uhci# UHCI PCI-USB interface device ohci# OHCI PCI-USB interface device ehci# EHCI PCI-USB interface (USB 2.0) device usb # USB Bus (required) device ukbd# Keyboard device ugen# Generic device uhid# Human Interface Devices # Misc device acpi device pass device pty device snp device speaker * END OF FILE ** With this kernel, whenever I connect a USB keyboard, I see on the console an alert (USB keyboard device this and that, connected to ) and even the make/model of the keyboard is shown, but the keyboard doesn't work. The Num/Caps locks work (I mean, the light on the keyboard alternates between ON/OFF whenever press on the keys). Anyone knows what's the problem? And how to fix it? Thanks in advance. Noor ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
behavioral change of read builtin for sh on 8-CURRENT
I've noticed a behavioral difference of the read builtin statement within /bin/sh on CURRENT and I'm hoping someone can point me in the right direction on how to restore the old behavior. I have a /bin/sh script that accepts input for IP address information: #!/bin/sh set -x DEFINT=vr0 DEFIP=192.168.0.1 DEFMASK=255.255.255.0 read -p Enter network interface [$DEFINT]: -t 5 INT read -p Enter IP address [$DEFIP]: -t 5 IP read -p Enter netmask [$DEFMASK]: -t 5 MASK echo ${INT:=$DEFINT} : ${IP:=$DEFIP}/${MASK:=$DEFMASK} This script waits for terminal input for each of the above variables (INT, IP, MASK) and defaults to a script-provided value if no input is entered in 5 seconds for each variable. On 6.x and 7.x if I simply hit Enter at the prompt (and don't provide any input) no value is assigned to the variable so my INT, IP, and MASK variables are set to null and the parameter substitution of the DEF* variables works as expected. On 8-CURRENT if I hit Enter with no input at the prompt the system seems to recognize the newline as input and continues to sit there until I hit Enter again. When I do this there appears to be a strange unprintable value assigned to the INT, IP, and MASK variables yet the variable subsitution doesn't work correctly. The man page on sh lists the following behavior for read: read [-p prompt] [-t timeout] [-er] variable ... The prompt is printed if the -p option is specified and the stan- dard input is a terminal. Then a line is read from the standard input. The trailing newline is deleted from the line and the line is split as described in the section on White Space Splitting (Field Splitting) above, and the pieces are assigned to the variables in order. If there are more pieces than variables, the remaining pieces (along with the characters in IFS that sepa- rated them) are assigned to the last variable. If there are more variables than pieces, the remaining variables are assigned the null string. As I interpret this, read should delete the trailing newline and assign a null value since there is is no input before the newline. Then the variable substitution should take over and assign the DEF* variables appropriately. 6 and 7 follow this but 8 does not. Here's the output of the script (with set -x) to help show what I'm seeing. This is on 6 and 7: + DEFINT=vr0 + DEFIP=192.168.0.1 + DEFMASK=255.255.255.0 + read -p Enter network interface [vr0]: -t 5 INT Enter network interface [vr0]: + read -p Enter IP address [192.168.0.1]: -t 5 IP Enter IP address [192.168.0.1]: + read -p Enter netmask [255.255.255.0]: -t 5 MASK Enter netmask [255.255.255.0]: + echo vr0 : 192.168.0.1/255.255.255.0 vr0 : 192.168.0.1/255.255.255.0 And this is what I see with 8: + DEFINT=vr0 + DEFIP=192.168.0.1 + DEFMASK=255.255.255.0 + read -p Enter network interface [vr0]: -t 5 INT Enter network interface [vr0]: + read -p Enter IP address [192.168.0.1]: -t 5 IP Enter IP address [192.168.0.1]: + read -p Enter netmask [255.255.255.0]: -t 5 MASK Enter netmask [255.255.255.0]: /: cho /: Strange that the echo statement is missing the first e character in the debug output. Even stranger on 8-CURRENT, if I *do* enter input before the newline (say I change the IP address or the network interface), the first character is not echoed back to the screen but is still saved to the variable. Here's an example when I run the script and provide input at each prompt: + DEFINT=vr0 + DEFIP=192.168.0.1 + DEFMASK=255.255.255.0 + read -p Enter network interface [vr0]: -t 5 INT Enter network interface [vr0]: r0 + read -p Enter IP address [192.168.0.1]: -t 5 IP Enter IP address [192.168.0.1]: 92.168.0.1 + read -p Enter netmask [255.255.255.0]: -t 5 MASK Enter netmask [255.255.255.0]: 55.255.255.0 + echo br0 : 192.168.0.1/255.255.255.0 br0 : 192.168.0.1/255.255.255.0 + echo ifconfig br0 inet 192.168.0.1 netmask 255.255.255.0 Notice that when I'm prompted, the first character doesn't echo but is still saved in the variable. Does anyone else see this same behavior? Any ideas on how to reset it back to how it works in STABLE? I'm not doing anything special with IFS so I'm stumped on how to troubleshoot this. Thanks, Proto ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re[4]: bin/129027: ambigious output for top(1)
Здравствуйте, Remko. Вы писали 10 декабря 2008 г., 6:12:58: RL Send questions to [EMAIL PROTECTED] RL Thnx RL Verstuurd vanaf mijn iPhone RL Op 9 dec 2008 om 22:34 heeft KES [EMAIL PROTECTED] het volgende RL geschreven:\ Здравствуйте, Remko. Вы писали 21 ноября 2008 г., 10:36:10: rFo Synopsis: ambigious output for top(1) rFo State-Changed-From-To: open-closed rFo State-Changed-By: remko rFo State-Changed-When: Fri Nov 21 08:36:09 UTC 2008 rFo State-Changed-Why: rFo This is not a PR, this is a user question, which has an anwer already. rFo Thanks for reporthing this, though I will be closing the ticket. rFo http://www.freebsd.org/cgi/query-pr.cgi?pr=129027 man top .. -C Toggle CPU display mode. By default top displays the weighted CPU percentage in the WCPU column (this is the same value that ps(1) displays as CPU). Each time -C flag is passed it toggles between raw cpu mode and weighted cpu mode, showing the CPU or the WCPU column respectively. This is not descriptive enough. After reading this I have still have questions: 1. What is weighted CPU percentage? 2. What does ps(1) display as CPU ... (visible only on SMP systems), TIME is the number of system and user cpu seconds that the process has used, WCPU, when displayed, is the weighted cpu percentage (this is the same value that ps(1) displays as CPU), CPU is the raw percentage and is the field that is sorted to determine the order of the processes, and COMMAND is the name of the NOTICE: this will be better to describe one parameter per paragraph TIME the number of system and user cpu seconds that the process has used WCPU the weighted cpu percentage (average CPU usage by process per minute) CPU the momentary/instant? percentage of CPU usage by process (Default sorted by this column) COMMAND . 2. Here in both cases 0% idle. Neither CPU neither WCPU does not show processes which take all processor time. CPU: 92.2% user, 0.0% nice, 7.5% system, 0.4% interrupt, 0.0% idle Mem: 258M Active, 95M Inact, 112M Wired, 15M Cache, 60M Buf, 8516K Free Swap: 2048M Total, 748K Used, 2047M Free PID USERNAMETHR PRI NICE SIZERES STATETIMECPU COMMAND 4686 mysql38 40 54716K 25944K sbwait 9:11 15.28% mysqld 37959 root 1 960 15412K 12880K RUN 0:00 1.81% objcopy 37956 root 1 960 21692K 19152K RUN 0:02 0.93% cc1 37911 root 1 440 3532K 2080K RUN 0:00 0.20% top 37957 root 1 -80 2912K 1236K piperd 0:00 0.05% as 37951 root 1 80 3496K 1312K wait 0:00 0.05% sh CPU: 93.7% user, 0.0% nice, 6.3% system, 0.0% interrupt, 0.0% idle Mem: 256M Active, 92M Inact, 111M Wired, 15M Cache, 60M Buf, 13M Free Swap: 2048M Total, 748K Used, 2047M Free Displaying WCPU PID USERNAMETHR PRI NICE SIZERES STATETIME WCPU COMMAND 4686 mysql38 40 54716K 25936K sbwait 9:11 20.31% mysqld 37996 root 1 960 13572K 10644K RUN 0:00 0.63% cc1 37983 root 1 -80 3936K 1692K piperd 0:00 0.54% as 37911 root 1 440 3532K 2076K RUN 0:00 0.20% top 37997 root 1 -80 2912K 1004K piperd 0:00 0.05% as 212 root 1 440 3180K 980K select 7:40 0.00% syslogd 46720 root 1 440 9192K 4520K RUN 3:48 0.00% verlihub Can you answer, which? -- С уважением, KES mailto:[EMAIL PROTECTED] -- С уважением, KES mailto:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]