Quantcast
Channel: Dell Systems Management General Forum - Recent Threads
Viewing all articles
Browse latest Browse all 570

Re: Clear Lifecycle Controller log by WSMAN command or script ?

$
0
0

Hi Stephan,

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"}

ExportLCLog_OUTPUT
    Job
        EndpointReference
            Address = http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anon
ymous
            ReferenceParameters
                ResourceURI = http://schemas.dell.com/wbem/wscim/1/cim-schema/2/
DCIM_LifecycleJob
                SelectorSet
                    Selector: InstanceID = JID_712710243878, __cimnamespace = ro
ot/dcim
    ReturnValue = 4096

You can check if it is properly exported using the job ID created-

winrm g "http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/DCIM_LifecycleJob?InstanceID=JID_712710243878+__cimnamespace=root/dcim" -u:usernam -p:password -r:https://10.94.195.162/wsman -encoding:utf-8 -a:basi
c -SkipCNcheck -SkipCAcheck -SkipRevocationCheck
DCIM_LifecycleJob
    ElapsedTimeSinceCompletion = 0
    InstanceID = JID_712710243878
    JobStartTime = NA
    JobStatus = Completed
    JobUntilTime = NA
    Message = LCL Export was successful
    MessageArguments = NA
    MessageID = LC022
    Name = LC Export
    PercentComplete = 100

Let me know if this worked for you.

Regards,

Mondeep


Viewing all articles
Browse latest Browse all 570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>