NetWorker : Identification du serveur d’authentification utilisé par NMC et NWUI
Résumé: Cet article s’applique aux environnements NetWorker qui contiennent plusieurs NetWorker Servers gérés par une seule instance NetWorker Management Console (NMC). NMC utilise un seul NetWorker Server en tant que serveur d’authentification (AUTHC). Cet article décrit les étapes permettant d’identifier l’hôte NetWorker qui est le serveur AUTHC. ...
Instructions
Service d’authentification NetWorker (AUTHC) :
Chaque NetWorker Server contient le service d’authentification NetWorker. Il n’existe aucun service individuel qui s’exécute à partir de Services.msc (Windows) ou systemd (Linux).
Sur les serveurs Linux NetWorker, AUTHC s’exécute en tant que jsvc.exe Processus généré par l’utilisateur 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
Sur les serveurs Windows NetWorker, AUTHC s’exécute en tant que jsvc.exe engendré par le processus local SYSTEM Compte:
Le service d’authentification NetWorker n’est pas arrêté ou démarré indépendamment de NetWorker. NetWorker AUTHC est une fonction dépendante du service NetWorker Server (nsrd). La commande nsrd Le service s’arrête et démarre NetWorker AUTHC.
Authentification NetWorker
- Dans un environnement à hôte unique, où le serveur NMC gère un seul NetWorker Server, le serveur NetWorker est le serveur AUTHC.
- Dans une zone de données multihôtes, où un seul serveur NetWorker Management Console (NMC) gère au moins deux serveurs NetWorker, un seul des serveurs NetWorker est le serveur AUTHC. Pour NetWorker Web UI (NWUI), il existe des serveurs NWUI par NetWorker Server, mais l’authentification peut être dirigée vers un NetWorker Authentication Server spécifique.
- Dans certains environnements, le serveur NMC ou NWUI peut également contenir le
nsrdet les modules d’installation AUTHC. Le serveur NMC, le serveur NWUI ou un autre hôte autonome est configuré en tant que serveur d’authentification. - Le port 9090 est le port par défaut utilisé par NetWorker AUTHC. Reportez-vous à la section Informations supplémentaires .
nsrlogin, authc_config, authc_mgmt, et ainsi de suite)
Comment identifier :
L’hôte AUTHC utilisé par NMC ou NWUI est défini lors de la configuration initiale :
- Sous Windows : L’Assistant d’installation décrit les étapes de configuration du serveur AUTHC utilisé par NMC et NWUI.
- Sous Linux : Lors de l’initialisation de NMC à l’aide de
/opt/lgtonmc/bin/nmc_configet NWUI/opt/nwui/scripts/nwui_configure.sh
Pour identifier l’hôte que NMC utilise pour son authentification, procédez comme suit sur le serveur NetWorker Management Console (NMC) :
- Ouvrez le
gstd.conffichier :
- Linux :
/opt/lgtonmc/etc/gstd.conf - Windows (par défaut) :
C:\Program Files\EMC NetWorker\Management\GST\etc\gstd.conf
- La commande
gstd.conffile définit le fichierauthsvc_hostnameetauthsvc_portque la NMC utilise pour authentifier les utilisateurs.
authsvc_hostname: Nom d’hôte du serveur d’authentification NetWorker.authcsvc_port: Le port du service d’authentification de NetWorker (9090 par défaut).
Pour NetWorker Web User Interface (NWUI). Le journal d’installation définit l’hôte qui a été défini en tant que serveur AUTHC. Sur le serveur NWUI :
- Linux :
grep /opt/nwui/logs/install.log -e "Authentication server" - Windows. : Ouvrez le journal d’installation situé sous
%LOCALAPPDATA%\Temp\NetWorker_DATE_MCUI.log. Rechercher dans le fichierAUTH_HOSTNAMEqui définit l’hôte AUTHC.
Tout dépannage de l’authentification NWUI ou NMC doit être étudié à partir de l’hôte identifié à l’aide des étapes ci-dessus :
Informations supplémentaires
Le port 9090 est le port par défaut utilisé par NetWorker AUTHC. Cependant, cela peut être confirmé en procédant comme suit :
Linux :
- Obtenez l’ID de processus (PID) du processus jsvc.exe NetWorker :
ps -ef | grep jsvc - À l’aide du PID de la deuxième entrée, répertoriez le port qui écoute ce PID :
netstat -apno | grep LISTEN | grep PID
Exemple :
[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) :
- Obtenez l’ID de processus (PID) du processus jsvc.exe NetWorker :
Get-CimInstance Win32_Process -Filter "Name='java.exe'" | Select-Object ProcessId, CommandLine - À l’aide de l’option "
authc-server« PID, répertoriez le port à l’écoute de ce 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