Skip to content

Get Log

Overview

This program is a command-line utility designed to retrieve log files from the Grid.

Usage

Usage: get-log [OPTIONS]

  Get NIOS Log from Member

Options:
  Required Parameters: 
    -g, --grid-mgr TEXT           Infoblox Grid Manager  [required]
    -m, --member TEXT             Member to retrieve log from  [required]
  Optional Parameters: 
    -u, --username TEXT           Infoblox admin username  [default: admin]
    -t, --log-type LOG_TYPE       select log type  [default: SYSLOG]
    -n, --node-type [ACTIVE|PASSIVE]
                                  Node: ACTIVE | PASSIVE  [default: ACTIVE]
    -r, --rotated-logs            Exclude Rotated Logs
    -w, --wapi-ver TEXT           Infoblox WAPI version  [default: 2.11]
  Logging Parameters: 
    --debug                       enable verbose debug output
  -h, --help                      Show this message and exit.

Examples

Syslog Download

The following example will download the SYSLOG file from the infoblox.localdomain.

get-log -u admin -g 192.168.1.2 -u admin -m infoblox.localdomain -t SYSLOG

Screen output from command

1
2
3
4
5
6
7
8
get-log -u admin -g 192.168.1.2 -m infoblox.localdomain -t SYSLOG
Enter password for [admin]: 
2023-12-09 17:13:42 [nios_get_log.py:108] INFO connected to Infoblox grid manager 192.168.1.2
2023-12-09 17:13:42 [fileop.py:982] INFO fetching SYSLOG log files for infoblox.localdomain
2023-12-09 17:13:48 [fileop.py:1019] INFO downloading data from https://192.168.1.2/http_direct_file_io/req_id-DOWNLOAD-1209231342096359/sysLog.tar.gz
2023-12-09 17:13:48 [fileop.py:1029] INFO writing data to 2023120948-infoblox.localdomain-SYSLOG.tgz file
2023-12-09 17:13:51 [fileop.py:719] INFO file 2023120948-infoblox.localdomain-SYSLOG.tgz download complete
2023-12-09 17:13:51 [nios_get_log.py:115] INFO finished!

Audit Log Download

The following example will download the AUDITLOG file from the infoblox.localdomain.

get-log -u admin -g 192.168.1.2 -u admin -m infoblox.localdomain -t AUDITLOG

Screen output from command

1
2
3
4
5
6
7
8
9
get-log -u admin -g 192.168.1.2 -u admin -m infoblox.localdomain -t AUDITLOG
Enter password for [admin]: 
2023-12-09 19:13:02 [nios_get_log.py:122] INFO connected to Infoblox grid manager 192.168.1.2
2023-12-09 19:13:02 [fileop.py:1008] INFO fetching AUDITLOG log files for infoblox.localdomain
2023-12-09 19:13:02 [fileop.py:1045] INFO downloading data from https://192.168.1.2/http_direct_file_io/req_id-DOWNLOAD-1210011302085953/auditLog.tar.gz
2023-12-09 19:13:02 [fileop.py:675] INFO https://192.168.1.2/http_direct_file_io/req_id-DOWNLOAD-1210011302085953/auditLog.tar.gz
2023-12-09 19:13:02 [fileop.py:41] INFO writing file: 2023120902-infoblox.localdomain-AUDITLOG.tgz
2023-12-09 19:13:02 [fileop.py:727] INFO file 2023120902-infoblox.localdomain-AUDITLOG.tgz download complete
2023-12-09 19:13:02 [nios_get_log.py:129] INFO finished!