Forescout Secure Connector

olvidoinsomne
New Contributor

Hey all,

Attempting to script an update to our forescout server IPs. due to the nested nature of this configuration plist I am unsure how to script it with plutil. Specifically I am attempting to edit what is shown below as serverip2

{ "app_type" => "daemon" "certs_path" => "/Library/Application Support/ForeScout" "debug" => 0 "sites" => [ 0 => { "client_auth_oid" => "" "resource" => "/sc" "servers" => [ 0 => [ 0 => { "application_type" => "daemon" "cert" => Cert1 "compliance_center_url" => "http://serverip1/status?cc=true&fromsc=true" "enable_exit_password_on_dissolvable" => "false" "enable_protection_password" => "false" "kpa_interval" => 60 "password_salt" => "" "port" => 10005 "protection_password" => "" "reconnect_interval" => 10 "server" => "serverip1" "server2" => "" } 1 => { "application_type" => "daemon" "cert" => Cert2 "compliance_center_url" => "http://serverip2/status?cc=true&fromsc=true" "enable_exit_password_on_dissolvable" => "false" "enable_protection_password" => "" "kpa_interval" => 60 "password_salt" => "" "port" => 10005 "protection_password" => "" "reconnect_interval" => 10 "server" => "serverip2" "server2" => "" } ] ] } ] "visible" => 1 }
1 REPLY 1

olvidoinsomne
New Contributor

Nevermind. I figured it out