Recommended Posts

24 minutes ago, bradness said:

ok lets assess the situation, i have multiple devices all needing the same set up which i can do through scripts that take less then 5 mins,

 

The Devices come in with DHCP set on and if the Device is turned on will obtain an ip the router has given it, every device will get a different ip within the hour as the DCHP lease time of the router is 1 hour minimum. 

 

currently i am manually assigning the same ip to each one by physically using the touch screen on the device to go into admin and setting a static ip, This then requires a restart of the machine, then running the set up then again logging into the admin mode to reset turn back on the autoip configuration ready for shipment. 

 

What i would like is a way so when i turn the Device on, the router gives it a set Ip address (the first one in the DHCP table), run the set up then when finished unplug it, the router then reaches its DHCP lease time, deletes the device from its table and the same ip address is then ready for the next device when i am ready.

 

Im trying to find ways of not setting the machine to static then back to auto, the router does all this for me. i just need the lease time to be shortened. 

 

not understanding why everyone needs to know why i need it it, look at the post, its nothing to do with my original question, believe me, it works this way, i have tested it many times bu turning the router off and leaving it off till it resets. And apparently I'm the one overthinking things. I have my answer so thank you very much. 

We are solution providers. With the correct information we, collectively, can think of ways to address your issue or come up with a solution that you have not thought of. Especially when you are doing something that could potentially break things. You don't want to give us anything to work with, a horrible solution could be provided.  

 

You are dealing with a printer, possibly, ever think that a backup can be done and applied to a new one. Whether it be through a web interface or capturing a config via serial or ssh. I don't know what you have, so I could even begin to come up with a script or plan to address your issue being that every manufacture, and model class, has its own language and/or screens to filter through. 

 

Do it whatever way you feel comfortable. I am done asking questions here to try and help you. 

24 minutes ago, bradness said:

good idea warwagon, unfortunately the devices are stand alone printers and multi functional devices (Copy/Fax/Scan/Print) etc. they have limited connectivity before their set up. Im pretty sure external network cards would require drivers and internal set up. 

 

thanks though.

Oh alright, I see you mentioned that above and I missed it. i'm guessing you would like the same IP address everytime so you can connect to the printer via the same known IP. One question for you, are these all different printers or always the same make and model?

 

If it was always the same make and model how about setting up an IP reservation via device name? My guess would be, if it was always the same make and model it would always have the same device name. Even if you had multiple device models you could set up a ip reservation for each one. So could make a spreadsheet so you would know this model would get X IP. I know you might not have netgear, but it's just an example.

 

http://kb.netgear.com/app/answers/detail/a_id/25722/~/how-do-i-reserve-an-ip-address-on-my-netgear-router%3F

 

..I'm just throwing spaghetti at the wall :D

 

21 minutes ago, sc302 said:

We are solution providers. With the correct information we, collectively, can think of ways to address your issue or come up with a solution that you have not thought of. Especially when you are doing something that could potentially break things. You don't want to give us anything to work with, a horrible solution could be provided.  

 

You are dealing with a printer, possibly, ever think that a backup can be done and applied to a new one. Whether it be through a web interface or capturing a config via serial or ssh. I don't know what you have, so I could even begin to come up with a script or plan to address your issue being that every manufacture, and model class, has its own language and/or screens to filter through. 

 

Do it whatever way you feel comfortable. I am done asking questions here to try and help you. 

sc302, i am very grateful for your assistance and didn't mean to offend you. Its not the different ideas i have issues with, i'm open to new methods and thoughts from anyone, it is the way people question what i know works to begin with i find silly, also a few comments that purely say, "why do you need this" or "that is a stupid idea" surely these people have no place on a forum like this? perfectly understandable if you do not wish to help, apoligies for being rude, in answer to your comment regarding configs, The printers do not accept back ups as they are serial number controlled and one back up would not work on a machine of a different serial number, these are all things i tried in the past. many thanks for your suggestions. 

12 minutes ago, warwagon said:

Oh alright, I see you mentioned that above and I missed it. i'm guessing you would like the same IP address everytime so you can connect to the printer via the same known IP. One question for you, are these all different printers or always the same make and model?

 

If it was always the same make and model how about setting up an IP reservation via device name? My guess would be, if it was always the same make and model it would always have the same device name. Even if you had multiple device models you could set up a ip reservation for each one. So could make a spreadsheet so you would know this model would get X IP. I know you might not have netgear, but it's just an example.

 

http://kb.netgear.com/app/answers/detail/a_id/25722/~/how-do-i-reserve-an-ip-address-on-my-netgear-router%3F

 

..I'm just throwing spaghetti at the wall :D

 

good idea, the devices are all the same make but each one had a different device id, so reserving addresses would not work, 

 

the idea behind the same ip is that the script i run uses a web browser style interface to show a remote panel, i would like to just be able to click "connect" each time and not have to change the ip in the script or on the machine, unfortunately the devices all show as a different name.

14 minutes ago, bradness said:

good idea, the devices are all the same make but each one had a different device id, so reserving addresses would not work, 

 

the idea behind the same ip is that the script i run uses a web browser style interface to show a remote panel, i would like to just be able to click "connect" each time and not have to change the ip in the script or on the machine, unfortunately the devices all show as a different name.

Yep, that's what I thought.

 

After trying to think of a solution, I think you wanting a very short DHCP lease really does sound like the best solution.

 

I know you said you are not good with scrips and Either am I but when you run the script could you have the script stop at the ip and output all but the last 3 numbers (example 192.168.1.)

 

Then have the DHCP table page on your router open and after you plug in the printer hit refresh and see which number it grabbed

 

then you enter the last 3 numbers, press enter and BAM! 

So your setting up printers?  And you use some autohotkey script to run through some web interface?

 

What is the brand of printer.. Many of them have admin tools to push configurations, etc.  You could push config to hundreds of them at the same time, etc.

 

For example brother has

http://support.brother.com/g/s/id/bradmin_pro/en/index.html?c=us_ot&lang=en&comple=on&redirect=on

 

Mass-configure printer or print server settings
The BRAdmin Professional software can be used to mass-configure device settings. This means that if you have a group of printers/FAX/DCP or MFC machines which you would like to be configured in an identical way, the BRAdmin Professional software can broadcast the settings you require to a single device or a group of Brother network-connected devices.

 

I'm with sc302, while I answered your question on how to set a short lease time.. If what your doing is configuration of printers - walking thru some web gui does not seem the fastest most efficient method..   Always lots of ways to skin the cat, but without knowing the breed of the cat how can you determine the best skinning method.  While I applaud your work around you have come up with for speed of accomplishing your job..  I would not be surprised if there is a MUCH better way of doing it - but without exact details its impossible to point you in the correct path.

 

What is the make and model of these devices?  Are they all the same make and model or do they vary and maker changes all the time, etc. etc..
 

This topic is now closed to further replies.