Please enable JavaScript.
Coggle requires JavaScript to display documents.
Custom profile (Prompt the user for profile name to modify and the list of…
Custom profile
Prompt the user for profile name to modify and the list of check ids to delete
Search for this profile name inside profiles.dat and pick up the profile id
from the profileid.prf delete the check ids provided by the user
Check if the profile provided by user is a custom profile. Never modify or delete existing native profiles
If the profile is a custom profile continue with the logic.
Else:
Provide a suitable msg informing the user that the native profiles cannot be deleted or the profile doesnt exist accordingly.
Prompt the user for profile name and check ids
generate profileid
:warning: Logic yet to know
Identify the no of checks that are under root,switch,cell,db
:warning: Logic yet to know
Identify the count of checks corresponding the engineered systems
:warning: Logic yet to know
create an entry inside the profiles.dat with the discovered values
create a file with profileid.prf and populate all the checks into this file
set the required variables like profiles2run, profileids2run etc
Continue with the usual profile execution
Prompt the user for the profile name to delete.
Check if the profile provided by user is a custom profile. Never modify or delete existing native profiles
If the profile name is not native and exist, delete the .prf file and the entry from the profiles.dat.
Else if its a native profile, provide a suitable message, else if the profile doesnt exist, provide suitable message.
Create Profile
Modify Profile
Delete Profile