Benutzer-Werkzeuge

Webseiten-Werkzeuge


aos_r6_abfrage_mit_snmpv3_und_reboot

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
aos_r6_abfrage_mit_snmpv3_und_reboot [2016/08/30 17:44] bennyaos_r6_abfrage_mit_snmpv3_und_reboot [2024/06/09 10:29] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 38: Zeile 38:
 .... ....
 </code> </code>
 +
 +<WRAP center round tip 60%>
 +Einige OIDs enden auf .65 und funktionieren im snmpset auch nur wenn diese .65 dort steht. Diese ominöse .65 ist das primäre Chassis-Management-Module (CMM), das teilweise natürlich virtuell abgebildet ist!
 +</WRAP>
  
 ==== snmpwalk ohne AOS 6.7.1.R03 MIBs ==== ==== snmpwalk ohne AOS 6.7.1.R03 MIBs ====
Zeile 63: Zeile 67:
 ALCATEL-IND1-CHASSIS-MIB::chasControlAcrossCmmWorkingSynchroStatus.65 = INTEGER: monoCMM(2) ALCATEL-IND1-CHASSIS-MIB::chasControlAcrossCmmWorkingSynchroStatus.65 = INTEGER: monoCMM(2)
 ALCATEL-IND1-CHASSIS-MIB::chasControlAcrossCmmCertifiedSynchroStatus.65 = INTEGER: monoCMM(2) ALCATEL-IND1-CHASSIS-MIB::chasControlAcrossCmmCertifiedSynchroStatus.65 = INTEGER: monoCMM(2)
 +</code>
 +
 +
 +===== write memory flash-synchro =====
 +
 +Die Konfiguration kann natürlich auch über SNMPv3 gespeichert und zertifiziert werden. Dabei ist zu beachten dass man wissen muss ob es sich um ein redundantes System (VC/Stack/redundante CMMs) handelt oder um eine "standalone"-Komponente. In meinem Fall ist es ein einzelner OS6450-P10.
 +
 +<code bash>
 +1.3.6.1.4.1.6486.800.1.2.1.11.1.1.1.43.0
 +
 + configWriteMemory OBJECT-TYPE
 + SYNTAX INTEGER (0..1)
 + MAX-ACCESS read-write
 + STATUS current
 + DESCRIPTION
 + "A set of this object causes
 + the entire switch snap-shot configuration to
 + be stored in the boot.cfg file in the
 + working directory."
 + DEFVAL  { 0 }
 + ::= { configManager 43 }
 +</code>
 +
 +<code bash>
 +BennyE$ snmpset -v3 -a SHA -A \$testing123 -u snmpv3 -x DES -X \$testing123 -l authPriv 192.168.5.104 1.3.6.1.4.1.6486.800.1.2.1.11.1.1.1.43.0 i 1
 +SNMPv2-SMI::enterprises.6486.800.1.2.1.11.1.1.1.43.0 = INTEGER: 1
 +
 +alternativ
 +
 +BennyE$ snmpset -v3 -m ALL -M +/Users/BennyE/Downloads/MIB/671_R03_MIB -a SHA -A \$testing123 -u snmpv3 -x DES -X \$testing123 -l authPriv 192.168.5.104 ALCATEL-IND1-CONFIG-MGR-MIB::configWriteMemory.0 i 1
 +ALCATEL-IND1-CONFIG-MGR-MIB::configWriteMemory.0 = INTEGER: 1
 +
 +</code>
 +
 +<code bash>
 +1.3.6.1.4.1.6486.800.1.1.1.3.1.1.1.1.3.65
 +
 +chasControlVersionMngt OBJECT-TYPE
 + SYNTAX INTEGER
 + {
 +        notSignificant(1),
 +        certifySynchro(2),
 +        certifyNoSynchro(3),
 +        flashSynchro(4),
 +        restore(5),
 +        activate(6)
 + }
 + MAX-ACCESS read-write
 + STATUS current
 + DESCRIPTION
 +        "For the primary this means:
 + notSignificant - No command applied.
 + certifySynchro - Copy the file from the working to the certified
 +                            directory and from the primary to the secondary
 +                            (reboot of the secondary).
 + certifyNoSynchro - Copy the file from the working to the certified
 +                            directory.
 + flashSynchro - Copy the file from the primary to the secondary
 +                            (reboot of the secondary).
 + restore -           Copy the file from the certified directory to the
 +                            working directory.
 + activate -          Reload from the working directory. Activate can be
 +                            scheduled. "
 +
 +::= { chasControlModuleEntry 3 }
 +</code>
 +
 +  * Für ein "standalone" OmniSwitch gilt also der Wert "3"
 +
 +<code bash>
 +BennyE$ snmpset -v3 -a SHA -A \$testing123 -u snmpv3 -x DES -X \$testing123 -l authPriv 192.168.5.104 1.3.6.1.4.1.6486.800.1.1.1.3.1.1.1.1.3.65 i 3
 +SNMPv2-SMI::enterprises.6486.800.1.1.1.3.1.1.1.1.3.65 = INTEGER: 3
 +
 +alternativ
 +
 +BennyE$ snmpset -v3 -m ALL -M +/Users/BennyE/Downloads/MIB/671_R03_MIB -a SHA -A \$testing123 -u snmpv3 -x DES -X \$testing123 -l authPriv 192.168.5.104 ALCATEL-IND1-CHASSIS-MIB::chasControlVersionMngt.65 i 3
 +ALCATEL-IND1-CHASSIS-MIB::chasControlVersionMngt.65 = INTEGER: certifyNoSynchro(3)
 +
 </code> </code>
  
Zeile 72: Zeile 154:
 </WRAP> </WRAP>
  
-The following snmpset commands will reboot the OmniSwitch from the working directory. 
 <code bash> <code bash>
 BennyE$ snmpset -v3 -a SHA -A \$testing123 -u snmpv3 -x DES -X \$testing123 -l authPriv 192.168.5.104 1.3.6.1.4.1.6486.800.1.1.1.3.1.1.1.1.3.65 i 6 BennyE$ snmpset -v3 -a SHA -A \$testing123 -u snmpv3 -x DES -X \$testing123 -l authPriv 192.168.5.104 1.3.6.1.4.1.6486.800.1.1.1.3.1.1.1.1.3.65 i 6
aos_r6_abfrage_mit_snmpv3_und_reboot.1472579068.txt.gz · Zuletzt geändert: 2024/06/09 10:29 (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki