« Object Identifier » : différence entre les versions

De WikiBR
(Create)
 
(→‎SNMP : Ajout des OID de SNMP_Services)
Ligne 75 : Ligne 75 :


Les serveurs du BR utilisent également cet OID dans la gestion et la surveillance des serveurs, via des attributs SNMP.
Les serveurs du BR utilisent également cet OID dans la gestion et la surveillance des serveurs, via des attributs SNMP.
* 1.3.6.1.4.1.34741.3.* contient des informations relatives aux services en cours d'exécution sur un serveur.
* .1.3.6.1.4.1.34741.3.* contient des informations relatives aux services en cours d'exécution sur un serveur :
** .1.3.6.1.4.1.34741.3.1 (integer) : Number of problems (stopped + vital + manual services)
** .1.3.6.1.4.1.34741.3.1.1 (string) : Status line
** .1.3.6.1.4.1.34741.3.2 (integer) : Number of started services
** .1.3.6.1.4.1.34741.3.2.1 (string) : List of started services
** .1.3.6.1.4.1.34741.3.3 (integer) : Number of stopped services which should be started
** .1.3.6.1.4.1.34741.3.3.1 (string) : List of stopped services which should be started
** .1.3.6.1.4.1.34741.3.4 (integer) : Number of vital services which are not started
** .1.3.6.1.4.1.34741.3.4.1 (string) : List of vital services which are not started
** .1.3.6.1.4.1.34741.3.5 (integer) : Number of services which are manually started
** .1.3.6.1.4.1.34741.3.5.1 (string) : List of services which are manually started

Version du 30 octobre 2012 à 17:53

Le BR possède l'identifiant objet (OID) 1.3.6.1.4.1.34741 (rechercher "Binet Réseau" dans http://www.iana.org/assignments/enterprise-numbers). Ce numéro est utilisé à deux endroits : dans le LDAP et dans la configuration SNMP.

LDAP

Les attributs spéciaux du LDAP sont définis par un fichier /etc/openldap/schema/br.schema qui parle de lui-même.

# br.schema -- Account Schema for the Binet Réseau
#
# PJ BR2K8
 
attributetype ( 1.3.6.1.4.1.34741.2.1.1
 	NAME 'brNewsReadAccess'
 	DESC 'Newsgroup read access string'
 	EQUALITY caseExactMatch
 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
 	SINGLE-VALUE )
 
attributetype ( 1.3.6.1.4.1.34741.2.1.2
 	NAME 'brNewsPostAccess'
 	DESC 'Newsgroup post access string'
 	EQUALITY caseExactMatch
 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
 	SINGLE-VALUE )
 
attributetype ( 1.3.6.1.4.1.34741.2.1.3
 	NAME 'brIP'
 	DESC 'IP address on campus'
 	EQUALITY caseIgnoreIA5Match
 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128})
 
attributetype ( 1.3.6.1.4.1.34741.2.1.4
 	NAME 'brAlias'
 	DESC 'An alias (originally a login given forlife by a domain)'
 	EQUALITY caseIgnoreMatch
 	SUBSTR caseIgnoreSubstringsMatch
 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256})
 
attributetype ( 1.3.6.1.4.1.34741.2.1.5
 	NAME 'brLdapEnsDN'
 	DESC 'The distinguised name of the corresponding object in ldap-ens.polytechnique.fr'
 	EQUALITY distinguishedNameMatch
 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.12)
 
attributetype ( 1.3.6.1.4.1.34741.2.1.6
 	NAME 'brMemberOf'
 	DESC 'Belonging to a group'
 	EQUALITY caseIgnoreMatch
 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
 
attributetype ( 1.3.6.1.4.1.34741.2.1.7
 	NAME 'restrictedMemberUid'
 	EQUALITY caseExactIA5Match
 	SUBSTR caseExactIA5SubstringsMatch
 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.26)
 
attributetype ( 1.3.6.1.4.1.34741.2.1.8
         NAME 'brPromo'
 	DESC 'The year group'
 	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27)
 
attributetype ( 1.3.6.1.4.1.34741.2.1.9
         NAME 'brNS'
 	DESC 'The namespace of the group'
 	SYNTAX '1.3.6.1.4.1.1466.115.121.1.26')
 
objectclass ( 1.3.6.1.4.1.34741.2.2.1
 	NAME 'brAccount'
 	DESC 'An account at the Binet Reseau'
 	SUP top
 	AUXILIARY
 	MUST ( brNewsReadAccess $ brNewsPostAccess )
 	MAY ( brIP $ brAlias $ brLdapEnsDN $ brMemberOf $ restrictedMemberUid $ brPromo $ brNS))

SNMP

Les serveurs du BR utilisent également cet OID dans la gestion et la surveillance des serveurs, via des attributs SNMP.

  • .1.3.6.1.4.1.34741.3.* contient des informations relatives aux services en cours d'exécution sur un serveur :
    • .1.3.6.1.4.1.34741.3.1 (integer) : Number of problems (stopped + vital + manual services)
    • .1.3.6.1.4.1.34741.3.1.1 (string) : Status line
    • .1.3.6.1.4.1.34741.3.2 (integer) : Number of started services
    • .1.3.6.1.4.1.34741.3.2.1 (string) : List of started services
    • .1.3.6.1.4.1.34741.3.3 (integer) : Number of stopped services which should be started
    • .1.3.6.1.4.1.34741.3.3.1 (string) : List of stopped services which should be started
    • .1.3.6.1.4.1.34741.3.4 (integer) : Number of vital services which are not started
    • .1.3.6.1.4.1.34741.3.4.1 (string) : List of vital services which are not started
    • .1.3.6.1.4.1.34741.3.5 (integer) : Number of services which are manually started
    • .1.3.6.1.4.1.34741.3.5.1 (string) : List of services which are manually started