Custom Search

Tuesday, November 11, 2014

OpenContrail Howto Check Logs

1)
Help
#contrail-logs --help
2)
Logs from node type (default: None)
contrail-logs --node-type WebUI
contrail-logs --node-type Config
contrail-logs --node-type Compute
contrail-logs --node-type OpenStack
contrail-logs --node-type Database
3)
Logs from module (default: None)
contrail-logs --module ControlNode
contrail-logs --module VRouterAgent
contrail-logs --module ApiServer
contrail-logs --module Schema
contrail-logs --module OpServer
contrail-logs --module Collector
contrail-logs --module QueryEngine
contrail-logs --module ServiceMonitor
contrail-logs --module DnsAgent
contrail-logs --module DiscoveryService
contrail-logs --module IfmapServer
contrail-logs --module XmppServer
contrail-logs --module Contrail-Analytics-Nodemgr
contrail-logs --module Contrail-Control-Nodemgr
contrail-logs --module Contrail-Config-Nodemgr
contrail-logs --module Contrail-Database-Nodemgr
contrail-logs --module Contrail-WebUI-Nodemgr
contrail-logs --module Contrail-Vrouter-Nodemgr
contrail-logs --module Storage-Stats-mgr
4)
Logs of level (default: None)
contrail-logs --level SYS_INFO
contrail-logs --level SYS_ERR
contrail-logs --level SYS_WARN
contrail-logs --level SYS_DEBUG
5)
Logs of object type (default: None)
contrail-logs --object-type service-chain
contrail-logs --object-type database-node
contrail-logs --object-type virtual-machine
contrail-logs --object-type bgp-peer
contrail-logs --object-type xmpp-peer
contrail-logs --object-type generator
contrail-logs --object-type config
contrail-logs --object-type virtual-network
contrail-logs --object-type vrouter
contrail-logs --object-type analytics-query
contrail-logs --object-type routing-instance
contrail-logs --object-type service-instance
contrail-logs --object-type control-node
contrail-logs --object-type dns-node
contrail-logs --object-type xmpp-connection
contrail-logs --object-type analytics-node
contrail-logs --object-type analytics-query-id
contrail-logs --object-type config-node
6)
Display list of object names (default: None)
contrail-logs --object-type service-chain --object-values
contrail-logs --object-type database-node --object-values
contrail-logs --object-type virtual-machine --object-values
contrail-logs --object-type bgp-peer --object-values
contrail-logs --object-type xmpp-peer --object-values
contrail-logs --object-type generator --object-values
contrail-logs --object-type config --object-values
contrail-logs --object-type virtual-network --object-values
contrail-logs --object-type vrouter --object-values
contrail-logs --object-type analytics-query --object-values
contrail-logs --object-type routing-instance --object-values
contrail-logs --object-type service-instance --object-values
contrail-logs --object-type control-node --object-values
contrail-logs --object-type dns-node --object-values
contrail-logs --object-type xmpp-connection --object-values
contrail-logs --object-type analytics-node --object-values
contrail-logs --object-type analytics-query-id --object-values
contrail-logs --object-type config-node --object-values
7)
Logs of object name (default: None)
contrail-logs --object-type service-chain --object-values --object-id XXXXXX
contrail-logs --object-type database-node --object-values --object-id XXXXXX
contrail-logs --object-type virtual-machine --object-values --object-id XXXXXX
contrail-logs --object-type bgp-peer --object-values --object-id XXXXXX
contrail-logs --object-type xmpp-peer --object-values --object-id XXXXXX
contrail-logs --object-type generator --object-values --object-id XXXXXX
contrail-logs --object-type config --object-values --object-id XXXXXX
contrail-logs --object-type virtual-network --object-values --object-id XXXXXX
contrail-logs --object-type vrouter --object-values --object-id XXXXXX
contrail-logs --object-type analytics-query --object-values --object-id XXXXXX
contrail-logs --object-type routing-instance --object-values --object-id XXXXXX
contrail-logs --object-type service-instance --object-values --object-id XXXXXX
contrail-logs --object-type control-node --object-values --object-id XXXXXX
contrail-logs --object-type dns-node --object-values --object-id XXXXXX
contrail-logs --object-type xmpp-connection --object-values --object-id XXXXXX
contrail-logs --object-type analytics-node --object-values --object-id XXXXXX
contrail-logs --object-type analytics-query-id --object-values --object-id XXXXXX
contrail-logs --object-type config-node --object-values --object-id XXXXXX
8)
Select field to filter the log (default: None)
contrail-logs --object-type config-node --object-select-field ObjectLog
contrail-logs --object-type config-node --object-select-field SystemLog

No comments:

Post a Comment