Post by muthumariu on Feb 22, 2024 12:53:09 GMT
Hi,
QUERY - Please suggest which logservice message we can use for the Auditlog message.
Step1 : Trying to apply the PATCH request for Changing the IPv6 from DHCP to Static mode with 3 IPv6StaticAddresses with below request body:
Step2 : Clearing the Addresses from StaticIPAddressIndex 0 and 3 and updating the Address for StaticIPAddressIndex 2 with the below request body:
Step 3 : So After clearing Addresses from StaticIPAddressIndex 0 and 3 , try to give get request for this URI {{http_protocol}}://{{IP}}/redfish/v1/Managers/Self/LogServices/AuditLog/Entries/
In the response of this get request {{http_protocol}}://{{IP}}/redfish/v1/Managers/Self/LogServices/AuditLog/Entries/ ,
auditlog logservices responses will be shown.
Please suggest us which below response we can use for the Auditlog message.
Response 1 :
"Message": "User: admin, IP: X.X.X.X, Protocol: https - The value of attribute IPv6StaticAddresses, DHCPv6 at /redfish/v1/Managers/Self/EthernetInterfaces/eth0 was successfully updated
from
1:Address - 2001:b021:2d:0:475e:a232:7e1d:7771, 1:AddressOrigin - Static, 1:Index - 0, 1:PrefixLength - 64,
2:Address - 2001:b021:2d:0:475e:a232:7e1d:7772, 2:AddressOrigin - Static, 2:Index - 1, 2:PrefixLength - 64,
3:Address - 2001:b021:2d:0:475e:a232:7e1d:7773, 3:AddressOrigin - Static, 3:Index - 2, 3:PrefixLength - 64, Disabled
to
1:null,
2:Address - 2001:b021:2d:0:475e:a232:7e1d:7776, 2:AddressOrigin - Static, 2:Index - 1, 2:PrefixLength - 64,
3:null, Disabled."
Response 2 :
"Message": " User: admin, IP: X.X.X.X, Protocol: https - The value of attribute IPv6StaticAddresses, DHCPv6 at /redfish/v1/Managers/Self/EthernetInterfaces/eth0 was successfully updated
from
[{ "Address": "2001:b021:2d:0:475e:a232:7e1d:7771", "PrefixLength": 64, "XXX": {"XXX": { "XXX": 0}} },
{"Address": "2001:b021:2d:0:475e:a232:7e1d:7772", "PrefixLength": 64, "XXX": {"XXX": {"XXX": 1}} },
{"Address": "2001:b021:2d:0:475e:a232:7e1d:7773","PrefixLength": 64, "XXX": {"XXX": { "XXX": 2}} } ], Disabled
to
[ null, {"Address": "2001:b021:2d:0:475e:a232:7e1d:7776","PrefixLength": 64,"XXX": {"XXX": {"XXX": 1}}}, null ] , Disabled"
QUERY - Please suggest which logservice message we can use for the Auditlog message.
Step1 : Trying to apply the PATCH request for Changing the IPv6 from DHCP to Static mode with 3 IPv6StaticAddresses with below request body:
{
"DHCPv6": {
"OperatingMode": "Disabled"
},
"IPv6StaticAddresses": [
{
"Address": "2001:b021:2d:0:475e:a232:7e1d:7771",
"PrefixLength": 64,
"XXX": {
"XXX": {
"XXX": 0
}
}
},
{
"Address": "2001:b021:2d:0:475e:a232:7e1d:7772",
"PrefixLength": 64,
"XXX": {
"XXX": {
"XXX": 1
}
}
},
{
"Address": "2001:b021:2d:0:475e:a232:7e1d:7773",
"PrefixLength": 64,
"XXX": {
"XXX": {
"XXX": 2
}
}
}
]
}
Step2 : Clearing the Addresses from StaticIPAddressIndex 0 and 3 and updating the Address for StaticIPAddressIndex 2 with the below request body:
{
"DHCPv6": {
"OperatingMode": "Disabled"
},
"IPv6StaticAddresses": [
{
"Address": null,
"PrefixLength": 64,
"XXX": {
"XXX": {
"XXX": 0
}
}
},
{
"Address": "2001:b021:2d:0:475e:a232:7e1d:7776",
"PrefixLength": 64,
"XXX": {
"XXX": {
"XXX": 1
}
}
},
{
"Address": null,
"PrefixLength": 64,
"XXX": {
"XXX": {
"XXX": 2
}
}
}
]
}
Step 3 : So After clearing Addresses from StaticIPAddressIndex 0 and 3 , try to give get request for this URI {{http_protocol}}://{{IP}}/redfish/v1/Managers/Self/LogServices/AuditLog/Entries/
In the response of this get request {{http_protocol}}://{{IP}}/redfish/v1/Managers/Self/LogServices/AuditLog/Entries/ ,
auditlog logservices responses will be shown.
Please suggest us which below response we can use for the Auditlog message.
Response 1 :
"Message": "User: admin, IP: X.X.X.X, Protocol: https - The value of attribute IPv6StaticAddresses, DHCPv6 at /redfish/v1/Managers/Self/EthernetInterfaces/eth0 was successfully updated
from
1:Address - 2001:b021:2d:0:475e:a232:7e1d:7771, 1:AddressOrigin - Static, 1:Index - 0, 1:PrefixLength - 64,
2:Address - 2001:b021:2d:0:475e:a232:7e1d:7772, 2:AddressOrigin - Static, 2:Index - 1, 2:PrefixLength - 64,
3:Address - 2001:b021:2d:0:475e:a232:7e1d:7773, 3:AddressOrigin - Static, 3:Index - 2, 3:PrefixLength - 64, Disabled
to
1:null,
2:Address - 2001:b021:2d:0:475e:a232:7e1d:7776, 2:AddressOrigin - Static, 2:Index - 1, 2:PrefixLength - 64,
3:null, Disabled."
Response 2 :
"Message": " User: admin, IP: X.X.X.X, Protocol: https - The value of attribute IPv6StaticAddresses, DHCPv6 at /redfish/v1/Managers/Self/EthernetInterfaces/eth0 was successfully updated
from
[{ "Address": "2001:b021:2d:0:475e:a232:7e1d:7771", "PrefixLength": 64, "XXX": {"XXX": { "XXX": 0}} },
{"Address": "2001:b021:2d:0:475e:a232:7e1d:7772", "PrefixLength": 64, "XXX": {"XXX": {"XXX": 1}} },
{"Address": "2001:b021:2d:0:475e:a232:7e1d:7773","PrefixLength": 64, "XXX": {"XXX": { "XXX": 2}} } ], Disabled
to
[ null, {"Address": "2001:b021:2d:0:475e:a232:7e1d:7776","PrefixLength": 64,"XXX": {"XXX": {"XXX": 1}}}, null ] , Disabled"