...
Log Search Commands
Pub/Sub Commands
The 'pub' commands are meant for users who have extensive EVE internal knowledge. EVE-OS has many services, e.g. 'zedagent', 'zedrouter', etc. Each service publishes some configuration or status for other services to consume or subscribe. All those publications reflect the current state of EVE operation. When troubleshooting a problem, sometimes one needs to know what a service is publishing to see if it is correct. The majority of the publications is in directory '/run/<service-name>/'. A service can publish one or more types of data, which locates in it's sub-directories.
All the services supports 'pub' command:
[baseosmgr domainmgr downloader edgeview global loguploader newlogd nim nodeagent tpmmgr vaultmgr volumemgr watcher zedagent zedclient zedmanager zedrouter zfsmanager]
the 'pub/<service-name>' will display all the data items of the service. For instance, for 'domainmgr' service, it has the data for 'AssignableAdapters', 'Capabilities', 'CipherMetrics', 'DomainMetric', 'HostMemory' and "processMetric'. The user can supply a string for the display of only that particular data-structure, e.g. only for 'DomainMetric', that display with 3 applications on the device:
edgeview.sh pub/domainmgr/domain
/run/domainmgr/DomainMetric
service: 00000000-0000-0000-0000-000000000000.json
{
"UUIDandVersion": {
"UUID": "00000000-0000-0000-0000-000000000000",
"Version": ""
},
"CPUTotalNs": 2453062500000,
"CPUScaled": 4,
"AllocatedMB": 0,
"UsedMemory": 3715,
"MaxUsedMemory": 0,
"AvailableMemory": 4067,
"UsedMemoryPercent": 47,
"LastHeard": "2022-08-13T02:41:22.014224992Z",
"Activated": true
}
service: 85e58364-0b95-414b-911e-08df57627a04.json
{
"UUIDandVersion": {
"UUID": "85e58364-0b95-414b-911e-08df57627a04",
"Version": "2"
},
"CPUTotalNs": 1504271850003,
"CPUScaled": 2,
"AllocatedMB": 2648,
"UsedMemory": 2648,
"MaxUsedMemory": 2648,
"AvailableMemory": 0,
"UsedMemoryPercent": 100,
"LastHeard": "2022-08-13T02:41:22.014224992Z",
"Activated": true
}
service: 9ce27b08-47e0-4568-a56e-b6dd0e4514cd.json
{
"UUIDandVersion": {
"UUID": "9ce27b08-47e0-4568-a56e-b6dd0e4514cd",
"Version": "2"
},
"CPUTotalNs": 4723668233462,
"CPUScaled": 1,
"AllocatedMB": 1624,
"UsedMemory": 699,
"MaxUsedMemory": 700,
"AvailableMemory": 925,
"UsedMemoryPercent": 43.0418701171875,
"LastHeard": "2022-08-13T02:41:22.014224992Z",
"Activated": true
}
service: d2009ffc-8fba-42e2-8870-a3ef0d0b7c1b.json
{
"UUIDandVersion": {
"UUID": "d2009ffc-8fba-42e2-8870-a3ef0d0b7c1b",
"Version": "2"
},
"CPUTotalNs": 424687427279,
"CPUScaled": 2,
"AllocatedMB": 2648,
"UsedMemory": 1152,
"MaxUsedMemory": 1154,
"AvailableMemory": 1496,
"UsedMemoryPercent": 43.50453186035156,
"LastHeard": "2022-08-13T02:41:22.014224992Z",
"Activated": true
}
The 'pub' command also support display more than one service by using the comma, for example, if the user wants to display both 'zedclient' and 'zedrouter' publications, below can be used:
edgeview.sh pub/zedclient/zedrouter
TCP Channel Commands
Proxy Command
...