Search results

  1. A

    [Python] Inserting a sign after every n-th character

    Thank you all for your help and comments. It really helped. :D
  2. A

    [Python] Inserting a sign after every n-th character

    Hello All, I am writing a script to convert MAC addresses. I want to be able to convert "23edfd56ab90" to "23:ed:fd:56:ab:90". Is there a function in python I can use to do that? That is, inserting a ':' after every second character in a string? Thanks for your time and help, atwinix
  3. A

    packet loss in IPFW

    Hello all, I am trying to check out how much packet loss I am having across a link that I am simulating using ipfw and dummynet. I am a bit baffled by the output of ipfw and cannot seem to find packet loss statistics. I would be very grateful if someone could explain it to me. I have...
  4. A

    Problem with Dummynet

    OK, I found out where the problem was. I needed to set the sysctl variable for net.link.bridge.ipfw to 1. sysctl net.link.bridge.ipfw=1 Hope this thread helps someone. :D Cheers, atwinix
  5. A

    Problem with Dummynet

    Hello All, I am having a problem with dummynet. I have set up FreeBSD (8.2 i386) as a bridge with dummynet for rate limiting traffic. Two computers communicate with each other via the bridge. Once I set up a pipe, they can no longer do so. Here's the code for ipfw and ifconfig on the...
  6. A

    Pinging a host only while SCP is present

    Great I got it work! Thanks a lot. The only thing that I now need is to be able to redirect the output of a background process to file. Although I know how to do it, the file being generated is empty and 0B in size!! See the code below: scp /usr/testtrans.file root@192.168.1.2:/usr >...
  7. A

    Pinging a host only while SCP is present

    Thanks vwe@ and jilles@. The information you have provided is very useful. I shall test them asap. Cheers, atwinix
  8. A

    Pinging a host only while SCP is present

    Thanks for your input vwe@. I really appreciate it. I have only been scripting for a while now. I am starting scp in background. And I do understand most of the things you outlined and it does simplify my task. The only thing I am not sure how to do is "install a signal handler" ? If...
  9. A

    Pinging a host only while SCP is present

    Hello all, I am doing some measurement tests on my network and I am writing a script to scp a file between two computers. What I need to do is ping the receiving-computer while the SCP is running. Find below the portion of code which I have written so far. while ($scppresent == 1)...
  10. A

    VirtualBox Installation

    Hello All, I am installing virtualbox through ports and I am facing the following problem. [atwin@FreeBSDServer] /usr/ports/emulators/virtualbox-ose# make ===> virtualbox-ose-3.2.12_1 depends on executable: yasm - found ===> virtualbox-ose-3.2.12_1 depends on executable: as86 - found ===>...
  11. A

    Partition Disappeared

    Thank you all for your replies. I managed to get the data back using only ad0s1. I still don't understand how ad0s1d could just have disappeared. I'm leaving it as it is for now until I can migrate the data and test your recommendations. Cheers, atwinix
  12. A

    Partition Disappeared

    Hello All, I had installed a 200 GB IDE drive in my home server to act as an encrypted disk. I followed the instructions at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-encrypting.html to set up gbde and had it working perfectly for more than a week until the partition...
  13. A

    Specs for a dedicated FreeBSD Server

    Thank you all for your most valued inputs. I now have a better idea of how to plan my server. I shall be budgeting for the new changes and hopefully have everything up and running in the weeks to come. Cheers, atwinix
  14. A

    Specs for a dedicated FreeBSD Server

    Right, noted. So, I believe the best thing to do then is to change to specs to 4 x 1TB drives for RAIDZ2 (instead of 2 x 2TB). Thanks dennylin93 and gkontos.
  15. A

    Specs for a dedicated FreeBSD Server

    Yes, I am planning to use RAIDZ2 in the long run but with my current budget, I am only able to invest in 2 x 2TB drives. I believe you need more than 3 drives to setup a RAIDZ2 pool. So, eventually I would upgrade as I go. Thanks for the heads-up about this product. I am quite interested...
  16. A

    Specs for a dedicated FreeBSD Server

    Noted. Will crank it up as much as I can, starting at 4GB.
  17. A

    Specs for a dedicated FreeBSD Server

    Hello All, I am embarking on a new academic adventure and I want to setup FreeBSD to act as my Backup server for the next 4+ years. But since I have space for only one server in my room, I decided to set it up as a general server which should do the following. Primary Function - backup...
  18. A

    unix to windows text files

    Hello All, I have written a couple of guides in FreeBSD and I need to make the same guides available to windows users in the form of a single README file for both platforms. I have used unix2dos to do the conversion and the file open fine under windows but in FreeBSD, there are extra \CR...
  19. A

    Help with zfs sharenfs and NFSv4

    Hello Sim, Did you manage to solve that problem, I am stuck in the same dilemma. thanks, atwinix
  20. A

    NFS export an NFS-exported mountpoint

    Hello All, I am running some experiments and I am trying to export files using NFS. My layout is as follows. Server1 ---- Server2 --- ClientA Server1 exports /usr/datasets/A. Server2 mounts Server1_ip:/usr/dataset/A to /home/user/A and then exports /home/user/A. ClientA will need to mount...
Back
Top