Thanks. A customer of mine - a hoster - asked me this. They offer R720 as dedicated servers for their own customers. And this means repurposing the machine from time to time - which means that they want to give a "clean" system. They complained, that they need to boot into LC and to do this manually, they want to automate it.
May be lcwipe could be the right approach - we will discuss this....
Lifecycle log is meant to keep the lifecycle history of events and hence there is no wsman method to clear it. However it gets cleared with a system wipe which is designed to get the system retire or repurpose. The LCL does not get cleared on export.
May I know the usecase (other than system retire or repurpose) where you would like to clear it ?
When you export the LC logs, it does NOT clear the LC logs. There is no option to delete the LC logs unless you execute the LCWipe method on the iDRAC. I would not recommend you to perform LCWipe since it will delete all config details as well along with the LCLogs.
You can export the LC logs winrm command -
Here ShareType=2 means CIFS and 0 would mean NFS. For NFS you can skip the Username and Password parameters.
winrm i ExportLCLoghttp://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_LCService?SystemCreationClassName=DCIM _ComputerSystem+CreationClassName=DCIM_LCService+SystemName=DCIM:ComputerSystem+ Name=DCIM:LCService -u:username -p:password -r:https://idracip/wsman -SkipCNChec k -SkipCACheck -encoding:utf-8 -a:basic @{IPAddress="shareip";ShareName="sharename";FileName="lclog1";ShareType="2";Username="UN";Password="PWD"}
smaahs
19 Posts
8818
1
Posted June 14th, 2013 09:00
Thanks. A customer of mine - a hoster - asked me this. They offer R720 as dedicated servers for their own customers. And this means repurposing the machine from time to time - which means that they want to give a "clean" system. They complained, that they need to boot into LC and to do this manually, they want to automate it.
May be lcwipe could be the right approach - we will discuss this....
Regards & have a nice weekend,
stephan.