Server Management - Remote Server Management
1752803 Members
4899 Online
108789 Solutions
New Discussion юеВ

Re: HPONCFG wont write user update, gives nonsense syntax err.

 
HNWSysAdmin
New Member

HPONCFG wont write user update, gives nonsense syntax err.

Trying to add a user or change the Admin pw for an ILO on a DL380 G4.

I can get current config and update network settings just fine.

If I try any MOD or ADD of user info, I get syntax errors about the first line of the file. Nothing that makes any sense.

Running on Win2003, 64bit. Updated all firmware, drivers and version of hponcfg. I'm logged in as the local system Admin.

9 REPLIES 9
Raghuarch
Honored Contributor

Re: HPONCFG wont write user update, gives nonsense syntax err.

What is the ILO version on DL 380G4?
Can you try the attached script

HNWSysAdmin
New Member

Re: HPONCFG wont write user update, gives nonsense syntax err.

ILO Firmware 1.91
HPONCFG 1.7.1
Driver 1.13

I've tried that script. In doing again now, It reports:
Firmware Revision = 1.91 Device Type = iLO Driver name = CpqCiDrv
Script failed

a dump of the log file:
Status = 0x1
Message = Syntax error: Line #19: syntax error near """" in the line: "!--
"

I can take out all the comments and it will basically report an error on any first line of the file.

If I do a similar file to update the IP addr, it does so just fine.
KarloChacon
Honored Contributor

Re: HPONCFG wont write user update, gives nonsense syntax err.

hi

Even I saw syntax was correct I tested it xml in my server and worked just fine

just in case
- reflash ilo firmware 1.91
- if continue downgrade to 1.89 and try again

regards
Didn't your momma teach you to say thanks!
Jimmy Vance
HPE Pro

Re: HPONCFG wont write user update, gives nonsense syntax err.

When I view your xml file I see

-
-
-
-

Remove the dash character from in front of the 1st four lines
No support by private messages. Please ask the forum! 
HNWSysAdmin
New Member

Re: HPONCFG wont write user update, gives nonsense syntax err.

There are no dashes in what Raghuarch uploaded. It's the standard file from the scripts template package.

I think you might have some encoding issues.

On firmware, I previously had an 1.8x version running and had the same problem. I upgraded to 1.91 as a hope.

Could 64bit Windows Server be and issue?
acartes
Honored Contributor

Re: HPONCFG wont write user update, gives nonsense syntax err.

I was able to use this script (yours) successfully on iLO and iLO 2 using the network-based utility CPQLOCFG.
Make sure:
1) the user account used for login has rights to administer local user accounts
2) the user account you are modifying has the same login name you specify in the script.
3) you are using current utility.

Here is what I used:














HNWSysAdmin
New Member

Re: HPONCFG wont write user update, gives nonsense syntax err.

I'll try this route, but my key problem is that I don't have the ilo admin password. I think what you required excluded that, but not sure...

> 1) the user account used for login has rights to
> administer local user accounts
By "user account used for login" do you mean the local windows Admin acct?

>2) the user account you are modifying has the
> same login name you specify in the script.
That's confusing. I'm modifying a user thus I'm spec'ing which to modify in the script. There is only one place to state this value,-- in the script.

I'd actually be trying to modify the Administrator acct. It's password to be specific.
Rajeshwari, Hiresave
Trusted Contributor

Re: HPONCFG wont write user update, gives nonsense syntax err.

Can you try this out once ...
* Open the XML file in a notepad.
* Select the contents of the file and copy them.
* Open a new notepad file
* Paste the copied contents on to the new file
* Save the new notepad file. Made sure that you are saving the file in ANSI encoding (look at the bottom of the notepad save dialog).
* Try to use this xml file instead of the original file.
acartes
Honored Contributor

Re: HPONCFG wont write user update, gives nonsense syntax err.

I have not tried using HPONCFG, only CPQLOCFG. There are a few differences:
- CPQLOCFG is network based and the credentials specified for must be valid. You must know the administrator account password in order to use the script over the network.
- HPONCFG is host-based (PCI). The LOGIN tag is still required for syntax, but the credentials to not have to be valid.

You can use the script to modify the account used for login, provided that the account exists and that the account has ADMIN_PRIV.

The login account specified in the RIBCL "Administrator" must already have the "configure local iLO user" privilege, otherwise the account cannot modify other user accounts.

The target account, "testuser" must already exist. This script is to modify an existing user, not to create a new user.