NetWorker: Come identificare il server di autenticazione utilizzato da NMC e NWUI
Riepilogo: Questo articolo si applica agli ambienti NetWorker che contengono più server NetWorker gestiti da una singola NetWorker Management Console (NMC). NMC usa un solo server NetWorker come server di autenticazione (AUTHC). Questo articolo fornisce la procedura per identificare quale host NetWorker è il server AUTHC. ...
Istruzioni
Servizio di autenticazione NetWorker (AUTHC):
Ogni server NetWorker contiene NetWorker Authentication Service. Non esiste un singolo servizio che viene eseguito da Services.msc (Windows) oppure systemd (Linux).
Sui server NetWorker per Linux, AUTHC viene eseguito come jsvc.exe Processo generato dall'utente 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
Sui server NetWorker di Windows, AUTHC viene eseguito come jsvc.exe processo generato dal locale SYSTEM Account:
NetWorker Authentication Service non viene arrestato o avviato in modo indipendente da NetWorker. NetWorker AUTHC è una funzione dipendente del servizio server NetWorker (nsrd). La colonna nsrd il servizio arresta e avvia NetWorker AUTHC.
Autenticazione NetWorker
- In un ambiente a host singolo, in cui il server NMC gestisce un singolo server NetWorker, il server NetWorker è il server AUTHC.
- In una datazone multihost, in cui un singolo server NetWorker Management Console (NMC) gestisce due o più server NetWorker, solo uno dei server NetWorker è il server AUTHC. Per NetWorker Web UI (NWUI), sono disponibili server NWUI per ogni server NetWorker, ma l'autenticazione può essere indirizzata a uno specifico server di autenticazione NetWorker.
- In alcuni ambienti, il server NMC o NWUI può contenere anche
nsrde pacchetti di installazione AUTHC. Il server NMC, il server NWUI o un altro host standalone è configurato come server di autenticazione. - La porta 9090 è la porta predefinita utilizzata da NetWorker AUTHC. Vedere la sezione Informazioni aggiuntive .
nsrlogin, authc_config, authc_mgmt, e così via)
Come identificare:
L'host AUTHC utilizzato da NMC o NWUI è impostato durante la configurazione iniziale:
- In Windows: L'installazione guidata contiene la procedura per l'impostazione del server AUTHC utilizzato da NMC e NWUI.
- In Linux: Durante l'inizializzazione di NMC utilizzando
/opt/lgtonmc/bin/nmc_confige NWUI/opt/nwui/scripts/nwui_configure.sh
Per identificare l'host utilizzato da NMC per l'autenticazione, seguire questa procedura sul server NetWorker Management Console (NMC):
- Aprire il file
gstd.confdel server NetWorker Management Console (NMC):
- Linux:
/opt/lgtonmc/etc/gstd.conf - Windows (impostazione predefinita):
C:\Program Files\EMC NetWorker\Management\GST\etc\gstd.conf
- La colonna
gstd.confdefinisce il fileauthsvc_hostnameeauthsvc_portutilizzato da NMC per autenticare gli utenti.
authsvc_hostname: Nome host del server di autenticazione NetWorker.authcsvc_port: Porta di NetWorker Authentication Service (9090 predefinita).
Per NetWorker Web User Interface (NWUI). Il log di installazione definisce quale host è stato impostato come server AUTHC. Sul server NWUI:
- Linux:
grep /opt/nwui/logs/install.log -e "Authentication server" - Windows: Aprire il registro di installazione disponibile in
%LOCALAPPDATA%\Temp\NetWorker_DATE_MCUI.log. Cercare nel fileAUTH_HOSTNAMEche definisce l'host AUTHC.
Qualsiasi risoluzione dei problemi di autenticazione NWUI o NMC deve essere analizzata dall host identificato dai passaggi precedenti:
Informazioni aggiuntive
La porta 9090 è la porta predefinita utilizzata da NetWorker AUTHC; Tuttavia, questo può essere confermato utilizzando i seguenti passaggi:
Linux:
- Ottenere l'ID processo (PID) del processo NetWorker jsvc.exe:
ps -ef | grep jsvc - Utilizzando il PID della seconda voce, elencare la porta in ascolto per quel PID:
netstat -apno | grep LISTEN | grep PID
Esempio:
[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):
- Ottenere l'ID processo (PID) del processo NetWorker jsvc.exe:
Get-CimInstance Win32_Process -Filter "Name='java.exe'" | Select-Object ProcessId, CommandLine - L'utilizzo del comando "
authc-server" PID, elencare la porta in ascolto per quel 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