Shutdown mit -d p:Grund1:Grund2

Oli-nux

Lieutenant
Registriert
Nov. 2007
Beiträge
687
Hallo,

weiß nicht ob es direkt hier rein passt oder ob es auch für Clients möglich ist und zwar den shutdown-Befehl mit Grund (-d p:Grund1:Grund2).

Entweder habe ich falsch gesucht, aber gefunden habe ich nicht was die Zahlen bei z.B. -d p:2:4 bedeuten bzw. welche Zahlen es mit welcher Bedeutung gibt.
Also interessiert mich zum einen was es für Zahlen für den Grund1 gibt (z.B. 2 = Neustart) und was es für Zahlen für den Grund2 gibt?

-d [p]: xx:yy Grund (Code) für das Herunterfahren:

u = Benutzercode

p = Code für geplantes Herunterfahren

xx = Hauptgrund (positive ganze Zahl kleiner als 256)

yy = Weiterer

Grund (positive ganze Zahl kleiner als 65536)

Löst leider nicht mein Problem, da hier ja nur steht, dass es Zahlen sein müssen, aber nicht welche Bedeutung welche Zahl genau hat.

Stelle mir das also so als Liste vor:
1 = ?
2 = Neustart
3 =
4 =
...
x = Herunterfahren/Beenden
...

Warum findet man da nichts?:rolleyes:
 
Weil das nur für den Admin relevant ist. Der legt sich die Codes fest und die werden im Eventlog gespeichert. Da kann der Admin dann sehen: oh, der PC wurde 10 mal wegen Grund 10 herunter gefahren. Bei und im Netzwerk bedeutet das: Ausgelöst vom Intrusion Detection System. Also nur ein Beispiel.
 
Ahh, der Admin legt die Zahlen also fest und sagt "Zahl x ist Grund y".
Gut, wo kann er das festlegen?

Im EventLogViewer habe ich schon den Grund für den Neustart gesehen...

Edit:
Also nur damit wir uns richtig verstehen....
Legt der Admin die Zahlen und den Grund für die Zahlen fest oder gibt es vorbelegte Zahlen mit vorbelegten Gründen?

Das der Admin die Zahlen im Shutdown-Befehl z.B. -d p:2:4 festlegt/eingibt ist mir klar!
 
Zuletzt bearbeitet:
Ich denke, das kann er frei festlegen.
 
Genau weiß ich es nicht, aber ich denke, dass er sich selbst irgendwo eine Tabelle (Excel) angelegt hat und dann jedes mal nach schlägt, wenn er im Eventlogger auf einen code stößt, den er nicht kennt.
 
Kommt bei dir nichts, wenn du shutdown /? eingibst?


Bei mir kommt folgendes:
p:2:4 wäre demnach Operating System: Reconfiguration (Planned)

Code:
    /d [p|u:]xx:yy  Provide the reason for the restart or shutdown.
               p indicates that the restart or shutdown is planned.
               u indicates that the reason is user defined.
               If neither p nor u is specified the restart or shutdown is
               unplanned.
               xx is the major reason number (positive integer less than 256).
               yy is the minor reason number (positive integer less than 65536).

Reasons on this computer:
(E = Expected U = Unexpected P = planned, C = customer defined)
Type    Major   Minor   Title

 U      0       0       Other (Unplanned)
E       0       0       Other (Unplanned)
E P     0       0       Other (Planned)
 U      0       5       Other Failure: System Unresponsive
E       1       1       Hardware: Maintenance (Unplanned)
E P     1       1       Hardware: Maintenance (Planned)
E       1       2       Hardware: Installation (Unplanned)
E P     1       2       Hardware: Installation (Planned)
E       2       2       Operating System: Recovery (Unplanned)
E P     2       2       Operating System: Recovery (Planned)
  P     2       3       Operating System: Upgrade (Planned)
E       2       4       Operating System: Reconfiguration (Unplanned)
E P     2       4       Operating System: Reconfiguration (Planned)
  P     2       16      Operating System: Service pack (Planned)
        2       17      Operating System: Hot fix (Unplanned)
  P     2       17      Operating System: Hot fix (Planned)
        2       18      Operating System: Security fix (Unplanned)
  P     2       18      Operating System: Security fix (Planned)
E       4       1       Application: Maintenance (Unplanned)
E P     4       1       Application: Maintenance (Planned)
E P     4       2       Application: Installation (Planned)
E       4       5       Application: Unresponsive
E       4       6       Application: Unstable
 U      5       15      System Failure: Stop error
 U      5       19      Security issue (Unplanned)
E       5       19      Security issue (Unplanned)
E P     5       19      Security issue (Planned)
E       5       20      Loss of network connectivity (Unplanned)
 U      6       11      Power Failure: Cord Unplugged
 U      6       12      Power Failure: Environment
  P     7       0       Legacy API shutdown
 
Zuletzt bearbeitet:
Zurück
Oben