Absent Member.. Absent Member..
Absent Member..
169 views

Discovery Serial Number HP-UX 11

Hi,

during the Host Connection job execution, the 'echo "sel path system\infolog\next" | cstm | grep -i "system serial"' command (used to discovery Serial Number in HP-UX 11.00) fails. We have tried to launch this command manually on the server, with the same access user used by discovery job, and it  works getting serial number, correctly.

The used function is the following:

 

def discoverSerialNumberByCstm(self):

        output = self.client.execAlternateCmds('echo "sel path system\\ninfolog\\nexit" | cstm | grep -i "system serial"','echo "sel path system\\ninfolog\\nexit" | /usr/sbin/cstm | grep -i "system serial"')

        if output:      

            matcher = re.search(':\s*(.+)', output)

            if matcher:

                self.hostDataObject.setSerialNumber(matcher.group(1).strip())

                self.hostDataObject.setNote('cstm')

                return 1 

        else:

            logger.warn("Failed getting host serial number by cstm")

 

Could you help us, please?

Thank you and best regards.

 

Giuseppe

0 Likes
1 Reply
Highlighted
Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Hello Giuseppe,

 

I hope you are doing well .

 

Would you please provide us the communication log of this job ?

 

Best Regards,

Melissa Carranza Mejias
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation. “
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.