Академический Документы
Профессиональный Документы
Культура Документы
This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
EN-000451-00
You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com
Copyright 2010 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.
VMware, Inc.
Contents
AboutThisBook
1 Overview 9
SystemArchitecture 9 SingleboxAppliance 11 DistributedApplianceSolutions 11 VirtualandPhysicalApplianceSolutions 12 VirtualApplianceDeployment 12 PhysicalApplianceDeployment 13 MirroredNetworkTraffic 13 vCollector 13 MixedEnvironment 13 WhereToGoNext 14 InstallationofNeworAdditionalADMComponents 14 Licenses 14 UpgradingADM 14 MigratingtoaNewAppliance 14 Security 14
2 InstallingADM 15
ADMInstallationRequirements 15 InstallationPersonnel 15 ESXResources 15 InstallingthevSphereClient 16 DisablingvMotion 16 PreparingtheEnvironment 16 PreparinganESXConfiguration 16 CreatingaNewvSwitchforPassiveDiscovery 17 ConfiguringthevSwitchGeneralSettingsforPassiveDiscovery 17 ConfiguringthevSwitchforPassiveCollector 17 ConfiguringdvSwitchforPassiveCollector 18 DeployingtheVirtualAppliances 18 DeployingtheADMVirtualAppliances 18 BeforeYouBegin 19 DeploymentProcedure 19 InstallingWindowsCollector 20 BeforeYouBegin 20 Deployment 20 Uninstall 21
3 SettingUpADM 23
Process 23 OrderofSetup 23 ADMSetupProcedures 23 LaunchingtheFirstBootConfigurationTool 24
VMware, Inc.
Administration Guide
4 SecuringADM 29
ChangingtheRootPassword 29 ResettingtheADMRootPassword 29 OpenSSLSelfSignedTestCertificates 30 CASignedTestCertificates 30 SelfSignedCertificates 30 Copyingthe.keyand.crtFiles 31
5 Maintenance 33
ADMServices 33 ManagingServiceswithadm_control 34 ProductSupportPackages 34 UsingtheADMConsole 35 UsingtheCLI 35 RestoringanADMEnvironmentbyUsingaProductSupportPackage RestoretheADMDatabase 36 RestoringtheCustomDiscoveryandConfigurationFiles 37 ReconfiguringanADMDeployment 38 AddingaRemoteDatabasetoanExistingADMDeployment 38 ConvertingaSingleboxorAggregatortoaRemoteDatabase 38 MovingaDatabasetoaRemoteAppliance 39 Licenses 39 UploadingaLicense 40
36
6 UpgradingADM 41
Overview 41 ApplianceType 41 MixedEnvironments 41 Licenses 41 ApplianceMigration 41 BackingUpData 41 UpgradingAppliances 42 ImportantNotes 42 PreliminaryProcedures 42 UpgradingAppliancesUsingCLI 42 PostUpgradeSteps 43
7 MigratingtoaNewAppliance 45
Overview 45 SupportedMigration 45 Licenses 45 SystemArchitecture 45 Process 46
VMware, Inc.
Contents
PreliminaryProcedures 46 BackingUpWinApeMigrationFiles 46 RestoringWinApeMigrationFiles 47 DataRestoration 47 SingleboxSolution 47 DistributedSolutions 47 Collectors 47 WinApe 47 Aggregator 47 DistributedSolutionwithRemoteDatabase 48 Collectors 48 WinApe 48 Database 48 Aggregator 48 PostMigrationSteps 48
8 TroubleshootingADM 49
TroubleshootingtheADMbyUsingtheProductSupportPackage 49 DetailDiscoveryTroubleshooting 49 WMI 49 single.sh 49 Location 50 Usage 50 Examples: 51 snmpdump 52 Location 52 Usage 52 Examples 53 nlcapture 53 Location 53 Usage 53
9 UninstallingADM 55
UninstallingtheADMAppliance 55
A TimeZones 57 B ADMAPITutorial 59
APIFeatures 59 Insight_control 59 AsynchAPI 60 DumpAPI 60 BulkAPI 61 WebServicesAPI 61
Index 63
VMware, Inc.
Administration Guide
VMware, Inc.
TheVMwarevCenterApplicationDiscoveryManager(ADM)AdministrationGuideprovidesinformation thattheadministratorsarerequiredtoinstallandconfiguretheADM.
Intended Audience
ThisdocumentispartoftheVMwarevCenterApplicationDiscoveryManagerdocumentationset,andis intendedforusebysystemadministratorsandintegratorsresponsibleforinstallingADM. TheinstallationproceduresinthisdocumentmustbeperformedbyITprofessionalsfamiliarwith virtualizationandVMwaretechnologiessuchasVMwareESXserversandrelatedvirtualandphysical equipment.
Document Feedback
VMwarewelcomesyoursuggestionsforimprovingourdocumentation.Ifyouhavecomments,sendyour feedbacktodocfeedback@vmware.com.
Support Offerings
TofindouthowVMwaresupportofferingscanhelpmeetyourbusinessneeds,goto http://www.vmware.com/support/services.
VMware, Inc.
Administration Guide
VMware, Inc.
Overview
ThischapterdescribesthedifferentVMwarevCenterApplicationDiscoveryManager(ADM)architecture solutionsandconfiguration.Topicsinclude:
System Architecture
TheADMprovidessystemarchitecturesolutionstomeettherequirementsofdifferentenvironmentsas showninFigure 11. Figure 1-1. ADM Components
Passive Discovery
Database
Aggregator
Active Discovery-Unix
Active Discovery-Windows
ActiveDiscovery Windows
AdiscoveryenginethatusesWMIbaseddiscoverypoliciesforperformingactivediscoveryonWindows machines.
VMware, Inc.
Administration Guide
Aggregator
Database
10
VMware, Inc.
Chapter 1 Overview
Single-box Appliance
Inasingleboxappliancesolutionarchitecture,theADMcomponentsareenabledonasingleVirtual Appliance(VA)asshowninFigure 12. Figure 1-2. Single-box Appliance Architecture
ESX1 vSwitch
ADM VM2 Role=Windows collector (running Win2008 on any ESX) Active DiscoveryWindows
Database
Physical switch 1
Physical switch 2
Chapter 3providestheconfigurationinstructions.
VMware, Inc.
11
Administration Guide
Database
ESX4 vSwitch ADM VM6 Role = Windows Collector (running Win2008 on any ESX) Active DiscoveryWindows Runs on (Virtualization) Logical monitoring port connectivity ADM Connectivity
Physical switch 1
Physical switch 2
NOTEInaDistributedwithremotedatabasesetup,thereisadesignatedappliancetohostthedatabase.Also, PassiveandDetailDiscoverycanrunonsingleormultipleCollectors.
12
VMware, Inc.
Chapter 1 Overview
AddfewmorenetworkinterfacestoESXserver. InstallanotherADMPassiveCollectoronadifferentESXserver.
NOTETheADMPassiveCollectorcanworkwithmaximumofthreemonitorports.Ifyouhavetoconnect morethanthreemonitorports,youmustaddanotherADMPassiveCollector.
vCollector
TheADMusesavirtualcollector(vCollector)tolistentocommunicationbetweenvirtualmachinesthatrun onthesameVMwareESXServer.AvCollectorispresentinsideavirtualmachineanditslistenercollectsthe informationaboutthevirtualmachinesdeployedontheESXServer.BydeployingavCollector,theADMis abletopassivelydiscoverdependenciesinavirtualizedenvironment.Youcanthenviewinformationabout thevirtualmachinesthataredeployedonthesameESXServerincluding:
Mixed Environment
TheADM6.1releaseintroducesADMasavirtualappliance,butitalsosupportsupgradingfrom6.0ona physicalIBMappliances.Youcanupgradeyourphysicalenvironmentwithadditionalvirtual6.1appliances likemixedenvironment.ThisadditionalvirtualappliancecanplayaroleofPassiveCollectors(vCollectors) oranadditionalPassiveandActiveCollectors.
VMware, Inc.
13
Administration Guide
NOTEAllADMappliancesthatparticipateinmixedenvironemntmodemustrunthesame6.1versionofthe ADM.
Where To Go Next
Thissectionprovideslinksthatcontainsmoreinformationonthetopicslisted.
Licenses
YouneedanewlicensetouseADMafterupgradingormigrating.ObtainthelicensefromyourVMwareSales representative.Formoreinformation,seeLicensesonpage 39.
Upgrading ADM
ContinuewithupgradeproceduresasdescribedinChapter 6.
Security
FormoreinformationonADMsecurity,seeChapter 4..
14
VMware, Inc.
Installing ADM
ThischapterdescribesinstallationanddeploymentoftheADM.Topicsinclude:
Installation Personnel
TheinstallationproceduresinthisdocumentmustbeperformedbyITprofessionalsfamiliarwith virtualizationandVMwaretechnologiessuchasESXserversandrelatedvirtualandphysicalequipment.
ESX Resources
TousetheADMappliance,youmustinstalltheADMapplianceonaVMwareESXserverversion3.5orlater. ConfigurethevirtualmachineonyourESXserveraccordingtothedeploymentmodelwithresourcesas describedinTable 21. Table 2-1. Virtual Appliance Deployments
ADM Virtual Appliance (VA) Singlebox Aggregator+DB Aggregator Database PassiveCollector LinuxActive+PassiveCollector WindowsActiveDiscovery Collector Memory (GB) 4 4 3 3 2 4 2 Number of vCPUs 4 4 2 2 1 2 1 NICs 4 1 1 1 4 4 1 Disk (GB) 80 80 80 80 8 8 20 OVF Template Core Core Core Core Collector Collector Windows2008R2 Standard
NOTEVMwaredoesnotprovideOVFtemplateforlocalwindowsmachinethathoststheWinApe.
VMware, Inc.
15
Administration Guide
Disabling vMotion
IMPORTANTADMvirtualappliancesarenotsupportedbyvMotion.IftheADMvirtualapplianceisinstalled onaVMwareDRScluster,performthefollowingstepstodisableautomaticvMotion. To disable automatic vMotion 1 2 3 4 5 InthevSphereclient,selectthecluster,rightclickonitandselectEditSettings. IntheVMwareDRSsection,selectVirtualMachineOptions. SelecttheADMvirtualappliances. SelectDisablefromtheAutomationLevellistbox. ClickOK.
16
VMware, Inc.
VMware, Inc.
17
Administration Guide
ClickOKandthenClose.
SoftwarebasedCiscoNexusswitchesaresupported. ThisprocedureisrelevantonlyforvSphere4andnotforESX3.5.
LogintothevCenterserverwithvCenterclient. ClickConfigurationandthenselectNetworkingfromtheInventorytab. SelectDistributedvSwitch. OntheConfigurationtab,selectNewPortGroup. ConfiguresupportforallVLANsbyenteringthedetailsontheCreateDistributedVirtualPortGroup windowasshowninTable 22. Table 2-2. VLAN Support
Parameter Name Numberofports VLANtype VLANID Value Specified Anameforportgroup(ADMspanport).ThenamemustbesameasinvSwitchprocedure. OneforeachESXindatacenter VLANTrunking 04094
6 7 8 9 10
18
VMware, Inc.
Deployment Procedure
RepeatthefollowingstepsoneachADMvirtualappliance,excepttheWindowsCollectorthatisinstalled separatelyasdescribedinInstallingWindowsCollectoronpage 20: 1 DownloadtheADMvirtualappliancefilesfromVMwareWebsiteandextractthefilestoalocalfolder. TheextractedZipfilesincludeanOVFandaVMDKfile. TheVAfilesareinZipformatwiththefollowingnamingconvention:
OVF Template-build number
where: OVFTemplateisasdescribedinTable 23. buildnumberistheADMversionandbuildnumber. IMPORTANTEnsurethatthebuildnumberisidenticalforallappliancesdeployed. 2 LogintotheESXserverbyusingthevSphereclient. NOTEIfanSSLCertificateWarningmessageappears,clickIgnore. 3 4 5 IntheFilemenu,selectDeployOVFTemplate.BrowsetotheOVFfileandselectit. ClickNext.TheOVFTemplateDetailsscreenappears. ClickNext.TheNameandLocationscreenappears.
VMware, Inc.
19
Administration Guide
6 7
8 9
10
11 12
Deployment
To deploy Windows Collector on a Windows machine 1 2 DownloadtheVMwarevCenterADMWindowsCollectorexecutablefilefromVMwareWebsitetoyour localWindowsmachine. Doubleclicktheexecutablefile. NOTEIfawarningappearsaboutanunknownpublisher,clickRuntoproceed. TheInstallShieldWizardscreenappears. 3 ClickNext.TheLicenseAgreementscreenappears. NOTEUsethescrollbartoviewallofthelicensetext.Ifyoudonotwanttoacceptthelicense,youwill bepromptedtoconfirmthisbeforetheinstallationprogramcloses. 4 Readthelicense,selectIacceptthetermsofthelicenseagreement,andclickNext.TheChoose InstallationFolderscreenappears. NOTEThedefaultinstallationpathis:C:\Program Files\VMware\ADM. 5 6 7 Ifyouwanttochangethedefaultinstallationlocation,clickChangeandselectthepreferredinstallation directory. ClickNext.TheHostInformationscreenappears. TypethefollowinginformationtoconfiguretheWindowsCollector:
AggregatorIPAddress
20
VMware, Inc.
8 9
10
ClickFinishtoclosetheInstallShieldWizardscreenwhentheinstallationprocessiscomplete.
Uninstall
To uninstall the ADM Windows Collector 1 2 3 OpentheWindowsControlPanel. IntheControlPanelwindow,selectProgram>UninstallaProgram.TheUninstallorchangeaporgram screenappears. DoubleclickorrightclickandselectUninstalltoinitiateremovaloftheADMWindowsCollector. NOTETheremovaloftheWindowsCollectorcantakeseveralminutes. 4 ClickFinishtoclosetheInstallShieldWizardscreenwhentheuninstallationprocessiscomplete.
VMware, Inc.
21
Administration Guide
22
VMware, Inc.
Setting Up ADM
ThischapterprovidesinformationforsettinguptheADMvirtualappliancedeployments. Topicsinclude:
Processonpage 23 PostInstallationStepsonpage 27
Process
AftertheADMapplianceisdeployedontheESXServer,performthefollowingprocedures:
ConfiguringtheApplianceRoleonpage 26 UploadingaLicenseonpage 40
Order of Setup
RepeatthesetupproceduresforallADMcomponentsinthefollowingorderforallvirtualappliances: 1 2 3 Database(whereremotedatabaseisused) Aggregator Collectors(Passive,ActiveandPassiveCollector)
TheWindowsCollectorissetupasdescribedinInstallingWindowsCollectoronpage 20.
VMware, Inc.
23
Administration Guide
FullyQualified(FQ)hostname
clickingthetoolbaricon Or
rightclickingandselectingPower>PowerOn
24
VMware, Inc.
VMware, Inc.
25
Administration Guide
To configure the appliance role for Core 1 2 TypeyesattheappliancerolepromptandpressEnter. TypetherolenumberandpressEnter. NOTEIfyouselect4,thewizardalsoaskstoenterthedatabaseIP. Thewizardstartsconfiguringapplianceroleandcreatestheinitialdatabaseschema.Thisprocessmighttake sometime. Theapplianceroleisthencreated.Thisprocessmighttakesometime. ForCollectorappliancesdeployedinDeployingtheVirtualAppliancesonpage 18,theappliancerole choicesareshowninTable 34. Table 3-4. Collector Appliance Roles
Select 1 2 3 Role PassiveandActive DiscoveryCollector PassiveDiscovery Collector Remindmelater Configures SingleCollectorforactiveandpassivediscovery ThisoptionalsoconfiguresPassiveCollectorInternal. Skipsapplianceroleconfigurationfornow.Youmustruntherole_setup commandtosetuptheappliancerole.
Post-Installation Steps
BeforeyoulogintotheADMconsole,clearthecacheofyourbrowsertopreventthepossibleappearanceof incorrectinformationinthedisplays,applicationerrors,andothererrormessageswhenopeningtheADM. NOTEAdditionalADMUIadministratorsandthemorelimitedoperatorusersarelaterdefinedbythedefault ADMadminuser.TheVMwarevCenterApplicationDiscoveryManagerUsersGuideprovidesmoredetails.
4 5 6
7
VMware, Inc.
Ifyouselectaruletemplate,clickthebluelinktocustomizetherule.
27
Administration Guide
8 9 10 11
12 13
28
VMware, Inc.
Securing ADM
ThischapterprovidesinformationonsecuringADMappliance.Topicsinclude:
Thewizardaskstoenteranewpassword. Retypethepassword.
Ifboththepasswordsmatch,thepasswordischangedandallauthenticationtokensgetsupdated.
Highlight(2.6.24.79.smp.pae.gcc3.4.x86.i686),andpresse. Selectthekernellineandpressetoedittheentry.
29
Administration Guide
Placeyourcursorattheendofthelineandappendthelinebytyping:
single
7 8
Typethefollowingcommandtoresetthepassword:
passwd
10 11
Followthepromptsastheyappearonthescreentosetthepassword. Typethefollowingcommandtorestartthesystem:
reboot
Yourpasswordischangedandrestartsthesystem. NOTEYoucanalsoresettheADMrootpasswordbyrunningsystem_setupcommand.
Self-Signed Certificates
Useselfsignedcertificatesonlyinthetestenvironments,orwhereonlyalimitednumberofconnectionsis established.Forexample,peertopeerrelationshipscanbeacustomVPNorAS2linkbetweentwocompanies, orbetweentwodifferentsitesofthesamecompany.Selfsignedcertificatesbecomeimpracticalasthenumber ofcertificatesnecessarytomanagegrowslinearlywiththenumberofpeeringrelationships.AlocalCA,while morecomplextosetup,reducesthenumberofkeysrequiredtobedistributedforverification,andreplicates arealworldcertificateenvironment.ACAcancostlesstomanagethanhundredsorthousandsofindividual certificatesoneachpeersystem. NOTEDonotusetheselfsignedcertificatesinproductionenvironments. Certificatecreationrequirestheopensslutility.TheopensslutilityislocatedintheADMappliancefolder.
/usr/bin/openssl
30
VMware, Inc.
The-new,-x509,and-nodesargumentsarerequiredtocreateanunencryptedcertificate.The-days argumentspecifiesthelengthoftimethecertificateisvalid. Forencryptedcertificates,everytimeyouarerequiredtotypethepassworduntilthekeyisloaded. NOTEInmostcases,encryptedcertificatesarenotworththeoperationalburden,aseachprocessrestart orsystemrestartrequiresyoutomanuallytypeapassword. YoucanaskquestionstocompleteX.509attributescertificate.Adjusttheanswerstoyourlocalsettings.If frequentlytyped,youcanupdatethesystemopenssl.cnffile(inthe/usr/share/ssl/directory)withthe correctdefaults. Table 41listsX.509attributesamplepromptsandanswers. Table 4-1. X.509 Sample Prompts and Answers
Prompt Countryname(2lettercode)[AU]: Stateorprovincename(fullname)[SomeState]: Localityname(eg,city)[]: Organizationname(forexample,company)[InternetWidgitsPtyLtd]: Organizationalunitname(forexample,section)[]: Commonname(forexample,YOURname)[]: Emailaddress[]: Answer US Massachusetts Boston YourCompanyOrg hostname.domain postmaster@yourcompany.org
Tomakethecertificateeffective,restarttheApacheservicebytyping
adm_control.pl --restart apache
VMware, Inc.
31
Administration Guide
32
VMware, Inc.
Maintenance
ThischapterdescribesthenecessaryconceptsandprocedurestomaintainanADMdeployment.Topics include:
ADM Services
Table 51describesthemainADMservices. Table 5-1. ADM Services
Service name apache active_probe Description Webserverservice. ServiceresponsibleforperformingDetailDiscoveryandrunsonLinuxCollectorsandtheWindows virtualmachine.Thisserviceperforms:
WMIbaseddiscoveryontheWindowsCollector SSH,SNMP,VISDK,andTelnetbaseddiscoveryontheUNIXCollector
engine
ThecoreofADMandincludesthefollowingcomponents:
vmware
watchdog
Servicethatmonitorsthehealthoftheotherservices.Ifanotherservicehasaproblem,watchdog servicetriestoidentifytheserviceandresolvetheproblem.
VMware, Inc.
33
Administration Guide
AllservicesthatarelistedinTable 51stop.
34
VMware, Inc.
Chapter 5 Maintenance
VMware, Inc.
35
Administration Guide
3 4
CopythesupportpackageintothetemporarydirectorythatyoucreatedinStep 2. Extractthesupportpackageintothetemporarydirectory:
unzip support_package__version_date_and_timestamp.zip
wheredb_schema_buildisthedatabaseschemaversionandbuildnumber. 7 Placethecopiedfileinthefollowingdirectory:
/home/nlayers/Seneca/Control/bin/home/nlayers/Seneca/db_scripts/oracle
Typethefollowingcommandtostoptheengineservice:
/adm_control.pl --stop engine
Typethefollowingcommandtoswitchtothenlayersuser:
su - nlayers
10
Changedirectoryto:
cd /home/nlayers/Seneca/db_scripts/oracle
11
Typethefollowingcommandtorestorethedbbackup:
./db_restore.sh backup.db_dump-main-db_schema_build-db_dump.gz prod
36
VMware, Inc.
Chapter 5 Maintenance
12 13
Exitfromthenlayersuser. Typethefollowingadm_control.plcommandtostarttheservices:
/home/nlayers/Seneca/Control/bin/adm_control.pl --start all
3 4
CopythesupportpackageintothetemporarydirectoryyoucreatedinStep 2. Extractthesupportpackageintothetemporarydirectory:
unzip support_package__version_date_and_timestamp.zip
Placethecopiedfilesto:
/home/nlayers/Seneca/probe
Copyallfilesfrom:
supportpackagedir/supportpackage/listener/custom/kb
Placethecopiedfilesto:
/home/nlayers/Seneca/probe/resources
10
Copyallfilesfrom:
supportpackagedir/supportpackage/active_discovery/custom/conf
11
Placethecopiedfilesto:
/home/nlayers/Seneca/ActiveProbe/conf
12
Changedirectoryto:
/home/nlayers/Seneca/management/APIs
13
Typethefollowingcommand:
./InSight_control.sh adkb --checkout /tmp
14
Copyallfilesandsubdirectoriesfrom:
supportpackagedir/supportpackage/active_discovery/custom/kb/custom
VMware, Inc.
37
Administration Guide
15
Placethecopiedfilesto:
/tmp/adkb/custom
16 17
Overwriteanyfilesorfoldersinthedestinationdirectoryifpromptedtodoso. Typethefollowingcommandtocheckinthecustomfingerprints:
/home/nlayers/Seneca/management/APIs/InSight_control.sh adkb --checkin /tmp
18
Typethefollowingadm_control.plcommandtorestarttherelevantservices:
/home/nlayers/Seneca/Control/bin/adm_control.pl --restart all
VirtualcomponentsmustberedeployedasdescribedinInstallingADMonpage 15.
Chapter 5 Maintenance
Ensurethatthedatabasemodeissetcorrectly,asfollows: a Typethecommand:
/home/nlayers/Seneca/tools/appliance_conf.pl --status
Ifthemodeisnotdatabasecorrectitbytyping:
/home/nlayers/Seneca/tools/appliance_conf.pl -mode=d
4 5
6 7
Ifthemodeisdatabase,continuewiththefollowingstep.Ifthemodeisnotdatabase,typethefollowing commandtochangethemode:
/home/nlayers/Seneca/tools/appliance_conf.pl -mode=d
7 8
Licenses
Youmustrenewthelicenseswhen:
reachingtheexpirationdate expandingthecustomerdiscoverednetworkscope.
Thisprocedureforuploadinganewlicensemustbeperformedfollowingeach:
ItisnotnecessarytoperformthisprocedurewhenupgradingfromADMversions6.1.xorlater.
VMware, Inc.
39
Administration Guide
Uploading a License
IMPORTANTBeforeyoubegin,obtaintheserialnumberformanagedserverhost. Performthefollowingproceduretouploadalicense. 1 2 3 4 LogintotheADMUIasanadminuser. NavigatetotheManage>SystemscreenandclickLicensing.TheLicensePropertiesscreenappears ClickUploadanewLicense.TheUploadanewlicensescreenappears. EntertheserialnumberandclickApply.Iftheserialnumberisvalid,theserialnumberisuploadedand LicensePropertiespageisdisplayed.
40
VMware, Inc.
Upgrading ADM
ThischapterdescribesthenecessaryconceptsandprocedurestoupgradeanADMdeployment.Topics include:
Overview
Thefollowingconsiderationsapplyforapplianceupgradesandmigration.
Appliance Type
YoucanupgradeADMonphysicalADMonvirtualappliancesrunningversions6.1.xorlaterasdescribedin UpgradingAppliancesonpage 42.
Mixed Environments
Somesitescanhaveacombinationofphysicalandvirtualappliances.Youmustupgradethemtothesame ADMversionbyusingtheproceduresdescribedinUpgradingAppliancesonpage 42.Formore informationaboutmixedenvironment,seeMixedEnvironmentonpage 13.
Licenses
YouneedanewlicensetouseADMafterupgradingfrom6.0.X.ObtainthelicensefromyourVMwareSales representative.Licensesonpage 14providesmoreinformation.
Appliance Migration
Chapter 7describesproceduresformigrationtovirtualappliances.
Backing Up Data
Backupthedatatopreventlossduringthemigrationandupgradeprocess.ProductSupportPackageson page 34describesbackupandrestoreprocedures.
VMware, Inc.
41
Administration Guide
Upgrading Appliances
ThissectiondescribestheupgradingofApplicationDiscoveryManagerversions6.0.xorlaterforphysical appliancesand6.1.xorlaterforvirtualappliances.
Important Notes
Repeatthefollowingproceduresforallappliancesandarchitecturesolutions,unlessotherwiseindicated.
Preliminary Procedures
1 2 BackupyourdataasdescribedinProductSupportPackagesonpage 34(performedonAggregatoror singleboxapplianceandcollectorsifcustomfingerprintsexists). LogintotheapplianceandopenanSSHsessionandtypethefollowingcommandtomonitortheprogress ofupgrade:
tail -f /var/log/nlayers/update.log
Changefileaccess:
chmod 744 update_runner.pl
UpgradeVMwareADMservices:
./update_runner.pl -u -f InSightUpdate-version-build.upd
42
VMware, Inc.
Post-Upgrade Steps
BeforeyoulogintotheADMconsole: Clearthecacheofyourbrowsertopreventthepossibleappearanceofincorrectinformationinthedisplays, applicationerrors,andothererrormessageswhenopeningtheADM. IMPORTANTYoumightberequiredtouploadanewlicenseifyouareupgradingfrom6.0.x.Before proceeding,reviewthecriteriaandifnecessary,performthestepsdescribedinLicensesonpage 14. YoucannowbeginusingtheADM.
VMware, Inc.
43
Administration Guide
44
VMware, Inc.
ThischapterprovidesinstructionsonmigrationofanexistingphysicalorvirtualADMappliancetoavirtual appliancesuppliedbyVMware.Topicsinclude:
Overview
Additionaldocumentationasdescribedbelowisavailableathttp://downloads.vmware.com/
Supported Migration
AppliancemigrationissupportedfromADM6.0.x.Upgradeearlierversionstothelatest6.0.xversionbyusing theproceduresdescribedintheUpgradingADMonpage 41. NOTEPartoftheupgradeproceduretoADM6.0.xcanincludeupgradingcustomfingerprintscreatedin earlierversion.AdditionalinformationonfingerprintsisavailableintheVMwarevCenterApplicationDiscovery ManagerFingerprintDevelopersGuide.
Licenses
YouneedanewlicensetouseADMaftermigratingtoanewappliance.ObtainthelicensefromyourVMware Salesrepresentative.MoreinformationisprovidedinLicensesonpage 14.
System Architecture
DetaileddescriptionsareprovidedinSystemArchitectureonpage 9.Migrationstepsdifferfordifferent appliancesetups:
VMware, Inc.
45
Administration Guide
Process
Themigrationprocessisasfollows: 1 2 RecordthecurrentappliancenetworksettingsasdescribedinADMSetupProceduresonpage 23. BackupyourdataasdescribedinProductSupportPackagesonpage 34. IMPORTANTThebackupproceduresinvolvecopyingcustomADMfiles.Ensurethatthefilesmaintain theoriginalnLayersownershipaftercopying.Editingthefilesasrootmightchangetheownershipofthe files. 3 4 5 6 7 8 BackupUNIXCollectorsifcustomfingerprintsexist. BackupWindowsCollectorfingerprintsasdescribedinBackingUpWinApeMigrationFilesonpage 46 andshutdownalloldappliances. InstallanddeploythenewvirtualapplianceasdescribedinDeployingtheVirtualApplianceson page 18. RestarttheapplianceandperforminginitialsetuptasksasdescribedinChapter 3. RestoreUNIXCollectorfingerprints. RestoreWindowsCollectorfingerprintsasdescribedinRestoringWinApeMigrationFilesonpage 47.
Preliminary Procedures
CAUTIONBackupofexistingdataisessentialtopreventdatalossduringthemigrationprocess.
Forallsolutions,backupfilesareneededforWinApemigrationtoanothercomputerasshownintable Table 71. ThefollowingtabledescribestheWinApemigrationsfiles.Forvirtualappliance,thedefaultlocationis C:\Program Files\VMware\ADM.Forphysicalappliance,thedefaultlocationisC:\Program Files\nLayers\InSightActiveDiscovery. Table 7-1. WinApe Migration Files
File \lib\java\adkbcustom.jar Remark Always
46
VMware, Inc.
Data Restoration
ThissectionprovidesinformationaboutdatarestorationforSinglebox,distributed,anddistributedwith remotedatabasesolution.
Single-box-Solution
1 2 3 RestoretheADMdatabaseasdescribedinRestoringanADMEnvironmentbyUsingaProductSupport Packageonpage 36. RestorethecustomdiscoveryandconfigurationfilesasdescribedinRestoringtheCustomDiscovery andConfigurationFilesonpage 37. ForWinApe,firstcreatethebackupasdescribedinBackingUpWinApeMigrationFilesonpage 46and thenrestoreitasdescribedinRestoringWinApeMigrationFilesonpage 47.
Distributed Solutions
Thesestepsapplytodistributedsolutionswithoutaremotedatabase.Performthefollowingstepsonall appliancesinthefollowingorder:Collectors,WinApe,andAggregator.
Collectors
RepeatthefollowingstepsforeachCollectorappliance: 1 2 LogintotheCollectorvirtualappliance. RestorethecustomdiscoveryandconfigurationfilesasdescribedinRestoringtheCustomDiscovery andConfigurationFilesonpage 37.
WinApe
RepeatthefollowingstepsforeachWindowsappliance: 1 2 3 LogintotheWinApeappliance. BackuptheWinApemigrationfilesasdescribedinBackingUpWinApeMigrationFilesonpage 46. RestoretheWinApemigrationfilesasdescribedinRestoringWinApeMigrationFilesonpage 47.
Aggregator
1 2 LogintotheAggregatorvirtualappliance. RestoretheADMdatabaseasdescribedinTroubleshootingtheADMbyUsingtheProductSupport Packageonpage 49.
VMware, Inc.
47
Administration Guide
Collectors
RepeatthefollowingstepsforeachCollectorappliance: 1 2 LogintotheCollectorvirtualappliance. RestorethecustomdiscoveryandconfigurationfilesasdescribedinRestoringtheCustomDiscovery andConfigurationFilesonpage 37.
WinApe
RepeatthefollowingstepsforeachWindowsappliance: 1 2 3 LogintotheWinApeappliance. BackuptheWinApemigrationfilesasdescribedinBackingUpWinApeMigrationFilesonpage 46. RestoretheWinApemigrationfilesasdescribedinRestoringWinApeMigrationFilesonpage 47
Database
1 2 Logintothedatabasevirtualappliance. RestoretheADMdatabaseasdescribedinRestoringanADMEnvironmentbyUsingaProductSupport Packageonpage 36.
Aggregator
1 2 LogintotheAggregatorvirtualappliance. MakethenecessarychangesintheActiveprobeconfigurationscreenundertheManage>Systemmenu oftheADMconsoletoreflectthenewcollectorappliance.TheVMwarevCenterApplicationDiscovery ManagerUsersGuide.
Post-Migration Steps
BeforeyoulogintotheADMconsole: Clearthecacheofyourbrowsertopreventthepossibleappearanceofincorrectinformationinthedisplays, applicationerrors,andothererrormessageswhenopeningtheADM. NOTEADMdefaultgroupsdoesnotgetrefreshedduringtheupgrade.TheManagementchapterofthe VMwarevCenterApplicationDiscoveryManagerUsersGuideprovidesmoreinformationongroups administration. YoucannowbeginusingtheADM.
48
VMware, Inc.
Troubleshooting ADM
WMI
WMIDetailDiscoveryrequiresspecificpermissionsandconfigurationonthetargethost.Microsoftincludes atestingtool,calledWBemTest,oneverycomputerthathasWMIinstalled.Thistooltestsforthesame permissionandconfigurationsthatADMrequires.Forexample,ifanaccessdeniedfailureoccurswhile connectingtothetargethost,theWbemTesttoolraisesasimilarerrorindicatingaproblemwiththetargethost configuration. Troubleshooting is performed in the following order 1 CheckpermissionsandconfigurationusingtheWBemTesttool.Moreinformationisavailableonthe MicrosoftWebsite: http://technet.microsoft.com/enus/library/cc785775.aspx 2 CheckADMDiscoveryusingtheutilitiesdescribedinthefollowingsections.
single.sh
Thesingle.shutilityisastandalonecommandlineutilitythatrunsDetailDiscoveryonaspecifichost.The single.shutilitycreatesasupportpackagethatcontainstheDetailDiscoveryresultsandmoreuseful information.VMwareCustomerSupportcanusethissupportpackagetoanalyzetheproblemsoffsite. NOTEThissectionreferstosupportpackagesusedspecificallyforDetailDiscoverytroubleshooting.Other supportpackagesareusedforbackingup,restoring,upgrading,andtroubleshootingoftheADMapplication andaredescribedinChapter 10.
VMware, Inc.
49
Administration Guide
Location
/home/nlayers/Seneca/ActiveProbe/bin/single.sh
Usage
single.sh [-A Attribute Artifacts] [-a address] [--AddExU Additional Unix Exclude Directories] [--AddExW Additional Windows Exclude Directories] [--AddIncU Additional Unix Search Scope] [--AddIncW Additional Windows Search Scope] [-c host] [-d port] [-D Configuration Items] [-e Management IP] [--ExU Unix Exclude Directories] [--ExW Windows Exclude Directories] [-G CI Groups] [-h] [-i] [--IncU Unix Search Scope] [--IncW Windows Search Scope] [-j classpath] [-l] [-M maxdepth] [-n path] [-p ports] [-P Access profile] [-r filename] [-t timeout] [-T Discovery result translator class] [-v] [-w]
Table 81listsanddescribesparametersforthesingle.shutility.
Directories
-AddExW Additional Windows Exclude
Directories
-AddIncU Additional UNIX Search Scope -AddIncW Additional Windows Search Scope -c, -Collector host -d, -debug port -D, -planCis Configuration Items -e, -management Management IP -ExU UNIX Exclude Directories -ExW Windows Exclude Directories -G, -planCiGroups CI Groups -h, -help -i, -interactive -IncU UNIX Search Scope -IncW Windows Search Scope -j, -classpath classpath -l, planhelp -M, -maxdepth maxdepth -n, -outputPrefix path
50
VMware, Inc.
-P, -accessProfile Access profile -r, -read filename -t, -timeout timeout
translator class
Examples:
To probe target IP 1.2.3.4 on UNIX using protocol SSH
./single.sh -P \"ssh:username=root,password=54321\" -a 1.2.3.4 ./single.sh -P \"ssh:username=root\" -a 1.2.3.4
Createdebugpackage:
single.sh -a address -P Access profile
Readfromplaybackfile:
single.sh -r filename
Accessprofilecanhaveoneofthefollowingformats:
VMware, Inc.
51
Administration Guide
Defaultsearchscopefordifferentplatforms:
Windows:
UNIX:
Include:
[/bin, /sbin, /usr/bin, /usr/sbin, /usr/local, /usr/local/bin, /usr/local/sbin, /usr, /opt]
Exclude:
[/boot, /dev, /devices, /proc, /unix, /kernel, /platform, /cdrom, /CDROM, /sd_cdrom, /SD_CDROM, /Mail, /mail, /nsmail, /vol, /lost+found, /media, /tmp, /mnt, /jumpstart, /pcfs, /sys, /usr/kvm/sys, /stand, /var/news, /var/log, /var/run, /var/lock, /var/www, /var/cache, /var/tmp, /etc/gconf]
snmpdump
ThesnmpwalkprogramisbundledwithLinux,whichrunsSNMPonagivenIPaddressandcreatesatextual dumpofthewholetreeofresults.ThisprogramisoftenusedwhileextendinganddebuggingtheSNMP portionoftheDetailDiscoveryknowledgebase. AnewDetailDiscoveryfeatureallowsVMwareCustomerSupporttorecordacompletesnapshotoftheSNMP responsesofanetworkhost,usingsnmpwalk.YoucanusetheresultingdumpfiletofixSNMPDetail DiscoveryproblemsencounteredbyVMwareCustomerSupport. Astandardizedscriptcalledsnmpdump.shisnowsuppliedwithADMtocreatethissnmpwalkdumpfile.
Location
/home/nlayers/Seneca/ActiveProbe/bin/snmpdump.sh
Usage
Runningsnmpdump.shonthecommandlineyieldsthefollowingusageinformation:
./snmpdump.sh host_ip output_file
ThefirstparameteristhehostIPtoquery. Thesecondparameteristhenameofthefileinwhichtosavetheresults.
52
VMware, Inc.
Examples
CreateansnmpwalkdumpforIP1.2.3.4andsavetheresultsintofilesnmpdump.1.2.3.4.txt:
./snmpdump.sh 1.2.3.4 snmpdump.1.2.3.4.txt
nlcapture
Youcanusethenlcaptureutilityinplaceoftcpdumptocapturenetworkactivity.Thisutilitysupportsthe samedefaultparametersastcpdump,butsetsthesnaplentobelargeenoughsoastonottruncatepackets. Inaddition,thisutilityprovidesaparameternotsupportedbytcpdump:R,whichfilterspacketsbasedon theirprotocol(forexample,HTTP)orbasedonprotocolspecificattributes. Similartotcpdump,youcanusenlcapturetofilteranexistingcapturefileandtransformittoanew,filtered file.Seeusagebelow.
Location
/home/nlayers/Seneca/tools/nlcapture.pl
Usage
Runningnlcaptureonthecommandlineyields:
nlcapture.pl tcpdump options [-R ethereal display filter string]
Forexample: Tolistenoneth1andcaptureallHTTPandICMPpacketsintothefilebla.dump:
nlcapture.pl -i eth1 -R "http||icmp" -w myoutput.dump
VMware, Inc.
53
Administration Guide
54
VMware, Inc.
Uninstalling ADM
VMware, Inc.
55
Administration Guide
56
VMware, Inc.
Time Zones
A
Asia/Tel_Aviv Etc/Greenwich Asia/Tel_Aviv Asia/Istanbul Asia/Makassar Asia/Macau Asia/Macao Asia/Jerusalem Asia/Hong_Kong Asia/Dhaka Asia/Dacca Asia/Chungking Asia/Chongqing Asia/Ashkhabad Asia/Ashgabat Atlantic/Cape_Verde Atlantic/Azores Atlantic/Bermuda Atlantic/Canary Atlantic/South_Georgia Atlantic/Faeroe Atlantic/Madeira Atlantic/St_Helena Atlantic/Stanley Atlantic/Reykjavik Atlantic/Jan_Mayen Australia/Lindeman Australia/West Australia/LHI Australia/Perth Etc/GMTIndian/Reunion Etc/GMT Europe/Amsterdam Europe/Andorra Europe/Athens Europe/Belfast Europe/Berlin Europe/Brussels Europe/Bucharest Europe/Budapest Europe/Copenhagen Europe/Gibraltar Europe/Helsinki Europe/Kaliningrad Europe/Kiev Europe/Luxembourg Europe/Madrid Europe/Malta Europe/Minsk Europe/Monaco Europe/Paris Europe/Riga Europe/Samara Europe/Simferopol Europe/Sofia Europe/Stockholm Europe/Tallinn Europe/Tirane Europe/Uzhgorod Mexico/BajaNorte US/Aleutian Mexico/BajaNorte Mexico/General Mexico/BajaSur Mideast/Riyadh89 Mideast/Riyadh88 Mideast/Riyadh87 Pacific/Enderbury Pacific/Apia Pacific/Efate Pacific/Funafuti Pacific/Fakaofo Pacific/Fiji Pacific/Port_Moresby Pacific/Galapagos Pacific/Guadalcanal Pacific/Guam Pacific/Johnston Pacific/Kiritimati Pacific/Kosrae Pacific/Majuro Pacific/Marquesas Pacific/Midway Pacific/Nauru Pacific/Niue Pacific/Norfolk Pacific/Noumea Pacific/Palau Pacific/Ponape
VMware, Inc.
57
Administration Guide
58
VMware, Inc.
ThisappendixdescribestheADMAPIandexplainshowtoaccessanduseit.Topicsinclude:
APIFeaturesonpage 59 WebServicesAPIonpage 61
API Features
TheAPIofADMallowsclientstoqueryitsdatabaseandexportpartsofitbymeansofawebservicesAPI. Thefollowingcasesareexplainedinthefollowingsections:
YoucandividetheAPIintothreesections,wheretwoarededicatedtoqueryingtheADM(DumpandBulk), andthethirdisinchargeoftrackingthosequeries(Asynch).
Insight_control
TheInsight_controlutilitywritesthesystemstatusintoanXMLoutputfile. To run Insight_control utility 1 2 Logintotheapplianceasuserroot. Changethedirectorybytyping:
cd /home/nlayers/Seneca/management/APIs
Typethefollowingcommandtogenerateasystemstatusoutputfile:
./InSight_control.sh systemstatus --get --output /tmp/systemstatus
VMware, Inc.
Administration Guide
Asynch API
OperationsinADMsAPIareasynchronous.Theclienthastotracktheprogress(orlackthereof)ofthistask andretrieveitsresults. NOTETheoperationswithinthecontextofthewebserviceclientaresynchronic,thatis,thecallingofthe functionthatdoestheactualdeliveryofthequeryissynchronic,andtheclientblocksuntilthatoperationis completed. TasksareuniquelyidentifiedbyaUniversalUniqueIdentifier,whosestringrepresentationisreturnedupon ataskcreation.Futurereferencestoataskmustbedoneusingthissamestring. Taskshavepredefinedparametersregardingtheirlifespanineverystate,forexample,afinishedtaskwaits inthesystemfor24hoursbeforeitsresourcesarerecalledandthetaskisdeleted.Ataskcanhaveanyofthe followingstates,whichyoucanretrievebyusinggetTaskState(Stringid):
Dump API
TheDumpAPIprovidesyouwiththepossibilityofdumpingthecompletecontentsofatable(orsmallsetof tables)thatcorrespondstoagivenentity(HOSTS,SERVICES,CONNECTIONS,andsoon.).InthisAPI, flexibilityhasbeentradedforspeed,anditisintendedforthosecaseswhereanapplicationintendstomirror ADMsdata,andperiodicallysynchronizewithit. TheDumpAPIworksasfollows: 1 2 3 4 5 Selectthetypeofentitiesthatitneedsandadiscoverydate(optional)forthoseentities. Calldump()withthoseparameters,andobtainthetaskUUIDinastringform. TracktheprogressofthetaskusingtheAsynchAPI(getTaskState()andgetTaskProgress()). RepeatStep 3untilthetaskreachestheFINISHEDorERRORstate. IfthetaskisintheFINISHEDstate,thenthefilescontainingthedumpeddatabasetablesarereadyand waitingtobecollected(eitherusingSSHorintheFTPserverifsupplied).Thefilesarestoredina subdirectorywhosenameisidenticaltothetaskID.
60
VMware, Inc.
Bulk API
TheBulkAPIprovidesyouwiththepossibilityofqueryingtheADMwithmoresophisticatedfilters,and browsingtheresultsetbymeansofpagination.Theresultsaredeliveredinsubsets(pages)ofapredefined sizeandformattedinXMLCIM.ThisAPIisintendedforthosecaseswhereanapplicationintendstobrowse onfinelyfilteredsegmentoftheADMsdata. The Bulk API works as follows 1 2 3 4 Createthefilterobjectandselectthelevelofgranularityoftheresults. Callquery( )withthefilterobjectandobtainthetaskUUIDinstringform. AfterthetaskisFINISHED,youcanretrievethemaximumamountofpagesavailableinthisresultsetby callinggetPageAmount( ). Atthismoment,thereisaniteratorinADMthatyoucancontrolbythefollowingcalls,andtheresults retrievedfromthem: a b 5 hasNextPage( ) getNextPage()
VMware, Inc.
61
Administration Guide
62
VMware, Inc.
Index
A
active_probe service 33 ADM architecture solutions 9 required time zones 57 restore 36 services 33 ADM API 59 adm_control.pl script 34 Apache service 33 Asynch API 60
U
upgrading ADM 34
V
virtual appliance 11 VNC service 33
W
Watchdog service 33 Web services API 61
B
Bulk API 61
C
converting components into a remote database 38
D
Dump API 60
E
Engine service 33
I
installation backup 35
L
Listener service 33
M
managing services 34
O
Oracle service 33
P
performing an installation backup 35
R
restore 36 ADM database 36
S
services 33
T
time zones 57
VMware, Inc. 63
Administration Guide
64
VMware, Inc.