Results 1 to 2 of 2

Thread: pump to get hostname

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    5

    pump to get hostname

    Hi Everyone

    Has anybody had any experience using pump to find out and set the "proper" hostname of a box, based on a DNS server? I am trying to get this to start on boot and its not clear to me if this is even possible. If it isn't, could anybody suggest how to switch to using dhcpc instead to achieve the same?

    Thanks in advance

    Ben

  2. #2
    Junior Member
    Join Date
    Apr 2005
    Posts
    5
    Hi again

    In the end I determined that pump could not do this, so I added the line

    Code:
    hostname $(dig -x `ifconfig $DEVICE | grep "inet addr" |awk '{print $2}' | cut -d : -f2` +short |cut -d . -f1)
    to /etc/init.d/knoppix-auoconfig, after netdevice detection has finished. I set $DEVICE to eth0, but in the more general case I think leaving out $DEVICE should work. If a network was unavailble I think that the command would fail, and the hostname would remain Knoppix (as set earlier in the script)

    Ben

Similar Threads

  1. 'pump -i ra0' crashes system
    By paradigm_shift in forum Networking
    Replies: 0
    Last Post: 07-15-2005, 05:36 AM
  2. When pump fails... (my solution)
    By probono in forum Networking
    Replies: 0
    Last Post: 09-17-2004, 04:52 AM
  3. pump -i eth0 and netcardconfig not working
    By qman_txun in forum Networking
    Replies: 4
    Last Post: 11-04-2003, 08:22 AM
  4. PUMP Missing, what to do next?
    By JockVSJock in forum Networking
    Replies: 7
    Last Post: 10-08-2003, 09:23 AM
  5. Orinoco and pump -i eth 0
    By probono in forum Networking
    Replies: 0
    Last Post: 06-08-2003, 11:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES picture

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES

$108.92



Ibm Computer Tower picture

Ibm Computer Tower

$400.00



Lot of 2 IBM blade center Type H chassis 8852 picture

Lot of 2 IBM blade center Type H chassis 8852

$559.00



IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU picture

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU

$200.00



IBM 4262 SYSTEM x3200 Tower - HDD Wiped, NO OS picture

IBM 4262 SYSTEM x3200 Tower - HDD Wiped, NO OS

$80.00



IBM iDataPlex dx360 M4 with 4× Xeon E5-2680 v2, 128 GB RAM, 2× QLogic picture

IBM iDataPlex dx360 M4 with 4× Xeon E5-2680 v2, 128 GB RAM, 2× QLogic

$149.00



IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU picture

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU

$999.99



IBM Power 710 Express 8231-E2B POWER7 16GB DDR3 RAM 2U Rack Server No HDD. picture

IBM Power 710 Express 8231-E2B POWER7 16GB DDR3 RAM 2U Rack Server No HDD.

$409.99



IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM

$149.99



Unused IBM 09P0037 MAINBOARD For  RS/6000 7044-170 P-Series picture

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series

$281.25