aos_r6_abfrage_mit_snmpv3_und_reboot
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| aos_r6_abfrage_mit_snmpv3_und_reboot [2016/08/30 17:44] – benny | aos_r6_abfrage_mit_snmpv3_und_reboot [2024/06/09 10:29] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 38: | Zeile 38: | ||
| .... | .... | ||
| </ | </ | ||
| + | |||
| + | <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! | ||
| + | </ | ||
| ==== snmpwalk ohne AOS 6.7.1.R03 MIBs ==== | ==== snmpwalk ohne AOS 6.7.1.R03 MIBs ==== | ||
| Zeile 63: | Zeile 67: | ||
| ALCATEL-IND1-CHASSIS-MIB:: | ALCATEL-IND1-CHASSIS-MIB:: | ||
| ALCATEL-IND1-CHASSIS-MIB:: | ALCATEL-IND1-CHASSIS-MIB:: | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== 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/ | ||
| + | |||
| + | <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 | ||
| + | ::= { configManager 43 } | ||
| + | </ | ||
| + | |||
| + | <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:: | ||
| + | |||
| + | alternativ | ||
| + | |||
| + | BennyE$ snmpset -v3 -m ALL -M +/ | ||
| + | ALCATEL-IND1-CONFIG-MGR-MIB:: | ||
| + | |||
| + | </ | ||
| + | |||
| + | <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 } | ||
| + | </ | ||
| + | |||
| + | * Für ein " | ||
| + | |||
| + | <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:: | ||
| + | |||
| + | alternativ | ||
| + | |||
| + | BennyE$ snmpset -v3 -m ALL -M +/ | ||
| + | ALCATEL-IND1-CHASSIS-MIB:: | ||
| + | |||
| </ | </ | ||
| Zeile 72: | Zeile 154: | ||
| </ | </ | ||
| - | 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: (Externe Bearbeitung)
