<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script to restart management server process on firewalls in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19573#M502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a good example of how to perform this with just a Linux box using expect scripting and a list of system IP's.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://www.security-portal.cz/clanky/expect-script-which-can-execute-commands-multiple-servers-ssh" title="http://www.security-portal.cz/clanky/expect-script-which-can-execute-commands-multiple-servers-ssh"&gt;Expect script which can execute commands on multiple servers via SSH | Security-Portal.cz | Bezpečnost • Hacking • Komun…&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how to install Expect:&lt;/P&gt;&lt;H2 style="margin-top: 1.833em; margin-bottom: 0.611em; color: #111111; font-size: 1.286em; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;Install expect&lt;/H2&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;Expect comes with special pre installed script called multixterm expect. If you are using Debian Linux then use apt-get as follows :&lt;/P&gt;&lt;PRE style="padding: 0.667em 0.917em; margin: 0 0 1.833em; background-color: #eeeeee; border-left-width: 1px; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; color: #111111;"&gt;# apt-get install expect # apt-get install expectk&lt;/PRE&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;If you are using Red hat Linux then use up2date command as follows:&lt;/P&gt;&lt;PRE style="padding: 0.667em 0.917em; margin: 0 0 1.833em; background-color: #eeeeee; border-left-width: 1px; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; color: #111111;"&gt;# up2date -i expect&lt;/PRE&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;Fedora core (RHEL 5) / CentOS Linux user can use yum:&lt;/P&gt;&lt;PRE style="padding: 0.667em 0.917em; margin: 0 0 1.833em; background-color: #eeeeee; border-left-width: 1px; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; color: #111111;"&gt;# yum install expect expectk&lt;/PRE&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;You can use ports to install expect under FreeBSD or use following command:&lt;/P&gt;&lt;PRE style="padding: 0.667em 0.917em; margin: 0 0 1.833em; background-color: #eeeeee; border-left-width: 1px; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; color: #111111;"&gt;# pkg_add -v -r expect&lt;/PRE&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;Please note you can download expect from offical &lt;A href="http://expect.nist.gov/" style="text-decoration: underline; color: #2361a1;"&gt;web site&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2014 21:18:06 GMT</pubDate>
    <dc:creator>bspilde</dc:creator>
    <dc:date>2014-10-03T21:18:06Z</dc:date>
    <item>
      <title>Script to restart management server process on firewalls</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19570#M499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a hot case(248797) where customer has upgraded panorama from 5.1.x to 6.0.x where in log forwarding process has stopped from firewalls after upgrade.&lt;/P&gt;&lt;P&gt;After some troubleshooting I did notice that firewalls show as connected but below command for log-collector status show as No&lt;/P&gt;&lt;P&gt;&amp;gt;debug management-server log-collector-agent-status&lt;/P&gt;&lt;P&gt;whereas on panorama device show as connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I had to restart management-server process on one firewall and that started log forwarding process.&lt;/P&gt;&lt;P&gt;debug software restart management-server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since customer has around 200 firewalls he won't login to all the firewalls and do the above step and he is looking for an automated way or script to run such that management server process can be restarted without login into firewalls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari Yadavalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 18:35:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19570#M499</guid>
      <dc:creator>hyadavalli</dc:creator>
      <dc:date>2014-10-03T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script to restart management server process on firewalls</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19571#M500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hyadavalli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't we need to have root access in order to run scripts? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe there can be an easy way to automate this, if there is at all..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm open to all ideas though, but as far as I understand, I don't see a way to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 19:47:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19571#M500</guid>
      <dc:creator>mmmccorkle</dc:creator>
      <dc:date>2014-10-03T19:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script to restart management server process on firewalls</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19572#M501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to script that quite easily with a network configuration manager like ManageEngine, Solarwinds Orion NCM, or HP Network Automation. You could have them download a demo of Solarwinds Orion NCM although there might be easier ways even with some expect scripting from a Linux or Mac calling a list of firewall IP addresses. I am not skilled in expect scripting but there are tools to assist in making device drivers for network configuration managers. I developed some for HP NA but the Solarwinds NCM option is easier and they have a community on thwack.com for more assistance. I've used tools like this to do mass changes to QoS policies, schedule reboots, detect and change default passwords, modify SNMP strings, create accounts, etc. for many years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It wouldn't be too difficult really @hyadavalli. &lt;A href="http://www.solarwinds.com/network-configuration-manager.aspx?gclid=CISN4_-jkcECFS1k7AodVxsABQ&amp;amp;CMP=KNC-TAD-GGL-NA_BRAND-NCM-DL&amp;amp;ef_id=VC8BdQAAAT7pJf8m:20141003200509:s" title="http://www.solarwinds.com/network-configuration-manager.aspx?gclid=CISN4_-jkcECFS1k7AodVxsABQ&amp;amp;CMP=KNC-TAD-GGL-NA_BRAND-NCM-DL&amp;amp;ef_id=VC8BdQAAAT7pJf8m:20141003200509:s"&gt;Network Configuration &amp;amp; Change Management Software&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 20:15:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19572#M501</guid>
      <dc:creator>bspilde</dc:creator>
      <dc:date>2014-10-03T20:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script to restart management server process on firewalls</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19573#M502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a good example of how to perform this with just a Linux box using expect scripting and a list of system IP's.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://www.security-portal.cz/clanky/expect-script-which-can-execute-commands-multiple-servers-ssh" title="http://www.security-portal.cz/clanky/expect-script-which-can-execute-commands-multiple-servers-ssh"&gt;Expect script which can execute commands on multiple servers via SSH | Security-Portal.cz | Bezpečnost • Hacking • Komun…&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how to install Expect:&lt;/P&gt;&lt;H2 style="margin-top: 1.833em; margin-bottom: 0.611em; color: #111111; font-size: 1.286em; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;"&gt;Install expect&lt;/H2&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;Expect comes with special pre installed script called multixterm expect. If you are using Debian Linux then use apt-get as follows :&lt;/P&gt;&lt;PRE style="padding: 0.667em 0.917em; margin: 0 0 1.833em; background-color: #eeeeee; border-left-width: 1px; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; color: #111111;"&gt;# apt-get install expect # apt-get install expectk&lt;/PRE&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;If you are using Red hat Linux then use up2date command as follows:&lt;/P&gt;&lt;PRE style="padding: 0.667em 0.917em; margin: 0 0 1.833em; background-color: #eeeeee; border-left-width: 1px; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; color: #111111;"&gt;# up2date -i expect&lt;/PRE&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;Fedora core (RHEL 5) / CentOS Linux user can use yum:&lt;/P&gt;&lt;PRE style="padding: 0.667em 0.917em; margin: 0 0 1.833em; background-color: #eeeeee; border-left-width: 1px; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; color: #111111;"&gt;# yum install expect expectk&lt;/PRE&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;You can use ports to install expect under FreeBSD or use following command:&lt;/P&gt;&lt;PRE style="padding: 0.667em 0.917em; margin: 0 0 1.833em; background-color: #eeeeee; border-left-width: 1px; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; color: #111111;"&gt;# pkg_add -v -r expect&lt;/PRE&gt;&lt;P style="margin-bottom: 1.571em; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px;"&gt;Please note you can download expect from offical &lt;A href="http://expect.nist.gov/" style="text-decoration: underline; color: #2361a1;"&gt;web site&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2014 21:18:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/script-to-restart-management-server-process-on-firewalls/m-p/19573#M502</guid>
      <dc:creator>bspilde</dc:creator>
      <dc:date>2014-10-03T21:18:06Z</dc:date>
    </item>
  </channel>
</rss>

