Class Commands::Edit
In: commands/modules/edit.rb
Parent: Dispatchers::Namespace

:nodoc:

 [+host+] add a new host
 [+protocol+] add a new IP protocol
 [+service+] add a new service for a host on a given port
 [+category+] add a new note category

Included Modules

SoapDriver

Constants

INFO = { :namespace => 'edit', :description => 'edit information already present in the knowledge base of the server', :commands => { # 'host' => { # :desc => 'new host', # :syntax => [ # { # :required => true, # :label=>'host address', # :regexp=> /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ # } # ] # }, # 'protocol' => { # :desc => 'new IP protocol', # :syntax => [ # { # :required => true, # :label=>'protocol name', # :regexp=> /\w+/ # } # ] # }, # 'service' => { # :desc => 'new service for a host on a given port', # :syntax => [ # { # :required => true, # :label =>'host_name', # :regexp=> /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/ # }, # { # :required => true, # :label => 'service_name', # :regexp=> /\w+/ # }, # { # :required => true, # :label => 'port', # :regexp=> /\d+/ # }, # { # :required => true, # :label => 'protocol', # :regexp=> /\w+/ # } # ] # }, # 'category' => { # :desc => 'new note category', # :syntax => [ # { # :required => true, # :label=>'category_name', # :regexp=> /\w+/ # } # ] # }, 'note' => { :desc => 'note attributes', :syntax => [ { :required => true, :label =>'note_id', :regexp=> /\d+/

[Validate]