Home
[RDK Central Wiki]
CMF
[Code Releases]
While I'm trying to set value for Device.NAT.PortMapping.1.Enable, getting this error
root@arrisgateway:~# dmcli eRT setv Device.NAT.PortMapping.1.Enable bool true
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.PortMapping.1.Enable
Execution fail(error code:CCSP_ERR_INVALID_PARAMETER_VALUE(9007)).
Any suggestion regarding this issue?
Thanks in advance!
Powered by a free Atlassian Confluence Open Source Project License granted to RDKCentral. Evaluate Confluence today.
2 Comments
Deepika Ganapathi Bhat
Hi Unknown User (kramarajan)
The dmcli Set commands are failing because there is no entry present in the PortMapping table. Make sure to add entries before setting their values. Use below dmcli command to add an entry (calling this command multiple times will add multiple entries)
1.dmcli eRT addtable Device.NAT.PortMapping.
2.Add the rules and set values ( ExternalPort, InternalPort, Protocol , InternelClient, Description, ExternalPortEndRange )
3.get the added values and verify
4.Now Enable the added rule
Sample output
root@RaspberryPi-Gateway:~#
root@RaspberryPi-Gateway:~# dmcli eRT addtable Device.NAT.PortMapping.
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
addtable from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.PortMapping.
Execution succeed.
Device.NAT.PortMapping.1. is added.
root@RaspberryPi-Gateway:~# dmcli eRT getv Device.NAT.PortMapping.
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.PortMapping.
Execution succeed.
Parameter 1 name: Device.NAT.PortMapping.1.Enable
type: bool, value: false
Parameter 2 name: Device.NAT.PortMapping.1.Status
type: string, value:
Parameter 3 name: Device.NAT.PortMapping.1.Alias
type: string, value: PortMapping1
Parameter 4 name: Device.NAT.PortMapping.1.AllInterfaces
type: bool, value: false
Parameter 5 name: Device.NAT.PortMapping.1.LeaseDuration
type: uint, value: 0
Parameter 6 name: Device.NAT.PortMapping.1.ExternalPort
type: uint, value: 0
Parameter 7 name: Device.NAT.PortMapping.1.ExternalPortEndRange
type: uint, value: 0
Parameter 8 name: Device.NAT.PortMapping.1.InternalPort
type: uint, value: 0
Parameter 9 name: Device.NAT.PortMapping.1.Protocol
type: string, value:
Parameter 10 name: Device.NAT.PortMapping.1.InternalClient
type: string, value: 0.0.0.0
Parameter 11 name: Device.NAT.PortMapping.1.RemoteHost
type: string, value: 0.0.0.0
Parameter 12 name: Device.NAT.PortMapping.1.X_Comcast_com_PublicIP
type: string, value: 0.0.0.0
Parameter 13 name: Device.NAT.PortMapping.1.Description
type: string, value:
Parameter 14 name: Device.NAT.PortMapping.1.Interface
type: string, value:
Parameter 15 name: Device.NAT.PortMapping.1.X_CISCO_COM_InternalClientV6
type: string, value:
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.NAT.PortMapping.1.Enable bool true
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.PortMapping.1.Enable
Execution fail(error code:CCSP_ERR_INVALID_PARAMETER_VALUE(9007)).
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.NAT.PortMapping.1.ExternalPort uint 1 Device.NAT.PortMapping.1.InternalPort uint 22 Device.NAT.PortMapping.1.Protocol string BOTH Device.NAT.PortMapping.1.InternalClient string 10.0.0.7 Device.NAT.PortMapping.1.Description string NEW_RULE Device.NAT.PortMapping.1.ExternalPortEndRange uint 8050
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.PortMapping.1.ExternalPort
Execution succeed.
root@RaspberryPi-Gateway:~# dmcli eRT getv Device.NAT.PortMapping.1.
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.PortMapping.1.
Execution succeed.
Parameter 1 name: Device.NAT.PortMapping.1.Enable
type: bool, value: false
Parameter 2 name: Device.NAT.PortMapping.1.Status
type: string, value: Disabled
Parameter 3 name: Device.NAT.PortMapping.1.Alias
type: string, value:
Parameter 4 name: Device.NAT.PortMapping.1.AllInterfaces
type: bool, value: true
Parameter 5 name: Device.NAT.PortMapping.1.LeaseDuration
type: uint, value: 0
Parameter 6 name: Device.NAT.PortMapping.1.ExternalPort
type: uint, value: 1
Parameter 7 name: Device.NAT.PortMapping.1.ExternalPortEndRange
type: uint, value: 8050
Parameter 8 name: Device.NAT.PortMapping.1.InternalPort
type: uint, value: 22
Parameter 9 name: Device.NAT.PortMapping.1.Protocol
type: string, value: BOTH
Parameter 10 name: Device.NAT.PortMapping.1.InternalClient
type: string, value: 10.0.0.7
Parameter 11 name: Device.NAT.PortMapping.1.RemoteHost
type: string, value: 0.0.0.0
Parameter 12 name: Device.NAT.PortMapping.1.X_Comcast_com_PublicIP
type: string, value: 0.0.0.0
Parameter 13 name: Device.NAT.PortMapping.1.Description
type: string, value: NEW_RULE
Parameter 14 name: Device.NAT.PortMapping.1.Interface
type: string, value:
Parameter 15 name: Device.NAT.PortMapping.1.X_CISCO_COM_InternalClientV6
type: string, value:
root@RaspberryPi-Gateway:~#
root@RaspberryPi-Gateway:~# dmcli eRT setv Device.NAT.PortMapping.1.Enable bool true
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
setv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.PortMapping.1.Enable
Execution succeed.
root@RaspberryPi-Gateway:~# dmcli eRT getv Device.NAT.PortMapping.
CR component name is: eRT.com.cisco.spvtg.ccsp.CR
subsystem_prefix eRT.
getv from/to component(eRT.com.cisco.spvtg.ccsp.pam): Device.NAT.PortMapping.
Execution succeed.
Parameter 1 name: Device.NAT.PortMapping.1.Enable
type: bool, value: true
Parameter 2 name: Device.NAT.PortMapping.1.Status
type: string, value: Enabled
Parameter 3 name: Device.NAT.PortMapping.1.Alias
type: string, value:
Parameter 4 name: Device.NAT.PortMapping.1.AllInterfaces
type: bool, value: true
Parameter 5 name: Device.NAT.PortMapping.1.LeaseDuration
type: uint, value: 0
Parameter 6 name: Device.NAT.PortMapping.1.ExternalPort
type: uint, value: 1
Parameter 7 name: Device.NAT.PortMapping.1.ExternalPortEndRange
type: uint, value: 8050
Parameter 8 name: Device.NAT.PortMapping.1.InternalPort
type: uint, value: 22
Parameter 9 name: Device.NAT.PortMapping.1.Protocol
type: string, value: BOTH
Parameter 10 name: Device.NAT.PortMapping.1.InternalClient
type: string, value: 10.0.0.7
Parameter 11 name: Device.NAT.PortMapping.1.RemoteHost
type: string, value: 0.0.0.0
Parameter 12 name: Device.NAT.PortMapping.1.X_Comcast_com_PublicIP
type: string, value: 0.0.0.0
Parameter 13 name: Device.NAT.PortMapping.1.Description
type: string, value: NEW_RULE
Parameter 14 name: Device.NAT.PortMapping.1.Interface
type: string, value:
Parameter 15 name: Device.NAT.PortMapping.1.X_CISCO_COM_InternalClientV6
type: string, value:
root@RaspberryPi-Gateway:~#
Unknown User (kramarajan)
Hi Unknown User (deepika.b)
Thankyou so much for your reply. It worked.
Also I need to find where these values are getting stored in syscfg.db. Because Iam trying to add new parameter in this table.
Any suggestion regarding this?
Thanks in advance!