IPMI_AMISyslogConf.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /****************************************************************
  2. ****************************************************************
  3. ** **
  4. ** (C)Copyright 2005-2006, American Megatrends Inc. **
  5. ** **
  6. ** All Rights Reserved. **
  7. ** **
  8. ** 6145-F, Northbelt Parkway, Norcross, **
  9. ** **
  10. ** Georgia - 30071, USA. Phone-(770)-246-8600. **
  11. ** **
  12. ****************************************************************
  13. ****************************************************************
  14. ****************************************************************
  15. *
  16. * IPMI_AMISyslogConf.h
  17. * AMI Syslog Configuration related IPMI Commands
  18. *
  19. * Author: Gokula Kannan. S <gokulakannans@amiindia.co.in>
  20. *
  21. *****************************************************************/
  22. #ifndef IPMI_AMISYSLOGCONF_H_
  23. #define IPMI_AMISYSLOGCONF_H_
  24. #include <Types.h>
  25. #include "syslogconf.h"
  26. #pragma pack (1)
  27. /* Command for Set log */
  28. #define SYSLOG 0x0
  29. #define AUDITLOG 0x1
  30. /* Size of the command */
  31. #define SIZE_SYS_DISABLE (2 * sizeof(INT8U))
  32. #define SIZE_SYS_LOCAL (SIZE_SYS_DISABLE + sizeof(INT32U) + sizeof(INT8U))
  33. #define SIZE_SYS_REMOTE (SIZE_SYS_DISABLE + HOSTNAME_LEN)
  34. #define SIZE_AUDIT SIZE_SYS_DISABLE
  35. /**
  36. * *@struct AMISetLogConfReq_T
  37. * *@brief Request Structure for setting the Log configuration.
  38. * */
  39. typedef struct
  40. {
  41. INT8U Cmd; /* Command to process */
  42. INT8U Status; /* status to set */
  43. union
  44. {
  45. struct
  46. {
  47. char HostName[HOSTNAME_LEN]; /* Name of the remote syslog server */
  48. }Remote; /* Request to Enable remote system log */
  49. struct
  50. {
  51. INT32U Size; /* Size of each file to rotate */
  52. INT8U Rotate; /* Number of back-up files after logrotate */
  53. }Local; /* Request to Enable local system log */
  54. }Config;
  55. }PACKED AMISetLogConfReq_T;
  56. /**
  57. * *@struct AMISetLogConfRes_T
  58. * *@brief Response Structure for setting the Log configuration.
  59. * */
  60. typedef struct
  61. {
  62. INT8U CompletionCode; /* Completion code */
  63. }PACKED AMISetLogConfRes_T;
  64. /**
  65. * *@struct AMIGetLogConfRes_T
  66. * *@brief Request Structure for getting the Log configuration.
  67. * */
  68. typedef struct
  69. {
  70. INT8U CompletionCode; /* Completion code */
  71. INT8U SysStatus; /* ststem log status */
  72. INT8U AuditStatus; /* Audit log status */
  73. union
  74. {
  75. struct
  76. {
  77. char HostName[HOSTNAME_LEN]; /* Name of the remote syslog server */
  78. }Remote; /* Request to Enable remote system log */
  79. struct
  80. {
  81. INT32U Size; /* Size of each file to rotate */
  82. INT8U Rotate; /* Number of back-up files after logrotate */
  83. }Local; /* Request to Enable local system log */
  84. }Config;
  85. }PACKED AMIGetLogConfRes_T;
  86. #pragma pack ()
  87. #endif