<command name="Linux NetProbe Upgrade">
<targets>
<target>/geneos/gateway/directory/probe[wild(rparam("OS"),"Linux*")]</target>
<target>/geneos/gateway/directory/probe[wild(rparam("OS"),"Linux*")]/managedEntity</target>
</targets>
<task>
<commands>
<commandRef>
<internalCommand>
<name>/RMS:putFile</name>
</internalCommand>
<stopOnError>true</stopOnError>
</commandRef>
<commandRef>
<internalCommand>
<name>/RMS:exec</name>
</internalCommand>
<stopOnError>true</stopOnError>
</commandRef>
<commandRef>
<internalCommand>
<name>/RMS:restart</name>
</internalCommand>
<stopOnError>true</stopOnError>
</commandRef>
</commands>
<args>
<arg>
<!--Gateway directory containing latest Netprobe binary-->
<targetArgs>
<targetArg>
<commandNumber>1</commandNumber>
<argNumber>1</argNumber>
</targetArg>
</targetArgs>
<static>/data/Binaries/Netprobe/Linux/netprobe.linux.latest.tar.gz</static>
</arg>
<arg>
<!--location on netprobe host (will default to netprobe working directory)-->
<targetArgs>
<targetArg>
<commandNumber>1</commandNumber>
<argNumber>2</argNumber>
</targetArg>
</targetArgs>
<static>netprobe.linux.latest.tar.gz</static>
</arg>
<arg>
<targetArgs>
<targetArg>
<commandNumber>2</commandNumber>
<argNumber>1</argNumber>
</targetArg>
</targetArgs>
<static>tar xzvf netprobe.linux.latest.tar.gz -C ../</static>
</arg>
</args>
</task>
</command>
Comments
0 comments
Please sign in to leave a comment.