Journaux générés par le package de périphériques en mode hybride
Le package d’appareils NetScaler Hybrid Mode génère des journaux liés à la configuration et à la surveillance. Les journaux générés se trouvent à l’adresse /data/devicescript/ Citrix.NetScalerMas.1.0/logs.
Voici un exemple de fragment de debug.logd’un Cisco APIC :
2016-06-28 03:06:53.879767 DEBUG Thread-20 18723 [10.102.102.62, 24063] Device manager details ip = 10.102.102.81, port = 80
2016-06-28 03:06:53.879856 DEBUG Thread-20 18724 [10.102.102.62, 24063] ++++++++++++++ serviceAudit request +++++++++++++++++
2016-06-28 03:06:53.879929 DEBUG Thread-20 18725 [10.102.102.62, 24063] ++++++++++ getStyleBookObjects +++++++++++++
2016-06-28 03:06:53.879995 DEBUG Thread-20 18726 [10.102.102.62, 24063] NMAS collection A3 = (4, 'Stylebook', 'stylebook_1') B3 = {'state': 1, 'transaction': 0, 'ackedstate': 0, 'value': {(5, 'name', 'stylebookName'): {'state': 1, 'transaction': 0, 'ackedstate': 0, 'value': 'APIC-HTTP-LB'}}}
2016-06-28 03:06:53.880045 DEBUG Thread-20 18727 [10.102.102.62, 24063] NMAS collection styleBookName= APIC-HTTP-LB
2016-06-28 03:06:53.880093 DEBUG Thread-20 18728 [10.102.102.62, 24063] NMAS collection retCol= {'Stylebook': 'APIC-HTTP-LB', 'tuple': ((0, '', 5230), (4, 'Stylebook', 'stylebook_1'))}
2016-06-28 03:06:53.880140 DEBUG Thread-20 18729 [10.102.102.62, 24063] ++++ devMgrStyleBookUrl = http://10.102.102.81/stylebook/nitro/v1/config/stylebooks/com.citrix.adc.stylebooks/1.1/APIC-HTTP-LB
2016-06-28 03:06:54.135240 DEBUG Thread-20 18730 [10.102.102.62, 24063] ++++ Response from styleBookresCode serviceAudit = {u'stylebook': {u'uses_builtin_namespaces': {u'netscaler.nitro.config': u'10.5'}, u'name': u'APIC-HTTP-LB', u'used_by_stylebooks': [], u'namespace': u'com.citrix.adc.stylebooks', u'source': u'---\nname: APIC-HTTP-LB\nnamespace: com.citrix.adc.stylebooks\nversion: "1.1"\ndisplay-name: "Sample StyleBook for APIC Load Balanced Application"\ndescription: "This is a sample StyleBook for HTTP Load Balanced Application configuration via APIC"\nschema-version: "1.0"\nimport-stylebooks: \n - \n namespace: netscaler.nitro.config\n prefix: ns\n version: "10.5"\n - \n namespace: "com.citrix.adc.stylebooks"\n prefix: "stlb"\n version: "1.1"\nparameters-default-sources:\n - stlb::APIC-ROOT\nsubstitutions:\n lb-name(appname, port): $appname + "-" + str($port) + "-lb"\n sg-name(appname, port): $appname + "-" + str($port) + "-sg"\n healthmonitor[]:\n true: "NO"\n false: "YES"\ncomponents: \n - \n name: lbvserver\n type: ns::lbvserver\n repeat: $parameters.app-services\n repeat-item: app\n properties: \n name: $substitutions.lb-name($parameters.appname, $app.virtual-port)\n ipv46: $app.virtual-ip\n port: $app.virtual-port\n servicetype: $app.protocol\n lbmethod?: $app.algorithm\n persistencetype?: $app.persistence\n - \n name: svcgrp\n type: ns::servicegroup\n repeat: $parameters.app-services\n repeat-item: app\n properties: \n name: $substitutions.sg-name($parameters.appname, $app.virtual-port)\n servicetype: $app.protocol\n useproxyport?: $app.sg-advanced.useproxyport\n usip?: $app.sg-advanced.usip\n cip?: $app.sg-advanced.cip\n cipheader?: $app.sg-advanced.cipheader\n healthmonitor?: $substitutions.healthmonitor($app.skip_healthmonitor)\n components: \n -\n name: lbvserver-svg-binding\n type: ns::lbvserver_servicegroup_binding\n properties: \n name: $substitutions.lb-name($parameters.appname, $app.virtual-port)\n servicegroupname: $parent.properties.name\n - \n name: svg-members\n type: ns::servicegroup_servicegroupmember_binding\n condition: $app.server-ips\n repeat: $app.server-ips\n repeat-item: serverip\n properties: \n ip: $serverip\n port: $app.server-port\n servicegroupname: $parent.properties.name\noutputs: \n - \n name: lbvservers\n value: $components.lbvserver\n - \n name: servicegroups\n value: $components.svcgrp', u'version': u'1.1', u'uses_stylebooks': [{u'version': u'1.1', u'namespace': u'com.citrix.adc.stylebooks', u'name': u'APIC-ROOT'}]}}
2016-06-28 03:06:54.359142 DEBUG Thread-20 18731 [10.102.102.62, 24063] ++++ Dev Mgr request details devMgrUrl = http://10.102.102.81/admin/v1/apic
2016-06-28 03:06:54.359221 DEBUG Thread-20 18732 [10.102.102.62, 24063] ++++ Response from Device Mgr serviceAudit = {"APIC":[]}
2016-06-28 03:06:54.359266 DEBUG Thread-20 18733 [10.102.102.62, 24063] ++++++++++++++ serviceAudit response = {"APIC":[]}
2016-06-28 03:06:54.359306 DEBUG Thread-20 18734 [10.102.102.62, 24063] ++++++++++++++ serviceAudit response headers content type= application/json; charset=utf-8
2016-06-28 03:06:54.359394 DEBUG Thread-20 18735 [10.102.102.62, 24063] ++++++++++++++ serviceAudit response headers = {'content-length': '11', 'job_id': 'ctxt-f4db2883-e42c-4262-a35f-04628c4ad5ea', 'x-content-type-options': 'nosniff', 'transfer-encoding': 'chunked', 'connection': 'close', 'date': 'Wed, 29 Jun 2016 10:58:33 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'application/json; charset=utf-8'}
2016-06-28 03:06:54.359480 DEBUG Thread-20 18736 [10.102.102.62, 24063] ++++++++++++++ pollingURL = http://10.102.102.81/admin/v1/journalcontexts/ctxt-f4db2883-e42c-4262-a35f-04628c4ad5ea
2016-06-28 03:06:54.359713 DEBUG Thread-20 18737 [10.102.102.62, 24063] ++++++++++++++ pollingStatus = True, pollingTime = 0
2016-06-28 03:06:54.483228 DEBUG Thread-20 18738 [10.102.102.62, 24063] ++++++++++++++ pollingResponse json = {u'journalcontext': {u'status': u'In Progress', u'scopes': [], u'entity_id': None, u'name': u'Create apic', u'operation': u'POST', u'entity_type': u'apic', u'service_name': u'admin', u'start_time': u'2016-06-29T10:58:33.760565', u'is_default': u'false', u'end_time': None, u'target': u'10.102.102.81', u'message': None, u'id': u'ctxt-f4db2883-e42c-4262-a35f-04628c4ad5ea', u'replication_status': u''}}
2016-06-28 03:07:04.493074 DEBUG Thread-20 18739 [10.102.102.62, 24063] ++++++++++++++ pollingStatus = True, pollingTime = 1
2016-06-28 03:07:04.587595 DEBUG Thread-20 18767 [10.102.102.62, 24063] ++++++++++++++ pollingResponse json = {u'journalcontext': {u'status': u'In Progress', u'scopes': [], u'entity_id': None, u'name': u'Create apic', u'operation': u'POST', u'entity_type': u'apic', u'service_name': u'admin', u'start_time': u'2016-06-29T10:58:33.760565', u'is_default': u'false', u'end_time': None, u'target': u'10.102.102.81', u'message': None, u'id': u'ctxt-f4db2883-e42c-4262-a35f-04628c4ad5ea', u'replication_status': u''}}
2016-06-28 03:07:14.597812 DEBUG Thread-20 18790 [10.102.102.62, 24063] ++++++++++++++ pollingStatus = True, pollingTime = 2
2016-06-28 03:07:14.692590 DEBUG Thread-20 18791 [10.102.102.62, 24063] ++++++++++++++ pollingResponse json = {u'journalcontext': {u'status': u'Finished', u'scopes': [], u'entity_id': None, u'name': u'Create apic', u'operation': u'POST', u'entity_type': u'apic', u'service_name': u'admin', u'start_time': u'2016-06-29T10:58:33.760565', u'is_default': u'false', u'end_time': u'2016-06-29T10:58:44.486919', u'target': u'10.102.102.81', u'message': u'Done', u'id': u'ctxt-f4db2883-e42c-4262-a35f-04628c4ad5ea', u'replication_status': u''}}
2016-06-28 03:07:14.692932 DEBUG Thread-20 18793 [10.102.102.62, 24063] Attempts 1
2016-06-28 03:07:14.693031 DEBUG Thread-20 18794 [10.102.102.62, 24063] Cluster (u'uni/tn-coke_SDX2/lDevVip-ADCHybridMode_1', (0, '', 5230)), transaction: 0
2016-06-28 03:07:14.693147 DEBUG Thread-20 18795 [10.102.102.62, 24063] Attempts for {'name': 'ADCHybridMode_1', 'host': '10.102.102.62', 'virtual': False, 'devs': {'ADCHybridMode_1_Device_1': {'state': 0, 'virtual': False, 'manager': {'hosts': {'10.102.102.81': {'port': 80}}, 'name': 'NMAS_1', 'creds': {'username': 'nsroot', 'password': '<hidden>'}}, 'version': '11.0', 'host': '10.102.102.62', 'port': 80, 'creds': {'username': 'nsroot', 'password': '<hidden>'}}}, 'manager': {'hosts': {'10.102.102.81': {'port': 80}}, 'name': 'NMAS_1', 'creds': {'username': 'nsroot', 'password': '<hidden>'}}, 'contextaware': True, 'port': 80, 'creds': {'username': 'nsroot', 'password': '<hidden>'}} is 0
2016-06-28 03:07:14.693339 DEBUG Thread-20 18796 [10.102.102.62, 24063] Deleting (u'uni/tn-coke_SDX2/lDevVip-ADCHybridMode_1', (0, '', 5230))
2016-06-28 03:07:14.693379 DEBUG Thread-20 18797 [10.102.102.62, 24063] pending: False, delete: False, txId: None
2016-06-28 03:07:14.693517 DEBUG Thread-20 18798 [10.102.102.62, 24063] Faults: []
2016-06-28 03:07:14.693558 DEBUG Thread-20 18799 [10.102.102.62, 24063] Health: []
2016-06-28 03:07:14.693914 DEBUG Thread-20 18800 [10.102.102.62, 24063] Send num: 761, type: 220, len: 382
<!--NeedCopy-->
Journaux générés par le package de périphériques en mode hybride
Dans cet article
Copié !
Échec !