Operating System - Tru64 Unix
1752805 Members
5526 Online
108789 Solutions
New Discussion юеВ

Re: Install License from command line.

 
Keith W.
Occasional Advisor

Install License from command line.

I've not managed to figure out how to register the license number without having to use the Sysman GUI. Is there a command line method of doing what the Sysman GUI does? Possibly lmf?

lmf -? -? -?

Anything like this?
7 REPLIES 7
Ravi_8
Honored Contributor

Re: Install License from command line.

Hi

yes, lmf is the tool
never give up
Johan Brusche
Honored Contributor

Re: Install License from command line.


Use "lmf register"
a form will be presented to you on the screen in which you can fill in the required fields with the help of vi editing.

You can also pre-edit that form into a file and then use the command "lmf register - < pak_file"

Did you read the EXAMPLES section of the lmf manpage ? (iow RTFMP)

___ Johan.

_JB_
Frank Gessner
Frequent Advisor

Re: Install License from command line.

lmfsetup
Michael Schulte zur Sur
Honored Contributor

Re: Install License from command line.

Keith,

you also find template files in /var/adm/lmf.
I make a copy, edit the specific data into it and use lmf register pakfile like described before.
It comes in handy when you have to rebuild the license database.

greetings,

Michael
Keith W.
Occasional Advisor

Re: Install License from command line.

I think the responders missed the point of my question. I was wanting a command line method of arguments NOT a text based gui or form being presented to me to enter in data. I was looking for a way to give command line args to lmf that would allow for the entry of the Auth Number, Number of Units and Checksum. I see nothing that talks of any arguments to give that will do this without already haveing a file with the data in it to register in lmf. If there is then I'm not seeing it.
I'm looking for something that would take it all as arguments like this.

lmf -a AuthNumber -u Units -c checksum

If it's not possible I'll have to make a script that will insert the data into the template file, and then do the do the command line register of that file.
Keith W.
Occasional Advisor

Re: Install License from command line.

To follow up and answer this myself. Sed ended up doing it for me. I simply set some searchable keywords in a template file and then have sed replace it with the information supplied by the installer web form. My RIS process now automatically installs the licenses as well.

sed 's/ISSUER/$Issuer/g;s/AUTHNUMBER/$AuthNumber/g
s/PRODUCTNAME/$ProductName/g
s/PRODUCER/$Producer/g
s/UNITS/$Units/g
s/TABLECODE/$TableCode/g
s/KEYOPTIONS/$KeyOptions/g
s/CHECKSUM/$Checksum/g' /pack_template > /osfbase

lmf register - < /osfbase
Michael Schulte zur Sur
Honored Contributor

Re: Install License from command line.

Keith,

text based gui. That is a contradiction in terms. A text based graphic user interface? ;-)

Seeing now what you mean you could have created your textfile also like
echo "ISSUER: $Issuer"
...

and call the script with >> osfbase

Michael