forked from Mellanox/mlx-OpenIPMI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathipmi_cmdlang.7
2546 lines (2335 loc) · 50.1 KB
/
ipmi_cmdlang.7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.TH ipmi_cmdlang 7 05/13/03 OpenIPMI "Shell interface to an IPMI system"
.SH NAME
ipmi_cmdlang \- A command language interface to the IPMI library
.SH DESCRIPTION
.B ipmi_cmdlang
is a command language designed to supply the full power of OpenIPMI on
a command line. It has a large number of commands and well-formed
responses to each command. Note that this assumes some knowledge of
OpenIPMI and how it works; you can get that from the IPMI document
that comes with OpenIPMI.
.B ipmish
starts up with no connections or anything of that nature. You must
enter commands to make connections to domains. Then you can enter
commands to manipulate those domains or objects inside those domains.
Note that you may use quotes, either
.B ''
or
.B ""
to contain parameters with spaces.
.SH COMMENTS
Lines with a
.B #
character in the first column are ignored.
.SH OBJECTS
In the command language, you will deal with various objects like
sensors, controls, domains, and entities. Each of these has a name.
The name of the domain is assigned by the user in the
.B domain new
command, all the other names are based on the domain name of the
domain they belong to and various attributes about the object. These
names are all well-formed. They are
\fI<domain>\fP - A name of a domain. Each registered domain in a system
has a name assigned by the user.
\fI<entity>\fP - Entity names are in the form:
.RS
[\fI<domain>\fP[(\fI<entity spec>\fP)]]
.RE
Notice that the \fI<entity spec>\fP is optional. If it is not listed,
then the operation is done on all entities in the domain. The whole
thing is optional, too, if nothing is given then the operation is done
on every entity in every domain.
The \fI<entity spec>\fP is either
.RS
\fI<entity id>\fP.\fI<entity instance>\fP
.RE
for system-relative entities, or:
.RS
r\fI<channel>\fP.\fI<IPMB>\fP.\fI<entity id>\fP.\fI<entity instance-0x60>\fP
.RE
for device-relative entities. In IPMI, device-relative entity
instances always start at 0x60; the specification suggests that you
subtract off the 0x60 from the entity instance when displaying these;
the command language follows this suggestion.
\fI<sensor>\fP - These come in the form
.RS
[\fI<entity>\fP[.\fIname\fP]]
.RE
As with entities, only listing a domain will cause the operation to be
done on every sensor in the domain, just listing an entity will cause
it to be done to every sensor in that entity. An empty sensor entry
will cause an operation to be done on every sensor in every domain.
\fI<control>\fP - These come in the form
.RS
[<entity>[.name]]
.RE
These work exactly like sensors.
\fI<mc>\fP - A management controller. These come in the form
.RS
[<domain>[(<channel>.<IPMB>)]]
.RE
As usual, the parts left empty will cause defaulting to all things in
the previously specified parts.
\fI<connection>\fP - A connection number, in the form
.RS
[<domain>[.<integer>]]
.RE
The number is the connection number of the domain.
\fI<pet>\fP - A platform event trap id, in the form
.RS
[<domain>[.<integer>]]
.RE
The number is arbitrarily assigned by the system.
\fI<lanparm>\fP - A LAN parameter id, in the form
.RS
[<domain>[.<integer>]]
.RE
The number is arbitrarily assigned by the system.
\fI<pef>\fP - A PEF id, in the form
.RS
[<domain>[.<integer>]]
.RE
The number is arbitrarily assigned by the system.
\fI<fru>\fP - A FRU id, in the form
.RS
[<domain>[.<integer>]]
.RE
The number is arbitrarily assigned by the system.
In all cases, the object names have parts that are optional, and the
entire object name is optional. If a part is left empty, then all
objects that are part of the specified parts are operated on. For
instance, if the system has a sensor named
.B d1(7.1).temp
then specifying
.B d1
would operation on all sensors in the domain named
.B d1.
Specifying
.B d1(7.1)
Would operation on all sensors in that entity. Specifying an empty
name, either with
.B ""
or by just entering nothing if the object is the last thing in the
command's parameters.
Note this optionality gives a lot of power, but can be very dangerous.
Entering
.B domain close
will close every domain, for instance.
In commands, every object operated on will generate a response for
that object. If no object is operated on, the command will produce an
error.
.SH OTHER PARAMETERS
The commands and displays use a variety of other parameters for
specifying various IPMI things.
\fI<guid>\fP - a 16-byte globally unique ID, all globbed together in
one big hexadecimal thing.
\fI<threshold>\fP is a threshold for a sensor; the value it must go
over/under to generate an event. It is always displayed as one of
.B lower non-critical
.B lower critical
.B lower non-recoverable
.B upper non-critical
.B upper critical
.B upper non-recoverable.
It may be entered as one of the above, or as
.B ln,
.B lc,
.B lr,
.B un,
.B uc,
.B ur
as a short form.
\fI<threshold enable>\fP is the enable for a threshold. It is like
\fI<threshold>\fP above, but also has a
.B going-high
or
.B going-low
and an
.B assertion
or
.B deassertion
appended to the end of the name. The short form will have a
.B l
or
.B h
for going-low and going high and then a
.B a
or
.B d
appended for assertion and deassertion So for instance,
.B urld
is upper non-recoverable going-low deassertion.
\fI<discrete enable>\fP is the enable or disable for a discrete sensor
and is specified with the sensor offset. The long form is
.B <integer> assertion
or
.B <integer> deassertion
and the short form is
.B <integer>[ad]
where the number
is the offset and
.B [ad]
means assertion or deassertion.
\fI<hot-swap state>\fP is one of
.B not_present,
.B inactive
.B activation_requested
.B activation_in_progress
.B active
.B deactivation_requested
.B deactivation_in_progress
or
.B out_of_con.
\fI<color>\fP is one of
.B black,
.B white,
.B red,
.B green
.B blue
.B yellow
or
.B orange.
\fI<bool>\fP is one of
.B true,
.B on,
.B t,
or
.B 1
for true and one of
.B false,
.B off,
.B f,
or
.B 0
for false. Output is always
.B true
or
.B false.
.SH COMMANDS
The command language is hierarchical, meaning that commands may have
subcommands, and subcommands may have subsubcommands, etc. So, for
instance, the command to create a domain is
.B domain new.
The command to list all sensors in a domain named domain1 is
.B sensor list domain1.
Each command has a reponse for each object operated on, which is
listed after the command description. In those responses, anything
that begins with a
.B %
is optional. Entries of the form
.B **name**
refer to object info descriptions that are listed in the object info
section. If an entry has two '.' indented one space below it, then
that entry may occur zero or more times.
Each section below defines the unique subcommands of a main command.
Help for any command is available with:
.B help command [subcommand [...]]
- Help for any command.
Some commands are common to almost all subcommands. These are:
.B list <containing object>
- List all objects of the specified type that are contained in the
specified object. For instance,
.B control list \fI<entity>\fP
will list all controls in the given entity.
.TP
Response:
.RS
.nf
<containing object type>
Name: <name>
.
.
.fi
.RE
.B info <object>
- List static information about the given object.
.TP
Response:
.RS
.nf
<object type>
Name: <name>
**object info**
.fi
.RE
.SS domain
These commands deal with domain objects.
.B new \fI<domain>\fP \fI<options>\fP \fI<parms>\fP [\fI<parms>\fP]
- Open a connection to a new domain.
\fI<parms>\fP are either:
.RS
lan \fI<IP>\fP \fI<port>\fP [\fI<IP>\fP \fI<port>\fP] \fI<enc>\fP \fI<auth>\fP \fI<name>\fP \fI<password>\fP
.RE
for a RMCP LAN connection or
.RS
smi \fI<smi num>\fP
.RE
for a system interface connection. Note that \fI<parms>\fP is listed
twice (second one is optional); if the system support it you can make
two connections to two independent management controllers in the
system. Note that this is not for multiple IP addresses to the same
BMC. For that, notice that the LAN connection has an options extra IP
and port for the second IP address. OpenIPMI supports these IP
addresses and connection, detecting failures, switching between
addresses, and other fault-tolerant things. It does this
transparently to the user. Mutiple connections may require special
OEM support, read the documentation about your specific system if you
need this.
The \fI<IP>\fP is the IP address or host name of the LAN-capable BMC
to connect with. The \fI<port>\fP is generally 623. \fI<enc>\fP is
the authentication type, either
.B md5,
.B md2,
.B straight,
or
.B none.
\fI<auth>\fP is the authentication level, either
.B admin,
.B operator
or
.B user.
\fI<name>\fP and \fI<password>\fP are the user name and password of
the IPMI user to use for the connection.
The <smi num> is the driver number, generally 0.
Options enable and disable various automitic processing and are:
.PD 0
.HP
.B -[no]all
- all automatic handling. This will override the other
processing options and turn them all on. This is true by default.
.HP
.B -[no]sdrs
- sdr fetching. This turns on fetching SDRs when they are found. This
is false by default.
.HP
.B -[no]frus
- FRU fetching This turns on fetching FRU information when it is found. This
is false by default.
.HP
.B -[no]sel
- SEL fetching. This turns on fetching SELs when they are found. This
is false by default.
.HP
.B -[no]ipmbscan
- IPMB bus scanning. This turns on scanning IPMB busses when they are found.
This is false by default.
.HP
.B -[no]oeminit
- enable or disable special OEM processing (like ATCA).
.HP
.B -[no]seteventrcvr
- setting event receivers. Note that setting event
receivers and waiting til up is not affected by the
.B -all
option. If this
is true (the default) then OpenIPMI will attempt to set the event receiver
for an MC it finds that does not have it set to a valid destination.
.HP
.B -wait_til_up
- wait until the domain is up before returning
Note that if you specify this and the domain never comes up,
you will never get a prompt. This is not affected by the
.B -all
option.
.PD
By default -all and -seteventrcvr are true, which turns
everything on.
.TP
Response:
.RS
.nf
Domain Created: <domain>
.fi
.RE
.B open \fI<domain>\fP \fI<options>\fP \fI<parms>\fP [\fI<parms>\fP]
- Open a connection to a new domain.
\fI<parms>\fP are either:
.RS
lan [-U \fI<username>\fP] [-P \fI<password>\fP] [-A \fI<authtype>\fP]
[-L \fI<privilege>\fP] [-s] [-p[2] \fI<port number>\fP]
[-Ra \fI<auth alg>\fP] [-Ri \fI<integ alg>\fP] [-Rc \fI<conf algo>\fP]
[-Rl] [-Rk \fI<bmc key>\fP] [-H \fI<hackname>\fP]
[-M \fI<max oustanding msgs\fP>] \fI<IP>\fP [\fI<IP>\fP]
.RE
for a RMCP/RMCP+ LAN connection or
.RS
smi \fI<smi num>\fP
.RE
for a system interface connection. Note that \fI<parms>\fP is listed
twice (second one is optional); if the system support it you can make
two connections to two independent management controllers in the
system. Note that this is not for multiple IP addresses to the same
BMC. For that, use the -s option and the second IP (and -p2)
for the second IP address. OpenIPMI supports these IP
addresses and connections, detecting failures, switching between
addresses, and other fault-tolerant things. It does this
transparently to the user. Multiple connections may require special
OEM support, read the documentation about your specific system if you
need this.
The \fI<IP>\fP is the IP address or host name of the LAN-capable BMC
to connect with. The \fI<port>\fP defaults 623. \fI<authtype>\fP is
the authentication type, either
.B rmcp+,
.B md5,
.B md2,
.B straight,
or
.B none.
It defaults to the best authentication supported by the server.
\fI<auth>\fP is the authentication level, either
.B admin,
.B operator
or
.B user.
It defaults to admin. \fI<username>\fP and \fI<password>\fP are the
user name and password of the IPMI user to use for the connection.
For RMCP+ connections, the authentication algorithms supported (-Ra)
are: bmcpick, rakp_none, rakp_hmac_sha1, and rakp_hmac_md5. The
integrity algorithms (-Ri) supported are: bmcpick, none, hmac_sha1,
hmac_md5, and md5. The confidentiality algorithms (-Rc) are: bmcpick,
aes_cbc_128, xrc4_128, and xrc_40. The defaults are rackp_hmac_sha1,
hmac_sha1, and aes_cb_128. -Rl turns on lookup up names by the name
and the privilege level (allowing the same name with different
privileges and different passwords), the default is straight name
lookup. -Rk sets the BMC key, needed if the system does two-key
lookups.
For SMI types, the <smi num> is the driver number, generally 0.
The \fI<hackname>\fP enables certain hacks for broken platforms. This
may be listed multiple times to enable multiple hacks. The currently
available hacks are:
.PD 0
.HP
.B intelplus
- For Intel platforms that have broken RMCP+.
.HP
.B rakp3_wrong_rolem
- For systems that truncate role(m) in the RAKP3 msg.
.HP
.B rmcpp_integ_sik
- For systems that use SIK instead of K(1) for integrity.
.PD
The -M option sets the maximum outstanding messages. The default is
2, ranges 1-63.
Options enable and disable various automitic processing and are:
.PD 0
.HP
.B -[no]all
- all automatic handling. This will override the other
processing options and turn them all on. This is true by default.
.HP
.B -[no]sdrs
- sdr fetching. This turns on fetching SDRs when they are found. This
is false by default.
.HP
.B -[no]frus
- FRU fetching This turns on fetching FRU information when it is found. This
is false by default.
.HP
.B -[no]sel
- SEL fetching. This turns on fetching SELs when they are found. This
is false by default.
.HP
.B -[no]ipmbscan
- IPMB bus scanning. This turns on scanning IPMB busses when they are found.
This is false by default.
.HP
.B -[no]oeminit
- enable or disable special OEM processing (like ATCA).
.HP
.B -[no]seteventrcvr
- setting event receivers. Note that setting event
receivers is not affected by the
.B -all
option. If this
is true (the default) then OpenIPMI will attempt to set the event receiver
for an MC it finds that does not have it set to a valid destination.
.B -[no]setseltime
- set SEL time. Note that setting the SEL time is not affected by the
.B -all
option. If this
is true (the default) then OpenIPMI will attempt to set the time in
the SELs it finds. It will set it to the current system time.
.HP
.B -wait_til_up
- wait until the domain is up before returning
Note that if you specify this and the domain never comes up,
you will never get a prompt. This is not affected by the
.B -all
option.
.PD
By default -all and -seteventrcvr are true, which turns
everything on.
.TP
Response:
.RS
.nf
Domain Created: <domain>
.fi
.RE
.B fru <domain> <is_logical> <device_address> <device_id> <lun> <private_bus> <channel>
- dump a fru given all it's insundry information.
.TP
Response:
.RS
.nf
Domain
Name: <domain>
FRU
**FRU INFO**
.fi
.RE
.B msg <domain> <channel> <ipmb> <LUN> <NetFN> <Cmd> [data...]
- Send a command to the given IPMB address on the given channel and
display the response. Note that this does not require the existance
of an MC in OpenIPMI.
.TP
Response:
.RS
.nf
Domain: <domain>
channel: <chan>
ipmb: <ipmb>
LUN: <lun>
NetFN: <netfn>
command: <cmd>
Data: <data bytes>
.fi
.RE
.B scan <domain> <ipmb addr> [ipmb addr]
- scan an IPMB to add or remove it.
If a range is given, then scan all IPMBs in the range.
.TP
Response:
.RS
.nf
Scan done: <domain>
.fi
.RE
.B rescan_sels <domain>
- Rescan all the SELs in the domain.
.TP
Response:
.RS
.nf
SEL Rescan done: <domain>
.fi
.RE
.B presence <domain>
- Audit the presence of all enities in the domain. Note that this just
starts the process; it will run in the background.
.TP
Response is:
.RS
.nf
Presence check started: <domain>
.fi
.RE
.B close <domain>
- close the given domain.
.TP
Response:
.RS
.nf
Domain closed: <domain>
.fi
.RE
.B sel_rescan_time <domain> <time in seconds>
- Set the time between SEL rescans for all. It affects all current SELs
and SELs that are discovered in the future. Zero disables scans.
.TP
Response:
.RS
.nf
Domain SEL rescan time set: <domain>
.fi
.RE
.B ipmb_rescan_time <domain> <time in seconds>
- Set the time between
IPMB rescans for this domain. zero disables scans.
.TP
Response:
.RS
.nf
Domain IPMB rescan time set: <domain>
.fi
.RE
.SS fru
These commands deal with FRU objects. Note that FRU objects are allocated
by the domain fru command, and are not allocated here.
.B list
- List all the frus in the system
.TP
Response:
.RS
.nf
Domain
Name: <domain>
FRUs
Name: <fru>
.
.
.
.
.fi
.RE
.B info <fru>
- Dump information about a FRU
.TP
Response:
.RS
.nf
**FRU INFO**
.fi
.RE
.B areainfo <fru>
- Dump the info about the FRU's areas
.TP
Response:
.RS
.nf
FRU
Name: <fru>
FRU Length: <integer>
Area
Name: <area name>
Number: <integer>
Offset: <integer>
Length: <integer>
Used Length: <Integer>
.
.
.fi
.RE
.B write <fru>
- Write the local FRU data out into the FRU
.TP
Response:
.RS
.nf
FRU written: <fru>
.fi
.RE
.B close <fru>
- Delete the FRU
.TP
Response:
.RS
.nf
FRU deleted: <fru>
.fi
.RE
.B setval <fru> <name> [num] value
- Set the value of a FRU element. The
name is the record name, or multi-record. The number is required
for fields that need it (custom and multi-record). The value is
an a single value for integers. For strings it is a string
type (either binary, ascii, or unicode) and the info. Binary and
unicode data is specified as numbers. ascii data is specified in
a string. Note that setting a ascii value with no string will
clear the value. Zero length strings and data is valid.
.TP
Response:
.RS
.nf
FRU value set: <fru>
.fi
.RE
.B area_offset <fru> <area name> <offset>
- Set the offset of the given area
to the given value. Area names are internal_data, chassis_info,
board_info, product_info, and multi_record.
.TP
Response:
.RS
.nf
FRU area offset set: <fru>
.fi
.RE
area_length <fru> <area name> <length>
- Set the length of the given area
to the given value. Area names are internal_data, chassis_info
board_info, product_info, and multi_record
.TP
Response:
.RS
.nf
FRU area length set: <fru>
.fi
.RE
area_add <fru> <area name> <offset> <length>
- Add the given area to the FRU.
.TP
Response:
.RS
.nf
FRU area added: <fru>
.fi
.RE
area_delete <fru> <area name>
- Delete the given area from the FRU
.TP
Response:
.RS
.nf
FRU area deleted: <fru>
.fi
.RE
.SS entity
These commands deal with entity objects.
.B list <entity>
- List all the entities that meed the criteria
.TP
Response:
.RS
.nf
Domain
Name: <domain>
Entities
Name: <entity>
.
.
.
.
.fi
.RE
.B info <entity>
- Dump information about an entity.
.TP
Reponse:
.RS
.nf
Entity
Name: <entity>
**ENTITY INFO**
.
.
.fi
.RE
.B fru <entity>
- Dump the FRU information about the given entity.
.TP
Reponse:
.RS
.nf
Entity
Name: <entity>
FRU
**FRU INFO**
.fi
.RE
.SS entity hs
These commands deal with hot-swap of entities. Note that there is no
info or list command for this subcommand.
.B get_act_time <entity>
- Get the hot-swap auto-activate time.
.TP
Response:
.RS
.nf
Entity
Name: <entity>
Auto-Activation Time: <integer>
.fi
.RE
.B set_act_time <entity>
- Set the hot-swap auto-activate time.
.TP
Reponse:
.RS
.nf
Set act time: <entity>
.fi
.RE
.B get_deact_time <entity>
- Get the hot-swap auto-deactivate time
Response:
.RS
.nf
Entity
Name: <entity>
Auto-Deactivation Time: <integer>
.fi
.RE
.B set_deact_time <entity>
- Set the hot-swap auto-deactivate time
.TP
Response:
.RS
.nf
Set deact time: <entity>
.fi
.RE
.B activation_request <entity>
- Act like a user requested an
activation of the entity. This is generally equivalent to
closing the handle latch or something like that.
.TP
Response:
.RS
.nf
Activation requested: <entity>
.fi
.RE
.B activate <entity>
- activate the given entity
.TP
Response:
.RS
.nf
Activated: <entity>
.fi
.RE
.B deactivate <entity>
- deactivate the given entity
.TP
Response:
.RS
.nf
Deactivated: <entity>
.fi
.RE
.B state <entity>
- Return the current hot-swap state of the given
entity.
.TP
Response:
.RS
.nf
Entity
Name: <entity>
State: <hot-swap state>
.fi
.RE
.B check <entity>
- Audit the entity's hot-swap state
.TP
Response:
.RS
.nf
Check started: <entity>
.fi
.RE
.SS sensor
.B get <sensor>
- Get the sensor's current reading.
.TP
Response:
.RS
.nf
Sensor
Name: <sensor>
Event Messages Enabled: <bool>
Sensor Scanning Enabled: <bool>
Initial Update In Progress: <bool>
.fi
.RE
For threshold sensors, the following will be output:
.RS
.nf
%Value: <double>
%Raw Value: <integer>
Threshold
Name: <threshold>
Out Of Range: <bool>
.fi
.RE
For discrete sensors, the following will be output:
.RS
.nf
Event
Offset: <integer>
%Name: <string name of event offset>
Set: <bool>
.fi
.RE
The name field may be custom and is not explicitly specified.
.B rearm <sensor> global | <threshold enable> [<threshold enable> ..] | <discrete enable> [<discrete enable> ..]
- Rearm the sensor. If global is specified, then rearm
all events in the sensor. Otherwise, if it is a threshold sensor, then
put in a list of threshold enables. If it is a discrete sensor, then
put in a list of discrete enables.
.TP
Response:
.RS
.nf
Rearm done: <sensor>
.fi
.RE
.B get_thresholds <sensor>
- Get the sensor's thresholds
.TP
Response:
.RS
.nf
Sensor
Name: <sensor>
Threshold
Name: <threshold>
Value: <double>
.fi
.RE
.B set_thresholds <sensor> <threshold> <value> ...
- Set the sensor's
thresholds to the given values. If a threshold is not specified,
it will not be modified. Thresholds are un, uc, ur, lr, lc, ln.
The u stands for upper, l for lower, n for non-critical, c for
critical, and r for non-recoverable. The value is floating point.
.TP
Response:
.RS
.nf
Thresholds set: <sensor>
.fi
.RE
.B get_hysteresis <sensor>
- Get the sensor's hysteresis values
.TP
Response:
.RS
.nf
Sensor
Name: <sensor>
Positivie Hysteresis: <integer>
Negative Hysteresis: <integer>
.fi
.RE
.B set_hysteresis <sensor> <pos hyst> <neg hyst>
- Set the sensor's
hysteresis to the given values. These are raw integer
value; hystersis is specified as a raw value and it cannot be
converted to floating point because the function may be
non-linear.
.TP
Response:
.RS
.nf
Hysteresis set: <sensor>
.fi