cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vhannum
Community Manager
Community Manager

Mosaic Cloud Platform Log Roll-up

The following video describes performing a Mosaic Cloud Platform log roll-up. A copy/paste version of the log roll-up commands used in this process and a complete Mosaic Cloud Platform log roll-up command transcript are available below the video.

 

Copy/Paste Commands for a Mosaic Cloud Platform Log Roll-up

/opt/adtran/mcp-util/log_rollup/generate-log-rollup.sh

 Mosaic Cloud Platform Log Roll-up Command Transcript

[root@host-10-255-68-221 tmp]# /opt/adtran/mcp-util/log_rollup/generate-log-rollup.sh
Log Rollup utility started
The tar file will be generated in /tmp, Please change if you wish to generate it somewhere else: /tmp
/tmp
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'PLAY [Creates a tar file with log files and other information such as MCP configuration and resource metrics] ************************************************************************************************TASK [Gathering Facts] ***************************************************************************************************************************************************************************************
ok: [localhost]TASK [Load the config file] **********************************************************************************************************************************************************************************
ok: [localhost]TASK [Get timestamp from the system] *************************************************************************************************************************************************************************
changed: [localhost]TASK [Find the status of the User(root/non-root)] ************************************************************************************************************************************************************
changed: [localhost]TASK [User-type ?] *******************************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "Running as Root User!!!"
}TASK [get stat of mcp_home location] *************************************************************************************************************************************************************************
ok: [localhost]TASK [assert mcp_home location] ******************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}TASK [get stat of output dir location] ***********************************************************************************************************************************************************************
ok: [localhost]TASK [assert output_dir location] ****************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}TASK [Disk Check] ********************************************************************************************************************************************************************************************
changed: [localhost]TASK [Assert Minimum Disk space requirement] *****************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "All assertions passed"
}TASK [Create Directories] ************************************************************************************************************************************************************************************
changed: [localhost] => (item=log-rollup-2023-03-08-21-01-21)
changed: [localhost] => (item=log-rollup-2023-03-08-21-01-21/elastic)
changed: [localhost] => (item=log-rollup-2023-03-08-21-01-21/kafka)
changed: [localhost] => (item=log-rollup-2023-03-08-21-01-21/mpstats)
changed: [localhost] => (item=log-rollup-2023-03-08-21-01-21/Thread_dumps)
changed: [localhost] => (item=log-rollup-2023-03-08-21-01-21/Heap_dumps)
changed: [localhost] => (item=log-rollup-2023-03-08-21-01-21/mcp_install_uninstall_log)
changed: [localhost] => (item=log-rollup-2023-03-08-21-01-21/messages)TASK [get file stat] *****************************************************************************************************************************************************************************************
ok: [localhost -> localhost]TASK [get user.conf] *****************************************************************************************************************************************************************************************
changed: [localhost]TASK [gather command output] *********************************************************************************************************************************************************************************
changed: [localhost]TASK [Get plugin folder contents] ****************************************************************************************************************************************************************************
changed: [localhost]TASK [Write the plugin info to a file] ***********************************************************************************************************************************************************************
changed: [localhost]TASK [Get MCP Version] ***************************************************************************************************************************************************************************************
changed: [localhost]TASK [Write the MCP version info to a file] ******************************************************************************************************************************************************************
changed: [localhost]TASK [Copy mcp-install log] **********************************************************************************************************************************************************************************
changed: [localhost] => (item=/var/log/mcp-install_2022-01-28T21:25:23+0000.log)
changed: [localhost] => (item=/var/log/mcp-install_2022-03-25T20:48:03+0000.log)
changed: [localhost] => (item=/var/log/mcp-install_2022-04-28T14:43:04+0000.log)
changed: [localhost] => (item=/var/log/mcp-install_2022-06-22T17:37:08+0000.log)
changed: [localhost] => (item=/var/log/mcp-install_2022-04-26T03:01:50+0000.log)
changed: [localhost] => (item=/var/log/mcp-install_2022-02-14T17:16:21+0000.log)
changed: [localhost] => (item=/var/log/mcp-install_2022-07-06T14:52:02+0000.log)
changed: [localhost] => (item=/var/log/mcp-install_2022-04-25T13:18:56+0000.log)
[truncated] skipping: [localhost] => (item=path-balancer)
skipping: [localhost] => (item=address-resolution-service)
changed: [localhost] => (item=cloud-platform-http-service)
changed: [localhost] => (item=northbound-interface)
skipping: [localhost] => (item=nms-gui)
changed: [localhost] => (item=logstash)
changed: [localhost] => (item=kafka)
changed: [localhost] => (item=elasticsearch)
changed: [localhost] => (item=zookeeper)
changed: [localhost] => (item=activemq)
changed: [localhost] => (item=dnsmasq)TASK [Create tar.gz file] *********************************************************************************************************************** *************************************************************
changed: [localhost]TASK [Delete assembly directory] **************************************************************************************************************** *************************************************************
changed: [localhost]TASK [Hey Non-root user want more debug information ?] ****************************************************************************************** *************************************************************
skipping: [localhost]TASK [tar.gz file generated] ******************************************************************************************************************** *************************************************************
ok: [localhost] => {
"msg": "tar file log-rollup-2023-03-08-21-01-21.tar.gz is generated at location /tmp"
}PLAY RECAP ************************************************************************************************************************************** *************************************************************
localhost : ok=40 changed=28 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0[root@host-10-255-68-221 tmp]# ll
total 167560
-rw-r--r--. 1 root root 171578039 Mar 8 21:21 log-rollup-2023-03-08-21-01-21.tar.gz
drwx------. 2 root root 25 Mar 8 21:00 ssh-j4hstOpNsK
drwx------. 3 root root 17 Jan 3 14:04 systemd-private-24a384f75b384dd18ec56f9d38295db8-chronyd.service-GDfPzD
Labels (2)
0 Kudos
Reply