NetWorker: Hoe te identificeren welke server de authenticatieserver is die wordt gebruikt door NMC en NWUI
Samenvatting: Dit artikel is van toepassing op NetWorker-omgevingen met meerdere NetWorker-servers die door één NetWorker Management Console (NMC) worden beheerd. De NMC gebruikt slechts één NetWorker-server als authenticatieserver (AUTHC). Dit artikel bevat stappen om te bepalen welke NetWorker-host de AUTHC-server is. ...
Instructies
NetWorker Authentication (AUTHC) Service:
Elke NetWorker-server bevat de NetWorker Authentication-service. Er is geen individuele service die loopt van Services.msc (Windows) of systemd (Linux).
Op Linux NetWorker-servers wordt AUTHC uitgevoerd als een jsvc.exe Proces dat door de gebruiker is voortgebracht nsrtomc+:
[root@nsr ~]# ps -ef | grep jsvc nsrtomc+ 2961 2087 0 00:04 ? 00:00:00 jsvc.exec -nodetach --add-modules=java.se.ee --illegal-access=permit -classpath /opt/nsr/authc-server/tomcat/bin/bootstrap.jar:/opt/nsr/authc-server/tomcat/bin/tomcat-juli.jar -pidfile /nsr/authc/authc-tomcat.pid -Dcatalina.home=/opt/nsr/authc-server/tomcat -Dcatalina.base=/nsr/authc -Dauthc.server.datasource.location=/nsr/authc/data/authcdb -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/nsr/authc/conf/logging.properties -Djava.security.properties=/opt/nsr/authc-server/conf/java.security -Dauthc.server.banner.location=/opt/nsr/authc-server/conf -Djava.locale.providers=COMPAT -XX:+IgnoreUnrecognizedVMOptions org.apache.catalina.startup.Bootstrap nsrtomc+ 2997 2961 3 00:04 ? 00:22:20 jsvc.exec -nodetach --add-modules=java.se.ee --illegal-access=permit -classpath /opt/nsr/authc-server/tomcat/bin/bootstrap.jar:/opt/nsr/authc-server/tomcat/bin/tomcat-juli.jar -pidfile /nsr/authc/authc-tomcat.pid -Dcatalina.home=/opt/nsr/authc-server/tomcat -Dcatalina.base=/nsr/authc -Dauthc.server.datasource.location=/nsr/authc/data/authcdb -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/nsr/authc/conf/logging.properties -Djava.security.properties=/opt/nsr/authc-server/conf/java.security -Dauthc.server.banner.location=/opt/nsr/authc-server/conf -Djava.locale.providers=COMPAT -XX:+IgnoreUnrecognizedVMOptions org.apache.catalina.startup.Bootstrap
Op Windows NetWorker-servers wordt AUTHC uitgevoerd als een jsvc.exe proces voortgebracht door de lokale SYSTEM Account:
De NetWorker-verificatieservice wordt niet onafhankelijk van NetWorker gestopt of gestart. NetWorker AUTHC is een afhankelijke functie van de NetWorker-serverservice (nsrd). De nsrd De service stopt en start NetWorker AUTHC.
NetWorker-verificatie
- In een omgeving met één host, waar de NMC server een enkele NetWorker server beheert, is de NetWorker server de AUTHC server.
- In een datazone met meerdere hosts, waar één NMC-server (NetWorker Management Console) twee of meer NetWorker-servers beheert, is slechts één van de NetWorker-servers de AUTHC-server. Voor NetWorker Web UI (NWUI) zijn er NWUI-servers per NetWorker-server, maar de verificatie kan worden doorgestuurd naar een specifieke NetWorker-verificatieserver.
- In sommige omgevingen kan de NMC of NWUI server ook de volgende gegevens bevatten:
nsrden AUTHC-installatiepakketten. De NMC server, NWUI server of een andere standalone host is geconfigureerd als authenticatieserver. - Poort 9090 is de standaardpoort die wordt gebruikt door NetWorker AUTHC. Zie het gedeelte Aanvullende informatie .
nsrlogin, authc_config, authc_mgmt, enzovoort)
Identificeren:
De AUTHC-host die door de NMC of NWUI wordt gebruikt, wordt ingesteld tijdens de initiële configuratie:
- Op Windows: De installatiewizard bevat stappen voor het instellen van de AUTHC-server die wordt gebruikt door de NMC en NWUI.
- Op Linux: Tijdens de initialisatie van de NMC met behulp van
/opt/lgtonmc/bin/nmc_configen NWUI/opt/nwui/scripts/nwui_configure.sh
Om te bepalen welke host de NMC gebruikt voor zijn verificatie, voert u de volgende stappen uit op de NetWorker Management Console (NMC)-server:
- Open de
gstd.confBestand:
- Linux:
/opt/lgtonmc/etc/gstd.conf - Windows (standaard):
C:\Program Files\EMC NetWorker\Management\GST\etc\gstd.conf
- De
gstd.confbestand definieert deauthsvc_hostnamealsauthsvc_portdie NMC gebruikt om gebruikers te authenticeren.
authsvc_hostname: Hostnaam van de NetWorker Authentication-server.authcsvc_port: De NetWorker Authentication-servicepoort (standaard 9090).
Voor de NetWorker Web User Interface (NWUI). In het installatielogboek wordt gedefinieerd welke host is ingesteld als AUTHC-server. Op de NWUI-server:
- Linux:
grep /opt/nwui/logs/install.log -e "Authentication server" - Windows: Open het installatielogboek onder
%LOCALAPPDATA%\Temp\NetWorker_DATE_MCUI.log. Zoek in het bestand naarAUTH_HOSTNAMEdie de AUTHC-host definieert.
Eventuele probleemoplossing van NWUI- of NMC-authenticatie moet worden onderzocht vanaf de host die bij de bovenstaande stappen wordt geïdentificeerd:
Extra informatie
Poort 9090 is de standaardpoort die wordt gebruikt door NetWorker AUTHC; Dit kan echter worden bevestigd met behulp van de volgende stappen:
Linux:
- Haal de proces-ID (PID) van de NetWorker-jsvc.exe proces op:
ps -ef | grep jsvc - Gebruik de PID van het tweede item om op te sommen welke poort naar die PID luistert:
netstat -apno | grep LISTEN | grep PID
Voorbeeld:
[root@nsr ~]# ps -ef | grep jsvc.exe nsrtomc+ 2961 2087 0 Feb17 ? 00:00:00 jsvc.exec -nodetach --add-modules=java.se.ee --illegal-access=permit -classpath /opt/nsr/authc-server/tomcat/bin/bootstrap.jar:/opt/nsr/authc-server/tomcat/bin/tomcat-juli.jar -pidfile /nsr/authc/authc-tomcat.pid -Dcatalina.home=/opt/nsr/authc-server/tomcat -Dcatalina.base=/nsr/authc -Dauthc.server.datasource.location=/nsr/authc/data/authcdb -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/nsr/authc/conf/logging.properties -Djava.security.properties=/opt/nsr/authc-server/conf/java.security -Dauthc.server.banner.location=/opt/nsr/authc-server/conf -Djava.locale.providers=COMPAT -XX:+IgnoreUnrecognizedVMOptions org.apache.catalina.startup.Bootstrap nsrtomc+ 2997 2961 0 Feb17 ? 00:55:51 jsvc.exec -nodetach --add-modules=java.se.ee --illegal-access=permit -classpath /opt/nsr/authc-server/tomcat/bin/bootstrap.jar:/opt/nsr/authc-server/tomcat/bin/tomcat-juli.jar -pidfile /nsr/authc/authc-tomcat.pid -Dcatalina.home=/opt/nsr/authc-server/tomcat -Dcatalina.base=/nsr/authc -Dauthc.server.datasource.location=/nsr/authc/data/authcdb -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/nsr/authc/conf/logging.properties -Djava.security.properties=/opt/nsr/authc-server/conf/java.security -Dauthc.server.banner.location=/opt/nsr/authc-server/conf -Djava.locale.providers=COMPAT -XX:+IgnoreUnrecognizedVMOptions org.apache.catalina.startup.Bootstrap root 345777 344577 0 09:45 pts/0 00:00:00 grep --color=auto jsvc.exe [root@nsr ~]# [root@nsr ~]# netstat -apno | grep LISTEN | grep 2997 tcp6 0 0 :::9090 :::* LISTEN 2997/jsvc.exec off (0.00/0/0) tcp6 0 0 :::40383 :::* LISTEN 2997/jsvc.exec off (0.00/0/0) [root@nsr ~]#
Windows (PowerShell):
- Haal de proces-ID (PID) van de NetWorker-jsvc.exe proces op:
Get-CimInstance Win32_Process -Filter "Name='java.exe'" | Select-Object ProcessId, CommandLine - Met behulp van de "
authc-server" PID, lijst welke poort luistert naar die PID:netstat -ano | findstr LISTENING| findstr PID
PS C:\Users\Administrator.NETWORKER> Get-CimInstance Win32_Process -Filter "Name='java.exe'" | Select-Object ProcessId, CommandLine
ProcessId CommandLine
--------- -----------
6784 "C:\Program Files\NRE\java\jre1.8.0_471\bin\java.exe" -Xms512m -Xmx1024m -cp "C:\Program Files\EMC NetWorker\nsr\bin\\oncrpc.jar;C:\Program Files\EMC NetWorker\nsr\bin\\auth_proxy.jar;C:\Program Files\EMC NetWorker\nsr\bin\\auth-client-proxy-with-dependencies.jar;." COM.emc.nsr.authproxy.AuthProxyServer 7999 "C:\Program Files\EMC NetWorker\nsr\tmp\lock\auth_proxy.lck-5784"
6736 "C:\Program Files\NRE\java\jre1.8.0_471\bin\java.exe" -Djava.util.logging.config.file="C:\Program Files\EMC NetWorker\nsr\authc-server\bin\..\tomcat\conf\logging.properties" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager "-Dauthc.server.datasource.location=C:\Program Files\EMC NetWorker\nsr\authc-server\tomcat\data\authcdb" "-Djava.security.properties=C:\Program...
7000 "C:\Program Files\NRE\java\jre1.8.0_471\bin\java.exe" -Dlogging.config="C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\log4j2.xml" -Dpropertiesfile="C:\Program Files\EMC NetWorker\nwui\monitoring\app\conf\monitoring-app.properties" -Dlogsdir="C:\Program Files\EMC NetWorker\nwui\monitoring\app\logs" -jar "C:\Program Files\EMC NetWorker\nwui\monitoring\app\bin\monitoring-ap...
PS C:\Users\Administrator.NETWORKER> netstat -ano | findstr LISTENING| findstr 6736
TCP 0.0.0.0:9090 0.0.0.0:0 LISTENING 6736
TCP 0.0.0.0:51877 0.0.0.0:0 LISTENING 6736
TCP [::]:9090 [::]:0 LISTENING 6736
TCP [::]:51877 [::]:0 LISTENING 6736