Showing results for 
Search instead for 
Do you mean 

UniCensus used in cluster

SOLVED
Go to Solution

UniCensus used in cluster

I have a configuration problem with UniCensus. I have a cluster with two systems "orfdevdb" and "orfdevdb2". The file rcm_ssnum has two entries:

orfdevdb2=4224JN5ZA021
orfdevdb=4121DPSZ1013

However, it looks like this file (rcm_ssnum) with the two similar hostnames is not correctly parsed by the UniCensus application. Running "unicensus -config" results in the following error message:

------------------

Mon Mar 22 15:39:49 CST 2004: RCM Data Collector for Compaq Tru64 UNIX V4.5.4 started manually on orfdevdb.dallasisd.org by user root. (command line args: -config)
ERROR Mon Mar 22 15:39:52 CST 2004: **** setup...Invalid System Serial Number:
on Node orfdevdb
The correct format for a System Serial Number is: 6 to 12 alphanumeric characters and may include special character dash, '-'.
Run unisetup again.
(exiting) ...


exiting with status code: 103

-------------------

Running unisetup again, displays for the system with the name "orfdevdb" a serial number containing the serial number for the system "orfdevdb2", a new line , and the serial number for "orfdevdb" missing the first digit (see below):

-------------------
The current UniCensus System Data parameter settings are:

System Serial Number(s):

This system is a member of a cluster.

orfdevdb2= 4224JN5ZA021
orfdevdb= 4224JN5ZA021
121DPSZ1013

-------------------

The installed UniCensus version is:

UNICEN454 - installed - UniCensus for Alpha AXP Digital UNIX - V4.5.4 Build 3

Is there a newer version or a patch available?

Mathias
6 REPLIES
Honored Contributor

Re: UniCensus used in cluster


Please deinstall UNICEN454 and get UNICEN502 from:
http://ftp.support.compaq.com/svctools/rcm/unicensus502.tar

For further reference check also:
http://www.support.compaq.com/svctools/rcm/download/downloaddux.html

Rgds,
Johan.

_JB_

Re: UniCensus used in cluster

Thanks. I deinstalled UNICEN454 and installed UNICEN502. However, I still get the same error (assuming the hostname parsing problem):

----
orfdevdb2=224JN5ZA021
orfdevdb=4224JN5ZA021
121DPSZ1013
----

Should be:

----
orfdevdb2=224JN5ZA021
orfdevdb=4121DPSZ1013
----



Tue Mar 23 07:45:49 CST 2004: RCM Data Collector for Compaq Tru64 UNIX V5.0.2 started manually on orfdevdb.dallasisd.org by user root. (command line args: -config)
ERROR Tue Mar 23 07:45:51 CST 2004: **** setup...Invalid System Serial Number:
on Node orfdevdb
The correct format for a System Serial Number is: 6 to 12 alphanumeric characters and may include special character dash, '-'.
Run unisetup again.
(exiting) ...


exiting with status code: 103
Respected Contributor

Re: UniCensus used in cluster

Mathias,

What is the HW Platform on which you run this ?

Joris
To err is human, but to really faul things up requires a computer
Honored Contributor

Re: UniCensus used in cluster

Matthias,

One way to troubleshoot this would be to put some
"set -x" statements in /var/opt/Unicensus/libunicensus.ksh eg in the subroutine getSystemSerialNumber() and verifySystemSerialNumber()
and execute "ksh -x getssnum" (also in that dir).

Johan.

_JB_
Respected Contributor

Re: UniCensus used in cluster

Mathias,

I ran your serialnumbers through the verifySystemSerialNumber() routine in the script mentioned by Johan. And they fail to be recognised as valid.

The routine checks for strings containing 6 to 11 alphanumeric characters.
As the serialnr is 12 chars long, it will return an error message.

Maybe someone else knows how many chars a system serial number can have.

Anyway, I guess this have to be checked with the unicensus guys.

The best way to proceed is to open a call in your local HP support group.

Joris
To err is human, but to really faul things up requires a computer

Re: UniCensus used in cluster

Thanks for the responses. I found the problem. In the file "/var/opt/UniCensus/libunicensus.ksh" is this function: "readParamFromFile()". This function tries to determine a value to a keyword with an ambiguous "grep" statement.

For example, in my case, the file "rcm_ssnum" has these two entries:

orfdevdb2=4224JN5ZA021
orfdevdb=4121DPSZ1013

When the function tries to get the serial number for orfdevdb from the file "rcm_ssnum" it does basically the following "grep" statement:

LAST=`grep "^orfdevdb" rcm_ssnum

However, this will result in $LAST having the following value:

echo $LAST
orfdevdb2=4224JN5ZA021 orfdevdb=4121DPSZ1013

The correct value should be only:

orfdevdb=4121DPSZ1013

Yes, I will open a call to our HP support center.

Thanks.

Mathias


//Add this to "OnDomLoad" event