Operating System - HP-UX
1833047 Members
2601 Online
110049 Solutions
New Discussion

lost printer--model script connections in migrate

 
SOLVED
Go to solution
Lisa Sorbo
Frequent Advisor

lost printer--model script connections in migrate

migrating from box1 10.20 to box2 11.0. used SAM to save & restore printers. the association between printer id & model seems to be lost - i have to delete & re-add the printer and re-choose the model id in order for it to work.
Did I miss a step?
When I use hppi and select modify - there is no modelscript shown for the printer. is there a way to fix this on a large scale or transfer it over?

Lisa
5 REPLIES 5
Bill Hassell
Honored Contributor
Solution

Re: lost printer--model script connections in migrate

Make suere HPPI was installed on the 11.0 system (it isn't by default depending on how old your 11.0 install CD might be. I don't know whether SAM was updated to handle HPPI configratio s correctly at 10.20 (10.20 is obsolete next month and most of it's life, JetAdmin was the JetDirect support application). However, it is very easy to delete and re-add the printers without using the interactive menu. Just use removequeue and addqueue:

cd /opt/hpnpl/bin
./removequeue -qprinter1
./addqueue -qprinter1 -h12.34.56.78


Bill Hassell, sysadmin
Lisa Sorbo
Frequent Advisor

Re: lost printer--model script connections in migrate

yes, hppi is installed. I've gone to modify the printer - but I don't have the choice to select the modelscript - if I delete it (with sam) and then add it again (with sam or directly hppi) I can choose the model name and it all works. I can't see from your example how/when to select the modelscript and that seems to be what causes the hang-up.
Lisa Sorbo
Frequent Advisor

Re: lost printer--model script connections in migrate

also - I've got easily 100+ definitions to do and no printed documentation about which printer model goes with each (though I could guess I suppose) - which is why I was looking for a way to bring over that info from box1 to box2.
Bill Hassell
Honored Contributor

Re: lost printer--model script connections in migrate

The association of the printer and the model script is automatic with addqueue. That's why the printer must be online. addqueue queries the printer type and then picks the right model script. Model scripts are very simple prepend/postpend filters so an exact match is not necessary. That's why the new crop of printers in the last couple of years all use the generic net_ljx000 script.

You might also look at transferqueue which is designed to move large JetDirect queues. transferqueue is in the /opt/hpnpl/bin directory and has a man page. Another useful tool is multiaddqueue and to see the printer script automatic associations, use:

/opt/hpnpl/bin/multiaddqueue -l


Bill Hassell, sysadmin
Lisa Sorbo
Frequent Advisor

Re: lost printer--model script connections in migrate

Perfect!
the removequeue / addqueue sequence worked great - but before I wrote a script to do this for all printers, I used the transferqueue utility and it worked for all printers (at least, for the ones I've sent test prints to so far).

Thanks for your help!