NGC CP CLI

AMF Command Line

Deregister a user

# Format: dereg [imsi]

dereg 466920100001101

Purge a user

# Format: purge [imsi]

purge 466920100001101

Perform deregistrion to NRF

# Format: nrf_dereg

nrf_dereg

Update priority to NRF

# Format: nrf_update [put/patch] / priority [uint16]

nrf_update put / priority 8
nrf_update patch / priority 8

Update heartBeatTimer to NRF

# Format: nrf_update [put/patch] / heartBeatTimer [uint32]

nrf_update put / heartBeatTimer 8
nrf_update patch / heartBeatTimer 8

Perform location notification heartBeatTimer to NRF

# Format: notify [imsi] location

notify 466920100001101 location

UDM Command Line

Deregister a user

# Format: dereg [imsi]

dereg 466920100001101

Add new ServiceAreaRestriction in Am-Data

# Format: amdata_add [imsi] ServiceAreaRestriction [newTac1,newTac2,...]

amdata_add 466920100001101 ServiceAreaRestriction 85,86

Update ServiceAreaRestriction in Am-Data

# Format: amdata_update [imsi] ServiceAreaRestriction [oldTac1, ...] [newTac1, ...]

amdata_update 466920100001101 ServiceAreaRestriction 85,86 87,88

Delete ServiceAreaRestriction in Am-Data

# Format: amdata_delete [imsi] ServiceAreaRestriction [oldTac1,oldTac2,...]

amdata delete 466920100001101 ServiceAreaRestriction 85,86

Update Session Ambr

如果在 UDM 上保存的用户签约数据中的 AMBR 发生了变化,并且 SMF 没有及时更新的情况下,如果 PCF 设置了 SE_AMBR_CH request trigger(触发器),那么 SMF 应该需要从 PCF 上获取更新策略。通过这种方式,UDM 将 AMBR 的变化通知 SMF,然后 SMF 向 PCF 发送 SMPC update 请求,最后从 PCF 得到授权给 PDU Session 的最新的 AMBR 值。

下述指令就是用于测试触发该场景的流程:

# Format: smdata_update [imsi] ambr [value]

smdata_update 466920100001101 ambr 9000

SMF Command Line

De-registrate SMF from NRF

# Format: nrf_dereg

nrf_dereg

Update SMF priority in NRF

# Format: nrf_update [put/patch] / priority [uint16]

nrf_update put / priority 8
nrf_update patch / priority 8

Modify PDU Session to trigger a removal of flow in PCF

# Format: modSession [imsi] [pdu session id] [qfi]

modSession 466920100001101 5 1

Delete PDU Session

# Format: delSession [imsi] [pdu session id]

modSession 466920100001101 5

Trigger PFCP Association Update for Load Control

# Format: pfcp_loadControl [on/off]

pfcp_loadControl on
pfcp_loadControl off

Trigger PFCP Association Update for Overload Control

# Format: pfcp_overloadControl [on/off]

pfcp_overloadControl on
pfcp_overloadControl off

Trigger PFCP Association Release from all UPFs

# Format: pfcp_association_release

pfcp_association_release

PCF Command Line

Console 模式启动:pcf can be started with the option of the console by adding “-i” in the pcf startup command.

/bin/pcf -s -c ./config/pcf.conf -l ./config/asn.log.properties -i

HTTP Server 模式启动:Pcf can also be started with th option of the http server listening port 9091 by adding “-t” in the pcf startup command.

/bin/pcf -s -c ./config/pcf.conf -l ./config/asn.log.properties -t

Show SMPC Context

# Format: smpc showcontext [imsi]

smpc showcontext 466920100001101

Create PCC rule

# Format: smpc pccrule create [imsi] [sessionId] [pccRuleName]

smpc pccrule create 466920100001101 5 pcc1

Delete PCC rule

# Format: smpc pccrule delete [imsi] [sessionId] [pccRuleName]

smpc pccrule delete 466920100001101 5 pcc1

Delete a PDU session

# Format: smpc sessrule delete [imsi] [sessionId]

smpc sessrule delete 466920100001101 5

Modify Session rule

# Format: smpc sessrule modify [imsi] [sessionId] [sessRuleId]

smpc sessrule modify 466920100001101 5 sess2

Show AMPC Context

# Format: ampc showcontext [imsi]

ampc showcontext 466920100001101

CURL

curl ttp://192.168.205.195:9091/console?cmd=smpc,pccrule,create,466920100001103,5,pcc2,pcc1 curl http://192.168.205.195:9091/console?cmd=smpc,pccrule,delete,466920100001103,5,pcc2,pcc1 curl http://192.168.205.195:9091/console?cmd=smpc,showcontext,466920100001103