Document toolboxDocument toolbox

show log

The show log command displays a specified log file. It is helpful for obtaining diagnostic information. The syslog file is shown by default if no log is specified. The IF-MAP log displays all the IF-MAP protocol related events. It contains the XML messages communicated between Infoblox Orchestration Server and the clients.

Syntax

show log [ syslog | debug | audit | ifmapclient | ifmapserver ] <log num> [ tail <num> | follow/regex/ ]

Use this command to display the contents of a specified log file.

Argument

Description

syslog

Displays the syslog log file.

debug

Displays the debug log file.

audit

Displays the audit log file.

ifmapclient

Displays the IF-MAP log on the DHCP server when it is configured as an IF-MAP client.

ifmapserver

Displays the IF-MAP log on Infoblox Orchestration Server.

log num

Allows you to view rolled logs by specifying a number from 0 to 9. You can use this option when you display the syslog file, audit log, and ifmap log.

tail <num>

Shows the last num lines from the log file or, if no number is specified, the last 10 lines are displayed.

/regex/

Matches the pattern specified in regex and displays the matched lines from the selected log file. To insert "/" in the search pattern, use escape sequence \/. The search string starts at the first forward slash (/) ends at the second forward slash (/), and ignores the remaining.
For information about regular expressions, see Appendix B, Regular Expressions, in the Infoblox Administrator Guide.

Examples

Displaying syslog file

Infoblox > show log syslog
Aug 23 17:48:50 (none) syslog-ng[894]: new configuration initialized
Aug 23 17:48:50 (none) kernel: ip_conntrack version 2.4 (8183 buckets, 65464 max) - 224
bytes per conntrack
Aug 23 17:48:54 (none) kernel: ADDRCONF(NETDEV_UP): eth1: link is not ready
Aug 23 17:48:56 (none) kernel: e1000: eth1: e1000_watchdog: NIC Link is Up 1000 Mbps
Full Duplex
Aug 23 17:48:56 (none) kernel: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Aug 23 17:48:58 (none) ntpd[31091]: ntpd 4.1.2@1.892 Fri Aug 4 17:14:23 EDT 2006 (1)
Aug 23 17:48:58 (none) ntpd[31091]: signal_no_reset: signal 13 had flags 4000000
Aug 23 17:48:58 (none) ntpd[31091]: precision = 11 usec
Aug 23 17:48:58 (none) ntpd[31091]: kernel time discipline status 0040
Aug 23 17:48:58 (none) ntpd[31091]: frequency initialized 0.000 from
/usr/conf/ntp.drift
Enter <return> to continue with More lines or enter q<return> to go back to command line

Displaying the last five lines of the debug log file

Infoblox > show log debug tail 5
[2006/08/23 17:48:49.346] (30748 /infoblox/one/bin/init_database) db_local.c:347
idb_database_local_create_env(): cache_size: 134217728
[2006/08/23 17:48:49.739] (30748 /infoblox/one/bin/init_database) init_database.c:45
main(): Database initialized: /data/rep
[2006/08/23 17:48:49.812] (30749 /infoblox/one/bin/db_import_3x) main.c:360 main():
Starting db_import: importing from /infoblox/one/factory_defaults
[2006/08/23 17:48:49.899] (30749 /infoblox/one/bin/db_import_3x) partition_bitmap.c:208
onedb_recalculate_partition_bitmaps(): Begin partitioning phase
[2006/08/23 17:48:49.900] (30749 /infoblox/one/bin/db_import_3x) partition_bitmap.c:283
onedb_recalculate_partition_bitmaps(): Total of 2 object(s) partitioned, committing
database

Matching a pattern in a log file

Infoblox > show log syslog /ntpd/
6:Aug 23 17:48:58 (none) ntpd[31091]: ntpd 4.1.2@1.892 Fri Aug 4 17:14:23 EDT 2006 (1)
7:Aug 23 17:48:58 (none) ntpd[31091]: signal_no_reset: signal 13 had flags 4000000
8:Aug 23 17:48:58 (none) ntpd[31091]: precision = 11 usec
9:Aug 23 17:48:58 (none) ntpd[31091]: kernel time discipline status 0040
10:Aug 23 17:48:58 (none) ntpd[31091]: frequency initialized 0.000 from
/usr/conf/ntp.drift
11:Aug 23 17:48:58 (none) ntpd[31091]: frequency initialized 0.000 from
/usr/conf/ntp.drift
13:Aug 23 17:50:13 (none) ntpd[31091]: ntpd exiting on signal 15
18:Aug 23 17:50:23 (none) ntpd[32623]: ntpd 4.1.2@1.892 Fri Aug 4 17:14:23 EDT 2006 (1)
19:Aug 23 17:50:23 (none) ntpd[32623]: signal_no_reset: signal 13 had flags 4000000
20:Aug 23 17:50:23 (none) ntpd[32623]: precision = 9 usec
Enter <return> to continue with More lines or enter q<return> to go back to command line

Displaying the IF-MAP log file

Infoblox > show log ifmapserver
2010-03-16T17:48:04 REQUEST "client1" PUBLISH: info <?xml version="1.0"
encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1" xmlns:meta="http://www.trustedcomputinggroup.org/2006/IFMAP-METADATA/1">
<env:Header> <ifmap:session-id>28baf7e3d84db248097e976bf0dce9c2</ifmap:session-id>
</env:Header> <env:Body> <ifmap:publish> <update> <link> <identifier> <ip-address value="10.0.0.5"/> </identifier> <identifier> <mac-address value="56:b1:19:3b:48:0d"/>
</identifier> </link> <metadata> <meta:ip-mac cardinality="singleValue">
<start-time>2009-10-27T00:00:00</start-time> <end-time>2009-10-28T00:00:00</end-time>
<dhcp-server>10.0.0.3</dhcp-server> </meta:ip-mac> </metadata> </update>
</ifmap:publish> </env:Body> </env:Envelope>
2010-03-16T17:48:04 RESPONSE "client1" PUBLISH: info <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"xmlns:SOAP-ENC="http://schem as.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:meta="http://www.trustedcomputinggroup.org/2006/IFMAP-METADATA/1" xmlns:wsdl="http://www.trustedcomputinggroup.org/2008/IFMAP/1/ifmap.wsdl" xmlns:meta3="www.stan.com2" xmlns:ifmap="http://www.trustedcomputinggroup.org/2006/IFMAP/1"> <SOAP-ENV:Header>
<ifmap:session-id SOAP-ENV:mustUnderstand="1"> 28baf7e3d84db248097e976bf0dce9c2
</ifmap:session-id> </SOAP-ENV:Header> <SOAP-ENV:Body> <ifmap:response validation="BaseOnly"> <publishReceived/> </ifmap:response>
</SOAP-ENV:Body></SOAP-ENV:Envelope>