Updated at: 2022-12-09 03:49:50
It supports regularly pushing AnyShare login log, management log, action log and system log to AnyRobot TCP/UDP receiving port through Syslog, with the specific configuration as follows:
1. Log in to the AnyShare system command background, enter the directory through cd /, and execute the following command to view the AnyShare version: cat DepsVersionDetails
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/3_7_AS%E6%97%A5%E5%BF%97%E9%87%87%E9%9B%86_%E6%A3%80%E6%9F%A5%E7%89%88%E6%9C%AC%E5%8F%B7.png)
2. Connect to the AnyShare server background through SSH and enter the specified path:
• AnyShare 5.0 version: cd /sysvol/apphome/app/ThriftAPI/gen-py-tmp/NodeManager
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/3_7_AS%E6%97%A5%E5%BF%97%E9%87%87%E9%9B%86_%E9%85%8D%E7%BD%AE%E6%AD%A5%E9%AA%A4%E4%BA%8C.png)
• AnyShare Family 6.0 version: cd /sysvol/apphome/app/ThriftAPI/gen-py-tmp/ECMSManager
3. Run the ncTNodeManager-remote script to set the logs to be pushed. For example: configure to push the logs generated after 12: 23: 45 on December 1, 2016:
• AnyShare 5.0 version: python ncTNodeManager-remote -h localhost:9306 enable_upload_log "2016-12-01 12:23:45"
• AnyShare 6.0 version: ./ncTECMSManager-remote -h localhost:9201 enable_upload_log "2016-12-01 12:23:45"
4. Configure the log server, select TCP or UDP protocol, and send different types of logs to different ports. For example: Configure to send login logs to port 2300 of AnyRobot through TCP protocol:
• AnyShare 5.0 version: python ncTNodeManager-remote –h localhost:9306 add_log_server "local1" "*" "192.168.180.42" "20010" "TCP"
• AnyShare Family 6.0 version: ./ncTECMSManager-remote -h localhost:9201 add_log_server "local1" "*" "192.168.180.42" "20010" "TCP"
Wherein:
• local1: The log level to be aggregated. For details, please refer to the AnyShare log level description table as follows:
• 192.168.180.42: The IP address of AnyRobot;
• 20010: The access port of AnyRobot data;
• TCP: The selected protocol type, which may be UDP.
5. Check push task:
• AnyShare 5.0 version: #python ncTNodeManager-remote -h localhost:9306 get_upload_log_server
• AnyShare Family 6.0 version: ./ncTECMSManager-remote -h localhost:9201 get_upload_log_server
6. Check push task:
• AnyShare 5.0 version: #python ncTNodeManager-remote -h localhost:9306 get_upload_log_status
• AnyShare Family 6.0 version: ./ncTECMSManager-remote -h localhost:9201 get_upload_log_status
7. For incorrect configuration, you can delete it and reconfigure it:
• AnyShare 5.0 version: python ncTNodeManager-remote -h localhost:9306 delete_log_server "*" "*" "192.168.180.42" “20010" "TCP"
• AnyShare Family 6.0 version: ./ncTECMSManager-remote -h localhost:9201 delete_log_server "local1" "*" "192.168.180.42" "20010" "TCP"
Note: AnyShare logs will be pushed at 3 am, and system logs will be pushed in real time.
1. Log in to the AnyShare system command background, enter the directory through cd /, and execute the following command to view the AnyShare version: cat DepsVersionDetails
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/3_7_AS%E6%97%A5%E5%BF%97%E9%87%87%E9%9B%86_%E6%A3%80%E6%9F%A5%E7%89%88%E6%9C%AC%E5%8F%B7.png)
2. Connect to the AnyShare server background through SSH and enter the specified path:
• AnyShare 5.0 version: cd /sysvol/apphome/app/ThriftAPI/gen-py-tmp/NodeManager
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/3_7_AS%E6%97%A5%E5%BF%97%E9%87%87%E9%9B%86_%E9%85%8D%E7%BD%AE%E6%AD%A5%E9%AA%A4%E4%BA%8C.png)
• AnyShare Family 6.0 version: cd /sysvol/apphome/app/ThriftAPI/gen-py-tmp/ECMSManager
3. Run the ncTNodeManager-remote script to set the logs to be pushed. For example: configure to push the logs generated after 12: 23: 45 on December 1, 2016:
• AnyShare 5.0 version: python ncTNodeManager-remote -h localhost:9306 enable_upload_log "2016-12-01 12:23:45"
• AnyShare 6.0 version: ./ncTECMSManager-remote -h localhost:9201 enable_upload_log "2016-12-01 12:23:45"
4. Configure the log server, select TCP or UDP protocol, and send different types of logs to different ports. For example: Configure to send login logs to port 2300 of AnyRobot through TCP protocol:
• AnyShare 5.0 version: python ncTNodeManager-remote –h localhost:9306 add_log_server "local1" "*" "192.168.180.42" "20010" "TCP"
• AnyShare Family 6.0 version: ./ncTECMSManager-remote -h localhost:9201 add_log_server "local1" "*" "192.168.180.42" "20010" "TCP"
Wherein:
• local1: The log level to be aggregated. For details, please refer to the AnyShare log level description table as follows:
Log Type | Log Level |
Login Log | local1.* |
Management Log | local2.* |
Action log | local3.* |
System log | user.* |
• 20010: The access port of AnyRobot data;
• TCP: The selected protocol type, which may be UDP.
5. Check push task:
• AnyShare 5.0 version: #python ncTNodeManager-remote -h localhost:9306 get_upload_log_server
• AnyShare Family 6.0 version: ./ncTECMSManager-remote -h localhost:9201 get_upload_log_server
6. Check push task:
• AnyShare 5.0 version: #python ncTNodeManager-remote -h localhost:9306 get_upload_log_status
• AnyShare Family 6.0 version: ./ncTECMSManager-remote -h localhost:9201 get_upload_log_status
7. For incorrect configuration, you can delete it and reconfigure it:
• AnyShare 5.0 version: python ncTNodeManager-remote -h localhost:9306 delete_log_server "*" "*" "192.168.180.42" “20010" "TCP"
• AnyShare Family 6.0 version: ./ncTECMSManager-remote -h localhost:9201 delete_log_server "local1" "*" "192.168.180.42" "20010" "TCP"
![](https://new-official-website-1256829807.cos.ap-shanghai.myqcloud.com/images/%E6%B3%A8%E6%84%8F%20(1)_22.png)
< Previous:
Next: >