Default username and password of both CPE and ACS server

hi guys,
what is the default username and password of the CPE and ACS server.

in my CPE configuration file i have given these values

acs_url=http://127.0.0.1:7547/
#ca_file=/etc/ssl/private/ca.pem
#ca_password=121111
cpe_manufacture=ChinaNMS
cpe_oui=A00001
cpe_sn=12345
cpe_name=000000
cpe_pc=OT2800
cpe_specver=V1.0
cpe_hwver=V1.0
cpe_version=V1.2.7.29
cpe_username=cwmp
cpe_password=cwmp
acs_username=cwmp
acs_password=cwmp

iam getting response as => HTTP/1.1 400 Bad Request
is error related to username and password or anything else??thank you

The default configuration has no CPE to ACS authentication active.

http://docs.genieacs.com/en/latest/cpe-authentication.html#cpe-to-acs

hi ,i have tried with different configuration still it is showing the same thing (400 bad request)

my configuration file=>

[cwmp]
enable=1;
soap_env=SOAP-ENV
soap_enc=SOAP-ENC
acs_auth=0
cpe_auth=0
event_filename=/etc/cwmpevent.bin

acs_url=http://127.0.0.1:7547/
#acs_url=http://192.168.28.246:9999/
ca_file=/etc/ssl/private/ca.pem
ca_password=123456

cpe_manufacture=ChinaNMS
cpe_oui=A00001
cpe_sn=300000
cpe_name=000000
cpe_pc=OT2800
cpe_specver=V1.0
cpe_hwver=V1.0
cpe_version=V1.2.7.29
cpe_username=
cpe_password=
acs_username=
acs_password=
[cwmpd]
httpd_port=5400
http_timeout=-1

Im not sure, but our CPEs have a serial of 12 hex letters while yours have just 6. Could this be a problem?

Authentication failure should give you 401 code, not 400. Check the logs of Genie for any error messages or exceptions.

Hii, my client(CPE) is sending 2 messages at a time ,that may be the reason for error. Iam attaching a flow which I observed in my wireshark(hand drawn)

Hi

Did you make any progress with this query?

I too am seeing a straight ‘Bad Request 400’ in response to inform from my CPE. No indication from Genie why it is bad, I’m not seeing the double request you do.

I was interested in your log output though, I get absolutely nothing in the debug log when this happens, but I know logging is OK, when I use the Genie ClientSim program I get loads of debug.

My XML all looks OK, if you are able to help with a couple of pointers that would be really helpful:-

  • How to switch on more logging (you seem to be seeing different information from mine)
  • What might be a likely cause of 400 code

Many thanks

Hi,

I still did not got the solution .

I suspect you might have an apache server running on the same port. Try doing the queries over port 7547 or check your firewall rules.

In my case I have iptables doing a nat redirection

root@acs2:~# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         
REDIRECT   tcp  --  anywhere             anywhere             tcp dpt:http redir ports 7547

in case you are not getting any progress I recommend starting from scratch on a new server (IOW fresh Linux install) with a physically separated network with no firewall and using genieacs-sim to test cpe connection to genieacs if necessary. Once you have a minimal working setup you can explore from there.