update at 2023/08/14
This commit is contained in:
495
config/systemState.json
Normal file
495
config/systemState.json
Normal file
@@ -0,0 +1,495 @@
|
||||
|
||||
EXP #1: "Get all smf systemState"
|
||||
|
||||
URI: 192.168.30.20: 3030/api/rest/systemManagement/v1/elementType/smf/objectType/systemState
|
||||
|
||||
RETURN:
|
||||
|
||||
{
|
||||
"data": [
|
||||
"SMF_0": {
|
||||
"ipAddress": "192.168.1.232",
|
||||
"systemState": {
|
||||
"version": "1.5.3.2",
|
||||
"capability": 10000,
|
||||
"serialNum": "13740126",
|
||||
"expiryDate": "2025-02-28",
|
||||
"cpuUsage": {
|
||||
"nfCpuUsage": 41,
|
||||
"sysCpuUsage": 78
|
||||
},
|
||||
"memUsage": {
|
||||
"totalMem": 4025608,
|
||||
"nfUsedMem": 160872,
|
||||
"sysMemUsage": 1341
|
||||
},
|
||||
"diskSpace": {
|
||||
"partitionNum": 19,
|
||||
"partitionInfo": [
|
||||
{
|
||||
"total": 1920,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 11
|
||||
},
|
||||
{
|
||||
"total": 48700,
|
||||
"used": 32360
|
||||
},
|
||||
{
|
||||
"total": 1965,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 5,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 1965,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 55,
|
||||
"used": 55
|
||||
},
|
||||
{
|
||||
"total": 63,
|
||||
"used": 63
|
||||
},
|
||||
{
|
||||
"total": 91,
|
||||
"used": 91
|
||||
},
|
||||
{
|
||||
"total": 49,
|
||||
"used": 49
|
||||
},
|
||||
{
|
||||
"total": 55,
|
||||
"used": 55
|
||||
},
|
||||
{
|
||||
"total": 73,
|
||||
"used": 73
|
||||
},
|
||||
{
|
||||
"total": 91,
|
||||
"used": 91
|
||||
},
|
||||
{
|
||||
"total": 1475,
|
||||
"used": 206
|
||||
},
|
||||
{
|
||||
"total": 49,
|
||||
"used": 49
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 11
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 73,
|
||||
"used": 73
|
||||
},
|
||||
{
|
||||
"total": 63,
|
||||
"used": 63
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"SMF_1": {
|
||||
"ipAddress": "192.168.1.73",
|
||||
"systemState": {
|
||||
"version": "1.5.3.2",
|
||||
"capability": 10000,
|
||||
"serialNum": "13740126",
|
||||
"expiryDate": "2025-02-28",
|
||||
"cpuUsage": {
|
||||
"nfCpuUsage": 41,
|
||||
"sysCpuUsage": 78
|
||||
},
|
||||
"memUsage": {
|
||||
"totalMem": 4025608,
|
||||
"nfUsedMem": 160872,
|
||||
"sysMemUsage": 1341
|
||||
},
|
||||
"diskSpace": {
|
||||
"partitionNum": 19,
|
||||
"partitionInfo": [
|
||||
{
|
||||
"total": 1920,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 11
|
||||
},
|
||||
{
|
||||
"total": 48700,
|
||||
"used": 32360
|
||||
},
|
||||
{
|
||||
"total": 1965,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 5,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 1965,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 55,
|
||||
"used": 55
|
||||
},
|
||||
{
|
||||
"total": 63,
|
||||
"used": 63
|
||||
},
|
||||
{
|
||||
"total": 91,
|
||||
"used": 91
|
||||
},
|
||||
{
|
||||
"total": 49,
|
||||
"used": 49
|
||||
},
|
||||
{
|
||||
"total": 55,
|
||||
"used": 55
|
||||
},
|
||||
{
|
||||
"total": 73,
|
||||
"used": 73
|
||||
},
|
||||
{
|
||||
"total": 91,
|
||||
"used": 91
|
||||
},
|
||||
{
|
||||
"total": 1475,
|
||||
"used": 206
|
||||
},
|
||||
{
|
||||
"total": 49,
|
||||
"used": 49
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 11
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 73,
|
||||
"used": 73
|
||||
},
|
||||
{
|
||||
"total": 63,
|
||||
"used": 63
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
EXP #2: "Get single smf systemState"
|
||||
|
||||
URI: 192.168.30.20: 3030/api/rest/systemManagement/v1/elementType/smf/objectType/systemState?subsys_no=0
|
||||
|
||||
RETURN:
|
||||
|
||||
{
|
||||
"data": [
|
||||
"SMF_0": {
|
||||
"ipAddress": "192.168.1.232",
|
||||
"systemState": {
|
||||
"version": "1.5.3.2",
|
||||
"capability": 10000,
|
||||
"serialNum": "13740126",
|
||||
"expiryDate": "2025-02-28",
|
||||
"cpuUsage": {
|
||||
"nfCpuUsage": 41,
|
||||
"sysCpuUsage": 78
|
||||
},
|
||||
"memUsage": {
|
||||
"totalMem": 4025608,
|
||||
"nfUsedMem": 160872,
|
||||
"sysMemUsage": 1341
|
||||
},
|
||||
"diskSpace": {
|
||||
"partitionNum": 19,
|
||||
"partitionInfo": [
|
||||
{
|
||||
"total": 1920,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 11
|
||||
},
|
||||
{
|
||||
"total": 48700,
|
||||
"used": 32360
|
||||
},
|
||||
{
|
||||
"total": 1965,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 5,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 1965,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 55,
|
||||
"used": 55
|
||||
},
|
||||
{
|
||||
"total": 63,
|
||||
"used": 63
|
||||
},
|
||||
{
|
||||
"total": 91,
|
||||
"used": 91
|
||||
},
|
||||
{
|
||||
"total": 49,
|
||||
"used": 49
|
||||
},
|
||||
{
|
||||
"total": 55,
|
||||
"used": 55
|
||||
},
|
||||
{
|
||||
"total": 73,
|
||||
"used": 73
|
||||
},
|
||||
{
|
||||
"total": 91,
|
||||
"used": 91
|
||||
},
|
||||
{
|
||||
"total": 1475,
|
||||
"used": 206
|
||||
},
|
||||
{
|
||||
"total": 49,
|
||||
"used": 49
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 11
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 73,
|
||||
"used": 73
|
||||
},
|
||||
{
|
||||
"total": 63,
|
||||
"used": 63
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
EXP #2: "Get all NFs systemState"
|
||||
|
||||
URI: 192.168.30.20: 3030/api/rest/systemManagement/v1/elementType/all/objectType/systemState
|
||||
|
||||
RETURN:
|
||||
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"AMF_0": {
|
||||
"error": {
|
||||
"errorCode": "1",
|
||||
"errorInfo": "Internal server error, NF connnect refused"
|
||||
},
|
||||
"ipAddress": "192.168.2.188"
|
||||
}
|
||||
},
|
||||
{
|
||||
"SMF_0": {
|
||||
"ipAddress": "192.168.1.232",
|
||||
"systemState": {
|
||||
"capability": 10000,
|
||||
"cpuUsage": {
|
||||
"nfCpuUsage": 2,
|
||||
"sysCpuUsage": 52
|
||||
},
|
||||
"diskSpace": {
|
||||
"partitionInfo": [
|
||||
{
|
||||
"total": 1920,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 13
|
||||
},
|
||||
{
|
||||
"total": 48700,
|
||||
"used": 32431
|
||||
},
|
||||
{
|
||||
"total": 1965,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 5,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 1965,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 55,
|
||||
"used": 55
|
||||
},
|
||||
{
|
||||
"total": 63,
|
||||
"used": 63
|
||||
},
|
||||
{
|
||||
"total": 91,
|
||||
"used": 91
|
||||
},
|
||||
{
|
||||
"total": 49,
|
||||
"used": 49
|
||||
},
|
||||
{
|
||||
"total": 55,
|
||||
"used": 55
|
||||
},
|
||||
{
|
||||
"total": 73,
|
||||
"used": 73
|
||||
},
|
||||
{
|
||||
"total": 91,
|
||||
"used": 91
|
||||
},
|
||||
{
|
||||
"total": 1475,
|
||||
"used": 206
|
||||
},
|
||||
{
|
||||
"total": 49,
|
||||
"used": 49
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 13
|
||||
},
|
||||
{
|
||||
"total": 393,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 73,
|
||||
"used": 73
|
||||
},
|
||||
{
|
||||
"total": 63,
|
||||
"used": 63
|
||||
}
|
||||
],
|
||||
"partitionNum": 19
|
||||
},
|
||||
"expiryDate": "2025-02-28",
|
||||
"memUsage": {
|
||||
"nfUsedMem": 163992,
|
||||
"sysMemUsage": 1345,
|
||||
"totalMem": 4025608
|
||||
},
|
||||
"serialNum": "13740126",
|
||||
"version": "1.5.3.2"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"SMF_1": {
|
||||
"ipAddress": "192.168.1.173",
|
||||
"systemState": {
|
||||
"capability": 10000,
|
||||
"cpuUsage": {
|
||||
"nfCpuUsage": 0,
|
||||
"sysCpuUsage": 69
|
||||
},
|
||||
"diskSpace": {
|
||||
"partitionInfo": [
|
||||
{
|
||||
"total": 3966,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 797,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 200559,
|
||||
"used": 5968
|
||||
},
|
||||
{
|
||||
"total": 3987,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 5,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 3987,
|
||||
"used": 0
|
||||
},
|
||||
{
|
||||
"total": 797,
|
||||
"used": 0
|
||||
}
|
||||
],
|
||||
"partitionNum": 7
|
||||
},
|
||||
"expiryDate": "2024-12-31",
|
||||
"memUsage": {
|
||||
"nfUsedMem": 212136,
|
||||
"sysMemUsage": 720,
|
||||
"totalMem": 8167360
|
||||
},
|
||||
"serialNum": "13740272",
|
||||
"version": "1.5.3.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user