Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Change an orphaned node's IP via the command line Network
After we subnetted our network, my network parent domain was orphaned (e.g. NetInfo busted). I couldn't get to it through the GUI client. So, I used nicl (which was good, wholesome fun). Here is an output of what I did to fix the problem (NetInfo kept the IP even though I changed the IP in the GUI Directory Services and Netinfo Domain Setup):
[files161:/var/db/netinfo] root# nicl -raw network.nidb/
/ > cd machines/Files161
/machines/Files161 > read
name: Files161
ip_address: 192.9.200.226
serves: ./network Files161/local
/machines/Files161 > append . ip_address 192.168.201.240
/machines/Files161 > read
name: Files161
ip_address: 192.9.200.226 192.168.201.240
serves: ./network Files161/local
/machines/Files161 > delete . ip_address 192.9.200.226
/machines/Files161 > read
name: Files161
ip_address: 192.168.201.240
serves: ./network Files161/local
/ > search . 0 3 ip_address 192.9.200.226
Search found 0 matches
One problem -- the passwords were bad (the admin user and two regular users that I tested could not login) . I'm guessing this is because the crypt uses something based on IP?? Hmm. Anyway, I had to delete all the entries and import a backup copy I made.

[Editor's note: You can probably do Very Bad Things to your machine with this program, so be very careful ... "have you hugged your backup today?"]
    •    
  • Currently 3.00 / 5
  You rated: 3 / 5 (1 vote cast)
 
[2,731 views]  

Change an orphaned node's IP via the command line | 0 comments | Create New Account
Click here to return to the 'Change an orphaned node's IP via the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.