Hot answers tagged

15

I see some confusion going on in the answers here. For starters, ntpclient, at least in -s mode, isn't acting as a full NTP client, it's only sending and receiving one packet, so there's no "last 8 packets received". It isn't actually estimating its own dispersion at all. Instead, the value it's printing is the value called "root dispersion" (rootdisp) in ...


12

Just a partial answer for "What is dispersion?": A typical NTP round trip: client | | server t1 |------->| t2 t3 |<-------| t4 This yields two values, offset (the time difference between client and server), and the delay (essential the network travel time) with the following formulas: offset= ((t4 - t3) + (t1 - t2)) / 2 delay = (...


11

The default shell in busyboxy is ash


7

You can find the equivalent information in slightly uglier form (a.k.a. hexadecimal) in /proc/net/tcp. There, you can find the inode of the connection, which you can look up under /proc/$pid/fd/. For example: $ cat /proc/net/tcp sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode 0: 00000000:0016 00000000:...


7

Your dispersion and skew are enormous, there is a very large offset from the local clock to that peer. You should compare the offsets with the local date and set the clock manually. Get ntpd running and show ntpq -p from a host using all of the peers. It will select the better ones.


5

The usage for the ESXi ftpput is Usage: ftpput [options] remote-host remote-file local-file Store a local file on a remote machine via FTP Options: -v,--verbose Verbose -u,--username Username -p,--password Password -P,--port Port number ftpput is telling you (correctly) that there is no local /Backup file on ...


5

According to the this cisco documentation, "dispersion, reported in seconds, is the maximum clock time difference that was ever observed between the local clock and server clock". With ntp servers that are not totally broken, a high dispersion should never occur. The only feasible scenario is when your client inits ntp and so far has only its local clock ...


4

Busybox can be compiled with ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS which will enable nice among others. Then you can do, for example: busybox ps -o pid,nice,user,args POSIX user, group, comm, args, pid, ppid, pgid, tty, vsz ENABLE_FEATURE_PS_TIME etime, time ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS nice, rgroup, ruser, pcpu (although pcpu seems ...


4

The angle bracket means "high-priority". See "man ps" for more details: PROCESS STATE CODES D uninterruptible sleep (usually IO) R runnable (on run queue) S sleeping T traced or stopped Z a defunct ("zombie") process For BSD formats and when the "stat" keyword is used, additional letters can be displayed: W has ...


3

There's an easier way to configure remote syslogging that is even supported by VMware. Within the VIC, select the ESXi server, then the "Configuration" tab. From there, choose "Advanced Settings" and look for "Syslog" in the left-hand tree. Enter your syslog destination within the setting "Syslog.Remote.Hostname". Click OK and verify logs are making it ...


3

The current busybox version for the latest release of Diablo (43-7) is 1.6.1, which as you've seen doesn't include options for colour. A fully coloured version of ls can be installed on the n810 from Andrey's repository. If you don't wish to install and use this repository you can install ls-color manually by downloading and using dpkg -i. Then as x3ja ...


3

ls --color doesn't work? I thought it was supposed to on the more recent versions. http://www.busybox.net/downloads/BusyBox.html


3

You can use mkswap to create a swap file or disk and then use swapon on it. If you don't want to format your whole device to swap, you can simply create a file of desired size, e.g. with dd if=/dev/zero of=yourswap bs=1 count=N, where N is number of bytes.


3

Unfortunately there is no way to install curl on a standard Mikrotik installation. The only way to make http requests from a vanilla mikrotik installation is using fetch as you already found. But it does not support POST requests, only GET. There are a couple solutions to this problem depending on your situation. If you are using 5.x version on an x86 ...


3

/proc/loadavg and /proc/meminfo should be available, so you could do cat /proc/loadavg cat /proc/meminfo in a small script and process it.


2

Compile e2fsprogs with static linking and choose the binaries you need from it. You probably only need mke2fs (which makes all kinda of EXT series file systems - mkfs.ext4 is just a symlink to it. If you can't get static compiling to work, "ldd mke2fs" will at least show which libearies you need to install.


2

Starting investigations on the topic I discovered with strace that changing the broadcast address with ifconfig leads to a supplementary ioctl() call (SIOCSIFBRDADDR - Set InterFace BRoadcast ADDRess) that doesn't appear in the normal trace when you leave out the broadcast parameter. So it looks like that ifconfig doesn't deal with the broadcast address in ...


2

If you have the toolchain for that router, you can statically compile Dropbear. That would be best for this situation since, based on the fact that it uses Busybox, resources are already strained.


2

The connection is closed because calling /bin/busybox just shows you the output you see but won't start a shell session (try it in a terminal). You need to create a symlink /usr/bin/ash -> /bin/busybox and call /usr/bin/ash to start a busybox shell. You'll probably have to fix this via a rescue system in order to change it back.


1

I'm not sure why the other user was voted down. The correct syntax for my Huawei HG610 router is exactly as he says. For example: wget -g -v -l /tmp/test.html -r / 192.168.0.11 The above will retrieve the page at http://192.168.0.11/ and save it to /tmp/test.html


1

The current source code for busybox halt indicates the delay is in seconds. If you wanted to test it explicitly, you could run with a delay of 300, and if the system hasn't halted after 5 minutes, you know it's measured in minutes instead of seconds.


1

Does your system have "dpkg" installed? If so, installing the .deb package is as simple as: dpkg -i my_package.deb If dpkg is NOT installed, then I'm afraid this won't be a simple task, as apt-get depends on dpkg for most of its operations.


1

You need dpkg to ignore dependencies, use the following command: dpkg -i --force-depends mypackage.deb Or, in case you have more problems arising, use: dpkg -i --force-all mypackage.deb But be warned, package dependencies are almost always true dependencies, as in, the program might be linked against them. And using the above commands, will install ...


1

The OS must be "forced" to re-read the partition table once changes have been done. A reboot does this and hence you see fdisk changes after a reboot. I've used the following command before to re-read partition table and I didn't have to reboot, # partprobe partprobe is part of parted package


1

There is a utility available on most if not all linux distribution called 'ntpdate' More information can be found here, including some very nice installation documentation and examples. http://www.pool.ntp.org/en/


1

This may not help, if you don't have the opportunity to rebuild Busybox, but in case it helps anyone... Busybox does have a configuration option to support the -p switch of Busybox netstat. See option CONFIG_FEATURE_NETSTAT_PRG, selected in busybox menuconfig via Networking Utilities → netstat → Enable PID/Program name output.


1

Ali, you didn't mention what your journaling is set to. The default mount mode of ext3 and ext4 is 'data=ordered'. This means that while metadata operations may be safe, data may be lost on power failure. If you're expecting to lose power regularly, I'd suggest adding 'data=journal' to the modes in /etc/fstab. This will slow down your write speed quite a ...


1

Got it! (root) read line < mypipe date -s $line Thank you everybody! ;)


1

Solved it. It was the initramfs image, I backed it up, replaced it by running update-initramfs after binding dev, sys and proc to the directories on the hard drive and chrooting into it. Anyway, thanks Khaled and pehrs for your replies. Taking out the broken hard drive sped up the booting process as well. Also, now from the hard drive, it boots in 25 seconds!...


1

Edit the file /etc/pure-ftpd/conf/ChrootEveryone Enter the following in this file : yes Restart pure-ftpd



Only top voted, non community-wiki answers of a minimum length are eligible